Skip to content

Commit

Permalink
Create a Sequence library Type and updated the Adaptation object
Browse files Browse the repository at this point in the history
  • Loading branch information
goetzrrGit committed Nov 20, 2024
1 parent 4ccdf0f commit 5c5561f
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/types/sequencing.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import type { CompletionContext, CompletionResult } from '@codemirror/autocomplete';
import type { IndentContext } from '@codemirror/language';
import type { Diagnostic } from '@codemirror/lint';
import type { SyntaxNode } from '@lezer/common';
import type { SyntaxNode, Tree } from '@lezer/common';
import type {
ChannelDictionary as AmpcsChannelDictionary,
CommandDictionary as AmpcsCommandDictionary,
ParameterDictionary as AmpcsParameterDictionary,
} from '@nasa-jpl/aerie-ampcs';
import type { VariableDeclaration } from '@nasa-jpl/seq-json-schema/types';
import type { EditorView } from 'codemirror';
import type { DictionaryTypes } from '../enums/dictionaryTypes';
import type { ArgDelegator } from '../utilities/sequence-editor/extension-points';
Expand Down Expand Up @@ -64,6 +65,7 @@ export interface ISequenceAdaptation {
channelDictionary: AmpcsChannelDictionary | null,
commandDictionary: AmpcsCommandDictionary | null,
parameterDictionaries: AmpcsParameterDictionary[],
librarySequences: LibrarySequence[],
) => (context: CompletionContext) => CompletionResult | null;
autoIndent?: () => (context: IndentContext, pos: number) => number | null | undefined;
globals?: GlobalType[];
Expand Down Expand Up @@ -141,6 +143,13 @@ export type UserSequence = {
workspace_id: number;
};

export type LibrarySequence = {
name: string;
parameters: VariableDeclaration[];
tree: Tree;
workspace_id: number;
};

export type UserSequenceInsertInput = Omit<UserSequence, 'created_at' | 'id' | 'owner' | 'updated_at'>;

export type Workspace = {
Expand Down

0 comments on commit 5c5561f

Please sign in to comment.