Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SeqJson Schema v1.1.0 #1600

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
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
102 changes: 94 additions & 8 deletions sequencing-server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sequencing-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@js-temporal/polyfill": "~0.4.3",
"@nasa-jpl/aerie-ampcs": "~1.0.6",
"@nasa-jpl/aerie-ts-user-code-runner": "~0.7.0",
"@nasa-jpl/seq-json-schema": "1.0.20",
"@nasa-jpl/seq-json-schema": "^1.2.0",
"body-parser": "~1.20.1",
"dataloader": "~2.2.0",
"express": "~5.0.0-beta.1",
Expand Down
50 changes: 48 additions & 2 deletions sequencing-server/test/__snapshots__/command-types.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -3969,7 +3969,7 @@ export interface SeqJson {
/**
* Immediate commands which are interpreted by FSW and not part of any sequence.
*/
immediate_commands?: ImmediateCommand[];
immediate_commands?: (ImmediateFswCommand | ImmediateLoad | ImmediateActivate)[];
/**
* Hardware commands which are not interpreted by FSW and not part of any sequence.
*/
Expand Down Expand Up @@ -4238,14 +4238,60 @@ export interface Load {
/**
* Object representing a single Immediate Command
*/
export interface ImmediateCommand {
export interface ImmediateFswCommand {
args: Args;
description?: Description;
metadata?: Metadata;
models?: Model[];
/**
* Command stem
*/
stem: string;
type?: 'immediate_command';
}
/**
* Untimed load object
*/
export interface ImmediateLoad {
args?: Args;
description?: Description;
/**
* Sequence target engine.
*/
engine?: number;
/**
* Onboard epoch to pass to the sequence for derivation of epoch-relative timetags
*/
epoch?: string;
metadata?: Metadata;
models?: Model[];
/**
* Onboard path and filename of sequence to be loaded.
*/
sequence: string;
type: 'immediate_load';
}
/**
* Untimed activate object
*/
export interface ImmediateActivate {
args?: Args;
description?: Description;
/**
* Sequence target engine.
*/
engine?: number;
/**
* Onboard epoch to pass to the sequence for derivation of epoch-relative timetags
*/
epoch?: string;
metadata?: Metadata;
models?: Model[];
/**
* Onboard path and filename of sequence to be loaded.
*/
sequence: string;
type: 'immediate_activate';
}
/**
* Object representing a single Hardware Command
Expand Down
Loading