Skip to content

Commit 4e154dd

Browse files
chore(develop): sync types to dmgincs/nestjs-api
1 parent 6eeff4b commit 4e154dd

File tree

4 files changed

+31
-11
lines changed

4 files changed

+31
-11
lines changed

src/emt/GetEmtLogResponse.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ class EmtLogAwardMetadata {
4141
/** Other REP issued */
4242
misc: string[];
4343

44+
/** The REP boost multiplier applied to the awards */
45+
rep_boost_multiplier: number;
46+
4447
/** Boost attendees are getting because host has Vanguard */
4548
vanguard_attendee_multiplier: number;
4649
}
Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable max-classes-per-file */
22

3-
export class XpBoostNameDto {
3+
export class BoostNameDto {
44
/** The names of the boosts that are active. */
55
boosts: string[];
66

@@ -11,28 +11,36 @@ export class XpBoostNameDto {
1111
total_boost_value: number;
1212
}
1313

14-
export class XpBoostNamesResponseDto {
14+
export class XpBoostNamesDto {
1515
/** Boost applied to all categories */
16-
global: XpBoostNameDto;
16+
global: BoostNameDto;
1717

1818
/** Boost applied to leadership category */
19-
leadership: XpBoostNameDto;
19+
leadership: BoostNameDto;
2020

2121
/** Boost applied to casual attendance category */
22-
casual_attendance: XpBoostNameDto;
22+
casual_attendance: BoostNameDto;
2323

2424
/** Boost applied to competitive attendance category */
25-
comp_attendance: XpBoostNameDto;
25+
comp_attendance: BoostNameDto;
2626

2727
/** Boost applied to hosting category */
28-
hosting: XpBoostNameDto;
28+
hosting: BoostNameDto;
2929

3030
/** Boost applied to discord category */
31-
discord: XpBoostNameDto;
31+
discord: BoostNameDto;
3232

3333
/** Boost applied to recruiting category */
34-
recruiting: XpBoostNameDto;
34+
recruiting: BoostNameDto;
3535

3636
/** Boost applied to crafting category */
37-
crafting: XpBoostNameDto;
37+
crafting: BoostNameDto;
38+
}
39+
40+
export class BoostNamesResponseDto {
41+
/** Boost applied when earning REP from activity. */
42+
rep: BoostNameDto;
43+
44+
/** Object containing all XP Boosts that apply to the member. */
45+
xp: XpBoostNamesDto;
3846
}

src/mainsite/boosts/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from './BoostedDivisionDataResponse';
2-
export * from './XpBoostNamesResponse';
2+
export * from './BoostNamesResponse';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { XpBoostsMapResponseDto } from './XpBoostsMapResponse';
2+
3+
export class BoostsMapResponseDto {
4+
/** REP Boost */
5+
rep: number;
6+
7+
/** XP Boosts */
8+
xp: XpBoostsMapResponseDto;
9+
}

0 commit comments

Comments
 (0)