Skip to content

Commit fee4a4f

Browse files
authored
Add missing fields to the Competition model (#45)
* Add missing fields * Run prettier
1 parent 1e8e6ca commit fee4a4f

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

src/models/competition.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ import { Person } from './person';
22
import { Event } from './event';
33
import { Schedule } from './schedule';
44
import { Extension } from './extension';
5+
import { Series } from './series';
6+
import { RegistrationInfo } from './registrationInfo';
57

68
export interface Competition {
79
formatVersion: string;
@@ -11,6 +13,8 @@ export interface Competition {
1113
persons: Person[];
1214
events: Event[];
1315
schedule: Schedule;
16+
series: Series[];
1417
competitorLimit: number | null;
1518
extensions: Extension[];
19+
registrationInfo: RegistrationInfo;
1620
}

src/models/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@ export * from './assignmentCode';
1717
export * from './assignment';
1818
export * from './avatar';
1919
export * from './registration';
20+
export * from './registrationInfo';
2021
export * from './person';
2122
export * from './activity';
2223
export * from './room';
2324
export * from './venue';
25+
export * from './series';
2426
export * from './schedule';
2527
export * from './wcaId';
2628
export * from './rankingType';

src/models/registrationInfo.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
export interface RegistrationInfo {
2+
openTime: string;
3+
closeTime: string;
4+
baseEntryFee: number;
5+
currencyCode: string;
6+
onTheSpotRegistration: boolean;
7+
useWcaRegistration: boolean;
8+
}

src/models/series.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export interface Series {
2+
id: string;
3+
name: string;
4+
shortName: string;
5+
competitionIds: string[];
6+
}

0 commit comments

Comments
 (0)