MCPcopy Create free account
hub / github.com/EdgeTX/buddy / flashJobQuery

Function flashJobQuery

src/test-utils/mocks.ts:466–553  ·  view source on GitHub ↗
(
  jobId: string,
  error?: boolean,
  completed?: boolean
)

Source from the content-addressed store, hash-verified

464};
465
466export const flashJobQuery = (
467 jobId: string,
468 error?: boolean,
469 completed?: boolean
470): MockedResponse => ({
471 request: {
472 query: gql`
473 query FlashJobStatus($jobId: ID!) {
474 flashJobStatus(jobId: $jobId) {
475 id
476 cancelled
477 meta {
478 firmware {
479 target
480 version
481 }
482 deviceId
483 }
484 stages {
485 connect {
486 ...FlashJobStageData
487 }
488 build {
489 ...FlashJobStageData
490 }
491 download {
492 ...FlashJobStageData
493 }
494 erase {
495 ...FlashJobStageData
496 }
497 flash {
498 ...FlashJobStageData
499 }
500 }
501 }
502 }
503
504 fragment FlashJobStageData on FlashStage {
505 started
506 completed
507 progress
508 error
509 }
510 `,
511 variables: {
512 jobId,
513 },
514 },
515 result: {
516 data: {
517 flashJobStatus: {
518 id: jobId,
519 cancelled: false,
520 meta: {
521 firmware: {
522 version: "v2.5.0",
523 target: "nv-14",

Callers 3

runningFunction · 0.90
errorRunningFunction · 0.90
completedFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected