mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-18 13:44:12 +00:00
Sheet use limited input device auth flow (#782)
* refactor: limited-input-device auth * refactor: resolve sheet directory from setup * refactor: extract sheet logic in backend * refactor: simplify sheet integration --------- Co-authored-by: cv <34649812+cpvalente@users.noreply.github.com> Co-authored-by: Carlos Valente <carlosvalente@pm.me>
This commit is contained in:
committed by
GitHub
parent
fc5338903b
commit
474f1e2177
@@ -31,3 +31,5 @@ export type MessageResponse = {
|
||||
};
|
||||
|
||||
export type ErrorResponse = MessageResponse;
|
||||
|
||||
export type AuthenticationStatus = 'authenticated' | 'not_authenticated' | 'pending';
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
export type CustomFieldLabel = string;
|
||||
|
||||
export type CustomField = {
|
||||
type: string;
|
||||
label: string;
|
||||
type: 'string';
|
||||
colour: string;
|
||||
label: CustomFieldLabel;
|
||||
};
|
||||
|
||||
export type CustomFields = Record<string, CustomField>;
|
||||
export type CustomFields = Record<CustomFieldLabel, CustomField>;
|
||||
export type EventCustomFields = Record<CustomFieldLabel, { value: string }>;
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
import { MaybeString } from '../../index.js';
|
||||
import { EndAction } from '../EndAction.type.js';
|
||||
import { TimerType } from '../TimerType.type.js';
|
||||
import { TimeStrategy } from '../TimeStrategy.type.js';
|
||||
import { EventCustomFields, EndAction, MaybeString, TimerType, TimeStrategy } from '../../index.js';
|
||||
|
||||
export enum SupportedEvent {
|
||||
Event = 'event',
|
||||
@@ -56,4 +53,5 @@ export type OntimeEvent = OntimeBaseEvent & {
|
||||
delay?: number; // calculated at runtime
|
||||
timeWarning: number;
|
||||
timeDanger: number;
|
||||
custom: EventCustomFields;
|
||||
};
|
||||
|
||||
@@ -31,7 +31,12 @@ export type { Alias } from './definitions/core/Alias.type.js';
|
||||
export type { UserFields } from './definitions/core/UserFields.type.js';
|
||||
|
||||
// ---> Custom Fields
|
||||
export type { CustomFields, CustomField } from './definitions/core/CustomFields.type.js';
|
||||
export type {
|
||||
CustomFields,
|
||||
CustomField,
|
||||
CustomFieldLabel,
|
||||
EventCustomFields,
|
||||
} from './definitions/core/CustomFields.type.js';
|
||||
|
||||
// ---> Integration, Subscription
|
||||
export type { OSCSettings, OscSubscription } from './definitions/core/OscSettings.type.js';
|
||||
@@ -39,6 +44,7 @@ export type { HttpSettings, HttpSubscription } from './definitions/core/HttpSett
|
||||
|
||||
// SERVER RESPONSES
|
||||
export type {
|
||||
AuthenticationStatus,
|
||||
NetworkInterface,
|
||||
GetInfo,
|
||||
ProjectFileList,
|
||||
|
||||
Reference in New Issue
Block a user