-
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.
chore(develop): sync types to dmgincs/nestjs-api
- Loading branch information
1 parent
d74a2a8
commit a4a6a6b
Showing
15 changed files
with
119 additions
and
13 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
File renamed without changes.
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
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
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,9 @@ | ||
|
||
export class CreateAwayResponseDto { | ||
|
||
/** Start date and time */ | ||
start: number; | ||
|
||
/** End date and time */ | ||
end: number; | ||
} |
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 |
---|---|---|
@@ -1,9 +1,4 @@ | ||
import { CreateAwayResponseDto } from './CreateAwayResponse'; | ||
|
||
export class UpdateAwayResponseDto { | ||
|
||
/** Start date and time */ | ||
start: number; | ||
|
||
/** End date and time */ | ||
end: number; | ||
export class UpdateAwayResponseDto extends CreateAwayResponseDto { | ||
} |
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,23 @@ | ||
|
||
export class CraftingTableResponseDto { | ||
/** The member id of the user */ | ||
member_id: number; | ||
|
||
/** The table number */ | ||
table_number: number; | ||
|
||
/** The recipe id */ | ||
recipe_id: number; | ||
|
||
/** The item one id */ | ||
item_one_id: number; | ||
|
||
/** The item two id */ | ||
item_two_id: number; | ||
|
||
/** The item three id */ | ||
item_three_id: number; | ||
|
||
/** The xp gained */ | ||
xp_gained: number; | ||
} |
13 changes: 13 additions & 0 deletions
13
src/mainsite/notification/GetNotificationSettingsResponse.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,13 @@ | ||
import { NotificationApplications, NotificationPlatforms } from '~/types/Notification'; | ||
|
||
class NotificationSettingsDto { | ||
/** Description about the notification platform */ | ||
description: string; | ||
|
||
/** List of enabled platforms */ | ||
platform: Record<NotificationPlatforms, boolean>; | ||
} | ||
|
||
export type GetNotificationSettingsResponseDto = { | ||
[key in NotificationApplications]: NotificationSettingsDto; | ||
}; |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
export class XpBoostsMapDto { | ||
export class XpBoostsMapResponseDto { | ||
|
||
/** Global XP Boost */ | ||
global: number; | ||
|
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,5 @@ | ||
|
||
export class GetTaxReductionResponseDto { | ||
/** The percentile of how much tax reduction the member gets */ | ||
tax_reduction: number; | ||
} |
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,26 @@ | ||
import { StatusNames } from '~/constants/RepShopItemBuyStatusNames'; | ||
|
||
export class RepshopItemBuyResponseDto { | ||
/** The ID of the buy log */ | ||
id: number; | ||
|
||
/** The ID of the member */ | ||
member_id: number; | ||
|
||
status: StatusNames; | ||
|
||
/** The ID of the item which was purchased */ | ||
itemId: number; | ||
|
||
/** The name of the item which was purchased */ | ||
itemName: string; | ||
|
||
/** The amount of REP which was paid for the purchase */ | ||
itemPrice: number; | ||
|
||
/** The date at which the item was bought */ | ||
itemBoughtDate: Date; | ||
|
||
/** The date at which the purchase was processed */ | ||
itemProcessedDate: Date | null; | ||
} |
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,33 @@ | ||
import { AwayHistory } from 'entities/mainsite/AwayHistory.entity'; | ||
|
||
export enum AwayHistoryStatus { | ||
SCHEDULED = 1, | ||
ACTIVE = 2, | ||
COMPLETED = 3, | ||
ABORTED = 4, | ||
CANCELLED = 5 | ||
} | ||
|
||
export const AwayHistoryStatusNames: { [key in AwayHistoryStatus]: string } = { | ||
[AwayHistoryStatus.SCHEDULED]: 'scheduled', | ||
[AwayHistoryStatus.ACTIVE]: 'active', | ||
[AwayHistoryStatus.COMPLETED]: 'completed', | ||
[AwayHistoryStatus.ABORTED]: 'aborted', | ||
[AwayHistoryStatus.CANCELLED]: 'cancelled' | ||
}; | ||
|
||
export interface AwayStatus { | ||
active_away: AwayHistory; | ||
last_6_months: AwayDaysStats; | ||
} | ||
|
||
export interface AwayDaysStats{ | ||
days: Number; | ||
max: Number; | ||
} | ||
|
||
export interface AwayBankDays{ | ||
member_id: Number; | ||
away_days: Number; | ||
max_days: Number; | ||
} |