Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
"description": "This is a meta-schema that defines the schemas for *device*/$schemas/mappings.json",
"type": "object",
"properties": {
"$schema": {
"description": "The $schema property is the schema that this file adheres to",
"type": "string"
},
"default": {
"description": "The default mapping to use when creating a new mapping for this device",
"type": "string"
Expand Down
6 changes: 4 additions & 2 deletions packages/timeline-state-resolver-tools/bin/schema-types.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ if (!searchPath || !outputPath) {
}

const BANNER =
'/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and re-run the "tsr-schema-types" tool to regenerate this file.\n */\n'
'/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript.\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run "yarn generate-schema-types" regenerate this file.\n */\n'
const BANNER_WITH_SOURCE =
'/* eslint-disable */\n/**\n * This file was automatically generated by json-schema-to-typescript from [source].\n * DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,\n * and run "yarn generate-schema-types" regenerate this file.\n */\n'

let hadError = false

Expand Down Expand Up @@ -450,7 +452,7 @@ export interface DeviceOptions${dirId} extends DeviceOptionsBase<${dirId}Options
// Output to tsr types package
const outputFilePath = path.join(resolvedOutputPath, dir + '.ts')
if (output) {
output = BANNER + output
output = BANNER_WITH_SOURCE.replace('[source]', 'src/$schemas/generated/' + dir) + output

await fs.writeFile(outputFilePath, output)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/abstract.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface TSRActionSchema {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/atem.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/casparCG.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface DeviceCommonOptions {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

import type { DeviceOptionsBase } from '../device'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/


Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/httpSend.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/httpWatcher.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface HttpWatcherOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/hyperdeck.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export * from './action-schema'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/lawo.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface LawoOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/multiOsc.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface MultiOscOptions {
Expand Down
4 changes: 2 additions & 2 deletions packages/timeline-state-resolver-types/src/generated/obs.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/obs.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface ObsOptions {
Expand Down
4 changes: 2 additions & 2 deletions packages/timeline-state-resolver-types/src/generated/osc.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/osc.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface OscOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/panasonicPTZ.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"
import type { SetPanTiltSpeedPayload, GetPanTiltPositionResult, SetZoomSpeedPayload, GetZoomPositionResult, StorePresetPayload, RecallPresetPayload, ResetPresetPayload, SetFocusSpeedPayload, SetFocusModePayload, GetFocusPositionResult, GetFocusModeResult } from './generic-ptz-actions'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/pharos.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface PharosOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/quantel.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/shotoku.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface ShotokuOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/singularLive.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface SingularLiveOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/sisyfos.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/sofieChef.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/tcpSend.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/telemetrics.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface TelemetricsOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/tricaster.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

export interface TricasterOptions {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/viscaOverIP.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"
import type { SetPanTiltSpeedPayload, GetPanTiltPositionResult, SetZoomSpeedPayload, GetZoomPositionResult, StorePresetPayload, RecallPresetPayload, ResetPresetPayload, SetFocusSpeedPayload, SetFocusModePayload, GetFocusPositionResult, GetFocusModeResult } from './generic-ptz-actions'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/vizMSE.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/vmix.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* This file was automatically generated by json-schema-to-typescript from src/$schemas/generated/websocketClient.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/
import type { ActionExecutionResult } from "../actions"

Expand Down
2 changes: 1 addition & 1 deletion packages/timeline-state-resolver/src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and re-run the "tsr-schema-types" tool to regenerate this file.
* and run "yarn generate-schema-types" regenerate this file.
*/

import { DeviceType } from 'timeline-state-resolver-types'
Expand Down
Loading