Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
chore(types): 🔧 update types
Browse files Browse the repository at this point in the history
  • Loading branch information
ecxyzzy committed Feb 17, 2024
1 parent 5718d60 commit d7450ed
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions packages/types/types/calendar.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
import type { Quarter } from "./constants";

/**
* An object that includes important dates for a specified quarter.
* The type of the payload returned on a successful response from querying
* ``/v1/rest/calendar``.
*/
export type QuarterDates = {
/**
* When instruction begins for the given quarter.
* The year of the given term.
*/
year: string;
/**
* The quarter of the given term.
*/
quarter: Quarter;
/**
* When instruction begins for the given term.
*/
instructionStart: Date;
/**
* When instruction ends for the given quarter.
* When instruction ends for the given term.
*/
instructionEnd: Date;
/**
* When finals begin for the given quarter.
* When finals begin for the given term.
*/
finalsStart: Date;
/**
* When finals end for the given quarter.
* When finals end for the given term.
*/
finalsEnd: Date;
/**
* When the Schedule of Classes becomes available for the given quarter.
* When the Schedule of Classes becomes available for the given term.
*/
socAvailable: Date;
};

0 comments on commit d7450ed

Please sign in to comment.