From 47b4755ab5cc05cfcb91591dd7335dabf95ddf7b Mon Sep 17 00:00:00 2001 From: Diego Gomez Date: Thu, 22 Aug 2024 15:09:50 -0400 Subject: [PATCH] Schema changed to match timeLoss key --- src/components/GlobalState/scheduleSubscription.tsx | 3 +-- src/components/Results/NightPlanSummary.tsx | 2 +- src/gql/gql.ts | 4 ++-- src/gql/graphql.ts | 6 +++--- src/helpers/sortNightPlan.ts | 2 +- src/test/initial-plan.ts | 4 ++-- src/types.d.ts | 2 +- 7 files changed, 11 insertions(+), 12 deletions(-) diff --git a/src/components/GlobalState/scheduleSubscription.tsx b/src/components/GlobalState/scheduleSubscription.tsx index 885a4ee..e1622e5 100644 --- a/src/components/GlobalState/scheduleSubscription.tsx +++ b/src/components/GlobalState/scheduleSubscription.tsx @@ -40,9 +40,8 @@ export const subscriptionQueueSchedule = graphql(` } } nightStats { - timeloss + timeLoss planScore - timeloss nToos completionFraction programCompletion diff --git a/src/components/Results/NightPlanSummary.tsx b/src/components/Results/NightPlanSummary.tsx index ffb8791..be64a5c 100644 --- a/src/components/Results/NightPlanSummary.tsx +++ b/src/components/Results/NightPlanSummary.tsx @@ -15,7 +15,7 @@ export default function NightPlanSummary({

Night Plan {nightTitle}

-
Timeloss: {nightState.timeloss}
+
Timeloss: {nightState.timeLoss}
Cloud Cover: {nightConditions.cc}
Image Quality: {nightConditions.iq}
{/* diff --git a/src/gql/gql.ts b/src/gql/gql.ts index f420240..cdae8fd 100644 --- a/src/gql/gql.ts +++ b/src/gql/gql.ts @@ -14,7 +14,7 @@ import { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/ */ const documents = { "\n query testSubQuery(\n $scheduleId: String!\n $startTime: String!\n $endTime: String!\n $sites: Sites!\n $mode: SchedulerModes!\n $numNightsToSchedule: Int!\n $semesterVisibility: Boolean!\n $thesisFactor: Float\n $power: Int\n ) {\n testSubQuery(\n scheduleId: $scheduleId\n newScheduleInput: {\n startTime: $startTime\n sites: $sites\n mode: $mode\n endTime: $endTime\n thesisFactor: $thesisFactor\n power: $power\n semesterVisibility: $semesterVisibility\n numNightsToSchedule: $numNightsToSchedule\n }\n )\n }\n": types.TestSubQueryDocument, - "\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeloss\n planScore\n timeloss\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n": types.QueueScheduleDocument, + "\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeLoss\n planScore\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n": types.QueueScheduleDocument, }; /** @@ -24,7 +24,7 @@ export function graphql(source: "\n query testSubQuery(\n $scheduleId: Strin /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. */ -export function graphql(source: "\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeloss\n planScore\n timeloss\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n"): (typeof documents)["\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeloss\n planScore\n timeloss\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n"]; +export function graphql(source: "\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeLoss\n planScore\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n"): (typeof documents)["\n subscription queueSchedule($scheduleId: String!) {\n queueSchedule(scheduleId: $scheduleId) {\n nightPlans {\n nightTimeline {\n nightIndex\n timeEntriesBySite {\n site\n mornTwilight\n eveTwilight\n timeEntries {\n startTimeSlots\n event\n plan {\n startTime\n nightConditions {\n iq\n cc\n }\n visits {\n obsId\n endTime\n altitude\n atomEndIdx\n atomStartIdx\n startTime\n instrument\n fpu\n disperser\n filters\n score\n obsClass\n completion\n peakScore\n requiredConditions {\n iq\n cc\n }\n }\n nightStats {\n timeLoss\n planScore\n nToos\n completionFraction\n programCompletion\n }\n }\n }\n }\n }\n }\n plansSummary\n }\n }\n"]; /** * The graphql function is used to parse GraphQL queries into a document that can be used by GraphQL clients. diff --git a/src/gql/graphql.ts b/src/gql/graphql.ts index 0d215d6..609512a 100644 --- a/src/gql/graphql.ts +++ b/src/gql/graphql.ts @@ -88,7 +88,7 @@ export type SNightStats = { nToos: Scalars['Int']; planScore: Scalars['Float']; programCompletion: Scalars['JSON']; - timeloss: Scalars['String']; + timeLoss: Scalars['JSON']; }; export type SNightTimelines = { @@ -185,8 +185,8 @@ export type QueueScheduleSubscriptionVariables = Exact<{ }>; -export type QueueScheduleSubscription = { __typename?: 'Subscription', queueSchedule: { __typename?: 'NewNightPlans', plansSummary: any, nightPlans: { __typename?: 'SNightTimelines', nightTimeline: Array<{ __typename?: 'SNightInTimeline', nightIndex: number, timeEntriesBySite: Array<{ __typename?: 'TimelineEntriesBySite', site: Site, mornTwilight: any, eveTwilight: any, timeEntries: Array<{ __typename?: 'STimelineEntry', startTimeSlots: number, event: string, plan: { __typename?: 'SPlan', startTime: any, nightConditions: { __typename?: 'SConditions', iq: string, cc: string }, visits: Array<{ __typename?: 'SVisit', obsId: any, endTime: any, altitude: Array, atomEndIdx: number, atomStartIdx: number, startTime: any, instrument: string, fpu: string, disperser: string, filters: Array, score: number, obsClass: string, completion: string, peakScore: number, requiredConditions: { __typename?: 'SConditions', iq: string, cc: string } }>, nightStats: { __typename?: 'SNightStats', timeloss: string, planScore: number, nToos: number, completionFraction: any, programCompletion: any } } }> }> }> } } }; +export type QueueScheduleSubscription = { __typename?: 'Subscription', queueSchedule: { __typename?: 'NewNightPlans', plansSummary: any, nightPlans: { __typename?: 'SNightTimelines', nightTimeline: Array<{ __typename?: 'SNightInTimeline', nightIndex: number, timeEntriesBySite: Array<{ __typename?: 'TimelineEntriesBySite', site: Site, mornTwilight: any, eveTwilight: any, timeEntries: Array<{ __typename?: 'STimelineEntry', startTimeSlots: number, event: string, plan: { __typename?: 'SPlan', startTime: any, nightConditions: { __typename?: 'SConditions', iq: string, cc: string }, visits: Array<{ __typename?: 'SVisit', obsId: any, endTime: any, altitude: Array, atomEndIdx: number, atomStartIdx: number, startTime: any, instrument: string, fpu: string, disperser: string, filters: Array, score: number, obsClass: string, completion: string, peakScore: number, requiredConditions: { __typename?: 'SConditions', iq: string, cc: string } }>, nightStats: { __typename?: 'SNightStats', timeLoss: any, planScore: number, nToos: number, completionFraction: any, programCompletion: any } } }> }> }> } } }; export const TestSubQueryDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","name":{"kind":"Name","value":"testSubQuery"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"scheduleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"startTime"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"endTime"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"sites"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Sites"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"mode"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"SchedulerModes"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"numNightsToSchedule"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"semesterVisibility"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"Boolean"}}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"thesisFactor"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Float"}}},{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"power"}},"type":{"kind":"NamedType","name":{"kind":"Name","value":"Int"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"testSubQuery"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"scheduleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"scheduleId"}}},{"kind":"Argument","name":{"kind":"Name","value":"newScheduleInput"},"value":{"kind":"ObjectValue","fields":[{"kind":"ObjectField","name":{"kind":"Name","value":"startTime"},"value":{"kind":"Variable","name":{"kind":"Name","value":"startTime"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"sites"},"value":{"kind":"Variable","name":{"kind":"Name","value":"sites"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"mode"},"value":{"kind":"Variable","name":{"kind":"Name","value":"mode"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"endTime"},"value":{"kind":"Variable","name":{"kind":"Name","value":"endTime"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"thesisFactor"},"value":{"kind":"Variable","name":{"kind":"Name","value":"thesisFactor"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"power"},"value":{"kind":"Variable","name":{"kind":"Name","value":"power"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"semesterVisibility"},"value":{"kind":"Variable","name":{"kind":"Name","value":"semesterVisibility"}}},{"kind":"ObjectField","name":{"kind":"Name","value":"numNightsToSchedule"},"value":{"kind":"Variable","name":{"kind":"Name","value":"numNightsToSchedule"}}}]}}]}]}}]} as unknown as DocumentNode; -export const QueueScheduleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"queueSchedule"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"scheduleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"queueSchedule"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"scheduleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"scheduleId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nightPlans"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nightTimeline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nightIndex"}},{"kind":"Field","name":{"kind":"Name","value":"timeEntriesBySite"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"site"}},{"kind":"Field","name":{"kind":"Name","value":"mornTwilight"}},{"kind":"Field","name":{"kind":"Name","value":"eveTwilight"}},{"kind":"Field","name":{"kind":"Name","value":"timeEntries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startTimeSlots"}},{"kind":"Field","name":{"kind":"Name","value":"event"}},{"kind":"Field","name":{"kind":"Name","value":"plan"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"nightConditions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"iq"}},{"kind":"Field","name":{"kind":"Name","value":"cc"}}]}},{"kind":"Field","name":{"kind":"Name","value":"visits"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"obsId"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"altitude"}},{"kind":"Field","name":{"kind":"Name","value":"atomEndIdx"}},{"kind":"Field","name":{"kind":"Name","value":"atomStartIdx"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"instrument"}},{"kind":"Field","name":{"kind":"Name","value":"fpu"}},{"kind":"Field","name":{"kind":"Name","value":"disperser"}},{"kind":"Field","name":{"kind":"Name","value":"filters"}},{"kind":"Field","name":{"kind":"Name","value":"score"}},{"kind":"Field","name":{"kind":"Name","value":"obsClass"}},{"kind":"Field","name":{"kind":"Name","value":"completion"}},{"kind":"Field","name":{"kind":"Name","value":"peakScore"}},{"kind":"Field","name":{"kind":"Name","value":"requiredConditions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"iq"}},{"kind":"Field","name":{"kind":"Name","value":"cc"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"nightStats"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"timeloss"}},{"kind":"Field","name":{"kind":"Name","value":"planScore"}},{"kind":"Field","name":{"kind":"Name","value":"timeloss"}},{"kind":"Field","name":{"kind":"Name","value":"nToos"}},{"kind":"Field","name":{"kind":"Name","value":"completionFraction"}},{"kind":"Field","name":{"kind":"Name","value":"programCompletion"}}]}}]}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"plansSummary"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file +export const QueueScheduleDocument = {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","name":{"kind":"Name","value":"queueSchedule"},"variableDefinitions":[{"kind":"VariableDefinition","variable":{"kind":"Variable","name":{"kind":"Name","value":"scheduleId"}},"type":{"kind":"NonNullType","type":{"kind":"NamedType","name":{"kind":"Name","value":"String"}}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"queueSchedule"},"arguments":[{"kind":"Argument","name":{"kind":"Name","value":"scheduleId"},"value":{"kind":"Variable","name":{"kind":"Name","value":"scheduleId"}}}],"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nightPlans"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nightTimeline"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"nightIndex"}},{"kind":"Field","name":{"kind":"Name","value":"timeEntriesBySite"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"site"}},{"kind":"Field","name":{"kind":"Name","value":"mornTwilight"}},{"kind":"Field","name":{"kind":"Name","value":"eveTwilight"}},{"kind":"Field","name":{"kind":"Name","value":"timeEntries"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startTimeSlots"}},{"kind":"Field","name":{"kind":"Name","value":"event"}},{"kind":"Field","name":{"kind":"Name","value":"plan"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"nightConditions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"iq"}},{"kind":"Field","name":{"kind":"Name","value":"cc"}}]}},{"kind":"Field","name":{"kind":"Name","value":"visits"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"obsId"}},{"kind":"Field","name":{"kind":"Name","value":"endTime"}},{"kind":"Field","name":{"kind":"Name","value":"altitude"}},{"kind":"Field","name":{"kind":"Name","value":"atomEndIdx"}},{"kind":"Field","name":{"kind":"Name","value":"atomStartIdx"}},{"kind":"Field","name":{"kind":"Name","value":"startTime"}},{"kind":"Field","name":{"kind":"Name","value":"instrument"}},{"kind":"Field","name":{"kind":"Name","value":"fpu"}},{"kind":"Field","name":{"kind":"Name","value":"disperser"}},{"kind":"Field","name":{"kind":"Name","value":"filters"}},{"kind":"Field","name":{"kind":"Name","value":"score"}},{"kind":"Field","name":{"kind":"Name","value":"obsClass"}},{"kind":"Field","name":{"kind":"Name","value":"completion"}},{"kind":"Field","name":{"kind":"Name","value":"peakScore"}},{"kind":"Field","name":{"kind":"Name","value":"requiredConditions"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"iq"}},{"kind":"Field","name":{"kind":"Name","value":"cc"}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"nightStats"},"selectionSet":{"kind":"SelectionSet","selections":[{"kind":"Field","name":{"kind":"Name","value":"timeLoss"}},{"kind":"Field","name":{"kind":"Name","value":"planScore"}},{"kind":"Field","name":{"kind":"Name","value":"nToos"}},{"kind":"Field","name":{"kind":"Name","value":"completionFraction"}},{"kind":"Field","name":{"kind":"Name","value":"programCompletion"}}]}}]}}]}}]}}]}}]}},{"kind":"Field","name":{"kind":"Name","value":"plansSummary"}}]}}]}}]} as unknown as DocumentNode; \ No newline at end of file diff --git a/src/helpers/sortNightPlan.ts b/src/helpers/sortNightPlan.ts index d4a9fde..584497e 100644 --- a/src/helpers/sortNightPlan.ts +++ b/src/helpers/sortNightPlan.ts @@ -30,7 +30,7 @@ export function sortNightPlan(timeline: any) { }; }), nightStats: { - timeloss: timeline[n_idx][site][entry].plan.nightStats.timeloss, + timeLoss: timeline[n_idx][site][entry].plan.nightStats.timeLoss, planScore: parseFloat( timeline[n_idx][site][entry].plan.nightStats.planScore ), diff --git a/src/test/initial-plan.ts b/src/test/initial-plan.ts index 4367016..45c1564 100644 --- a/src/test/initial-plan.ts +++ b/src/test/initial-plan.ts @@ -23,7 +23,7 @@ export const NIGHT_PLANS = [ startTime: "2018-09-29T05:00:00.000013+00:00", visits: [], nightStats: { - timeloss: "625 min", + timeLoss: "625 min", planScore: 0, nToos: 0, completionFraction: '{"1": 0, "2": 0, "3": 0, "4": 0}', @@ -408,7 +408,7 @@ export const NIGHT_PLANS = [ }, ], nightStats: { - timeloss: "28 min", + timeLoss: "28 min", planScore: 0.04692387957314154, nToos: 0, completionFraction: '{"1": 11, "2": 0, "3": 0, "4": 0}', diff --git a/src/types.d.ts b/src/types.d.ts index 9b2ec07..b4d5a8d 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -49,7 +49,7 @@ export interface Visit { } export interface NightStats { - timeloss: string; + timeLoss: string; planScore: number; nToos: number; completionFraction: string;