-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'contribute/EAV-266' of github.com:tv2norge-collab/sofie…
…-timeline-state-resolver into release52
- Loading branch information
Showing
53 changed files
with
3,103 additions
and
356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
94 changes: 94 additions & 0 deletions
94
packages/timeline-state-resolver-types/src/generated/generic-ptz-actions.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
/* eslint-disable */ | ||
/** | ||
* This file was automatically generated by json-schema-to-typescript. | ||
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, | ||
* and run "yarn generate-schema-types" to regenerate this file. | ||
*/ | ||
|
||
|
||
export interface SetPanTiltSpeedPayload { | ||
/** | ||
* Pan Speed; Range: [-1.0, 1.0]; -1.0 = fastest LEFT, 0.0 = STOP, 1.0 = fastest RIGHT (each protocol might internally support a different range, which the value will be mapped into) | ||
*/ | ||
panSpeed: number | ||
/** | ||
* Tilt Speed; Range: [-1.0, 1.0]; -1.0 = fastest DOWN, 0.0 = STOP, 1.0 = fastest UP (each protocol might internally support a different range, which the value will be mapped into) | ||
*/ | ||
tiltSpeed: number | ||
} | ||
|
||
export interface GetPanTiltPositionResult { | ||
/** | ||
* Pan Position; Range: [-1.0, 1.0]; -1.0 = furthest LEFT, 0.0 = CENTER, 1.0 = furthest RIGHT (each protocol might internally support a different range, which the value will be mapped from) | ||
*/ | ||
panPosition: number | ||
/** | ||
* Tilt Position; Range: [-1.0, 1.0]; -1.0 = furthest DOWN, 0.0 = CENTER, 1.0 = furthest UP (each protocol might internally support a different range, which the value will be mapped from) | ||
*/ | ||
tiltPosition: number | ||
} | ||
|
||
export interface SetZoomSpeedPayload { | ||
/** | ||
* Zoom Speed; Range: [-1.0, 1.0]; -1.0 = fastest WIDE, 0.0 = STOP, 1.0 = fastest TELE (each protocol might internally support a different range, which the value will be mapped into) | ||
*/ | ||
zoomSpeed: number | ||
} | ||
|
||
export interface GetZoomPositionResult { | ||
/** | ||
* Zoom Position; Range: [0.0, 1.0]; 0.0 = furthest WIDE, 1.0 = furthest TELE (each protocol might internally support a different range, which the value will be mapped from) | ||
*/ | ||
zoomPosition: number | ||
} | ||
|
||
export interface StorePresetPayload { | ||
/** | ||
* Preset number, within the range supported by the camera | ||
*/ | ||
presetNumber: number | ||
} | ||
|
||
export interface RecallPresetPayload { | ||
/** | ||
* Preset number, within the range supported by the camera | ||
*/ | ||
presetNumber: number | ||
} | ||
|
||
export interface ResetPresetPayload { | ||
/** | ||
* Preset number, within the range supported by the camera | ||
*/ | ||
presetNumber: number | ||
} | ||
|
||
export interface SetFocusSpeedPayload { | ||
/** | ||
* Focus Speed; Range: [-1.0, 1.0]; -1.0 = fastest NEAR, 0.0 = STOP, 1.0 = fastest FAR (each protocol might internally support a different range, which the value will be mapped into) | ||
*/ | ||
focusSpeed: number | ||
} | ||
|
||
export interface SetFocusModePayload { | ||
mode: FocusMode | ||
} | ||
|
||
export enum FocusMode { | ||
AUTO = 'auto', | ||
MANUAL = 'manual' | ||
} | ||
|
||
|
||
export interface GetFocusPositionResult { | ||
/** | ||
* Zoom Position; Range: [0.0, 1.0]; 0.0 = furthest NEAR, 1.0 = furthest FAR (each protocol might internally support a different range, which the value will be mapped from) | ||
*/ | ||
zoomPosition: number | ||
} | ||
|
||
export type FocusModeResult = FocusMode | ||
|
||
export interface GetFocusModeResult { | ||
mode: FocusModeResult | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
packages/timeline-state-resolver-types/src/generated/viscaOverIP.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* eslint-disable */ | ||
/** | ||
* This file was automatically generated by json-schema-to-typescript. | ||
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file, | ||
* and run "yarn generate-schema-types" to regenerate this file. | ||
*/ | ||
import { ActionExecutionResult } from ".." | ||
|
||
export interface ViscaOverIPOptions { | ||
host: string | ||
port?: number | ||
} | ||
|
||
export type SomeMappingViscaOverIP = Record<string, never> | ||
|
||
export enum ViscaOverIPActions { | ||
SetPanTiltSpeed = 'setPanTiltSpeed', | ||
GetPanTiltPosition = 'getPanTiltPosition', | ||
SetZoomSpeed = 'setZoomSpeed', | ||
GetZoomPosition = 'getZoomPosition', | ||
StorePreset = 'storePreset', | ||
RecallPreset = 'recallPreset', | ||
ResetPreset = 'resetPreset', | ||
SetFocusSpeed = 'setFocusSpeed', | ||
SetFocusMode = 'setFocusMode', | ||
TriggerOnePushFocus = 'triggerOnePushFocus', | ||
GetFocusPosition = 'getFocusPosition', | ||
GetFocusMode = 'getFocusMode' | ||
} | ||
export interface ViscaOverIPActionExecutionResults { | ||
setPanTiltSpeed: () => void, | ||
getPanTiltPosition: () => void, | ||
setZoomSpeed: () => void, | ||
getZoomPosition: () => void, | ||
storePreset: () => void, | ||
recallPreset: () => void, | ||
resetPreset: () => void, | ||
setFocusSpeed: () => void, | ||
setFocusMode: () => void, | ||
triggerOnePushFocus: () => void, | ||
getFocusPosition: () => void, | ||
getFocusMode: () => void | ||
} | ||
export type ViscaOverIPActionExecutionPayload<A extends keyof ViscaOverIPActionExecutionResults> = Parameters< | ||
ViscaOverIPActionExecutionResults[A] | ||
>[0] | ||
|
||
export type ViscaOverIPActionExecutionResult<A extends keyof ViscaOverIPActionExecutionResults> = | ||
ActionExecutionResult<ReturnType<ViscaOverIPActionExecutionResults[A]>> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
packages/timeline-state-resolver-types/src/integrations/viscaOverIP.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { DeviceType } from '..' | ||
|
||
export type TimelineContentViscaOverIpAny = TimelineContentViscaOverIp | ||
export interface TimelineContentViscaOverIpBase { | ||
deviceType: DeviceType.VISCA_OVER_IP | ||
} | ||
|
||
export type TimelineContentViscaOverIp = TimelineContentViscaOverIpBase |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.