Skip to content

Commit 222a2c8

Browse files
chore(develop): sync types to dmgincs/nestjs-api
1 parent 7950b23 commit 222a2c8

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

src/common/GetActivityResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class GetActivityResponseObjectDto {
3737
/** Whether the member counts towards the activity total */
3838
countsTowardsActiveTotal: boolean;
3939

40-
/** `Whether the member joined in the last ${NewInitiateActivitySettings.NEW_INITIATE_DAYS} days` */
40+
/** `Whether the member joined in the last ${NewRookieActivitySettings.NEW_ROOKIE_DAYS} days` */
4141
isNewInitiate: boolean;
4242

4343
/** If member is a new initiate, whether they have met the new initiate activity requirement */

src/common/ProfileDataResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class ProfileDataResponseDto {
2020
/** The group ID of the member */
2121
member_group_id: number;
2222

23-
/** `Whether the member is an initiate that joined in the last ${NewInitiateActivitySettings.NEW_INITIATE_DAYS} days` */
23+
/** `Whether the member is an initiate that joined in the last ${NewRookieActivitySettings.NEW_ROOKIE_DAYS} days` */
2424
is_new_initiate: boolean;
2525

2626
/** The country code of the member */

src/constants/MemberRanks.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export enum MemberRanks {
66
L5 = 19,
77
L4 = 6,
88
L3 = 14,
9-
INITIATE = 10, // L1
9+
ROOKIE = 10, // L1
1010
MEMBER = 9, // L2
1111
ELITE = 11, // L2
1212
VETERAN = 12, // L2
@@ -33,7 +33,7 @@ export const LEVELS: { [key in MemberRanks]?: string } = {
3333
[MemberRanks.VETERAN]: 'L2B',
3434
[MemberRanks.SENIOR]: 'L2C',
3535
[MemberRanks.MEMBER]: 'L2D',
36-
[MemberRanks.INITIATE]: 'L1'
36+
[MemberRanks.ROOKIE]: 'L1'
3737
};
3838

3939
export const LEVELS_ORDERED = [
@@ -61,7 +61,7 @@ export const MEMBER_RANK_NAMES: { [key in MemberRanks]: string } = {
6161
[MemberRanks.L5]: 'L5',
6262
[MemberRanks.L4]: 'L4',
6363
[MemberRanks.L3]: 'L3',
64-
[MemberRanks.INITIATE]: 'Initiate',
64+
[MemberRanks.ROOKIE]: 'Rookie',
6565
[MemberRanks.MEMBER]: 'Member',
6666
[MemberRanks.ELITE]: 'Elite',
6767
[MemberRanks.VETERAN]: 'Veteran',
@@ -90,9 +90,9 @@ export const SORT_ORDER = [
9090
MemberRanks.VETERAN,
9191
MemberRanks.SENIOR,
9292
MemberRanks.MEMBER,
93+
MemberRanks.ROOKIE,
9394
MemberRanks.BOT,
9495
MemberRanks.AWAY,
95-
MemberRanks.INITIATE,
9696
MemberRanks.PROBATION,
9797
MemberRanks.INACTIVE,
9898
MemberRanks.APPLICANT,
@@ -128,7 +128,8 @@ export const FULL_MEMBER_RANKS = [
128128
MemberRanks.VETERAN,
129129
MemberRanks.SENIOR,
130130
MemberRanks.MEMBER,
131-
MemberRanks.PROBATION
131+
MemberRanks.PROBATION,
132+
MemberRanks.ROOKIE
132133
];
133134

134135
/* The ranks included in MemberRanks that are only assigned as a secondary role */

src/constants/NewInitiateActivitySettings.ts

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export namespace NewRookieActivitySettings {
2+
export const NEW_ROOKIE_DAYS = 10;
3+
export const NEW_ROOKIE_EVENTS = 1;
4+
}

src/types/Notification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export enum NotificationApplications {
2525

2626
export const NotificationApplicationsInfo: { [key in NotificationApplications]: { description: string; platforms: NotificationPlatforms } } = {
2727
[NotificationApplications.INACTIVITY]: {
28-
description: 'Notifications regarding being set to inactive, including an initiate reminder.',
28+
description: 'Notifications regarding being set to inactive, including a rookie reminder.',
2929
platforms: NotificationPlatforms.DISCORD | NotificationPlatforms.MOBILE | NotificationPlatforms.WEBAPP
3030
},
3131
[NotificationApplications.DAILY_EVENT_OVERVIEW]: {

0 commit comments

Comments
 (0)