-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Seth Battis
committed
Dec 26, 2024
1 parent
e519cf4
commit 397487a
Showing
8 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { schoolparams as S } from 'datadirect/dist/api/schoolinfo.js'; | ||
import { fetchViaPuppeteer } from './fetchViaPuppeteer.js'; | ||
|
||
export const schoolparams = fetchViaPuppeteer<S.Payload, S.Response>(S); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export * as schoolparams from './schoolinfo/schoolparams.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import * as Endpoint from '../Endpoint.js'; | ||
import { Payload } from './schoolparams/Payload.js'; | ||
|
||
export * from './schoolparams/Payload.js'; | ||
export * from './schoolparams/Response.js'; | ||
|
||
export const prepare: Endpoint.Prepare<Payload> = (payload, base?: string) => | ||
Endpoint.prepare({ payload, base, path: '/api/schoolinfo/schoolparams' }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export type Payload = { all?: boolean }; |
42 changes: 42 additions & 0 deletions
42
packages/datadirect/src/api/schoolinfo/schoolparams/Response.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
export type Response = { | ||
SchoolId: number; | ||
SchoolName: string; | ||
HoursFromServer: number; | ||
AppLocaleId: number; | ||
LocaleId: number; | ||
Timezone: string; | ||
DatabaseTimezone: string; | ||
LiveUrl: URLString; | ||
Username: string; | ||
PortalMyBeforeSchool: boolean; | ||
PortalDisplayLabel: string; | ||
MailboxName: EmailString; | ||
HelplinkText: string; | ||
SignInOption: number; | ||
LocalDateTime: DateTimeString; | ||
ServerDateTime: DateTimeString; | ||
IndividualMessageEnabled: boolean; | ||
BulkMessageEnabled: boolean; | ||
BulkEmailEnabled: boolean; | ||
HasPodiumSite: boolean; | ||
PodiumFrontendStatus: 2; | ||
NameFormat: string; | ||
ShowFeaturedContent: NumericBoolean; | ||
ShowRecentActivity: NumericBoolean; | ||
ShowScoreboard: NumericBoolean; | ||
ShowArchivedContent: NumericBoolean; | ||
AppCultureName: string; | ||
CultureName: string; | ||
EncCookieSiteUrl: string; | ||
ShowAttendance: NumericBoolean; | ||
BBSiteID: NumericString; | ||
AllowRubricBankAdd: boolean; | ||
IsSmallCollege: boolean; | ||
MobileSiteInd: boolean; | ||
SSLInd: boolean; | ||
LoginRedirectInd: boolean; | ||
LoginNameLabel: string; | ||
DbNum: number; | ||
DbDate: DateTimeString; | ||
TestSchool: boolean; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters