Skip to content

Commit

Permalink
chore(develop): sync types to dmgincs/nestjs-api
Browse files Browse the repository at this point in the history
  • Loading branch information
damageinc-bot[bot] committed Jun 2, 2024
1 parent 8d5c894 commit 0f5bf9c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/common/GetActivitySettingsResponse.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
/* eslint-disable max-classes-per-file */

class DiscordValueThreshold {
/** The amount of discord days a member has to get in the specified timeFrame */
days: number;

/** The amount of discord hours a member has to get in the specified timeFrame */
value: number;
hours: number;

/** The timeFrame in which the member has to get the specified discord activity */
timeFrame: string;
Expand All @@ -18,7 +21,7 @@ class Reputation {

export class GetActivitySettingsResponseDto {

discord_value_threshold: DiscordValueThreshold;
discord: DiscordValueThreshold;

rep: Reputation;
}
3 changes: 2 additions & 1 deletion src/constants/ActivitySettings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
export namespace ActivitySettings {
export const REP_ACTIVITY_THRESHOLD = 100;
export const DISCORD_HOURS_ACTIVITY_THRESHOLD = 20;
export const DISCORD_DAYS_THRESHOLD = 4;
export const DISCORD_DAYS_THRESHOLD = 15;
export const DISCORD_DAYS_THRESHOLD_OFFICER = 10;
export const MAX_CONSECUTIVE_INACTIVE_MONTHS = 2;
export const MAX_CONSECUTIVE_INITIATE_INACTIVE_MONTHS = 2;
export const DISCORD_ACTIVITY_THRESHOLD_DAYS = 7;
Expand Down

0 comments on commit 0f5bf9c

Please sign in to comment.