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 Jan 13, 2024
1 parent b14d7c0 commit 88aacb5
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/mainsite/awayhistory/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './AwayBankDaysResponse';
export * from './AwayHistoryResponse';
export * from './AwayStatusResponse';
export * from './CreateAwayResponse';
export * from './UpdateAwayResponse';
6 changes: 3 additions & 3 deletions src/mainsite/crafting/CraftingTableResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ export class CraftingTableResponseDto {
table_number: number;

/** The recipe id */
recipe_id: number;
recipe_id: number | null;

/** The item one id */
item_one_id: number;

/** The item two id */
item_two_id: number;
item_two_id: number | null;

/** The item three id */
item_three_id: number;
item_three_id: number | null;

/** The xp gained */
xp_gained: number;
Expand Down
1 change: 1 addition & 0 deletions src/mainsite/crafting/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './CraftingRecipeResponse';
export * from './CraftingSetItemRequest';
export * from './CraftingTableResponse';
export * from './SetRecipeToTableRequest';
15 changes: 15 additions & 0 deletions src/mainsite/equippeditems/EquippedItemPackResponse.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { ItemPackWithBenefitResponseDto } from '../../itemsystem/items/dto';

Check failure on line 1 in src/mainsite/equippeditems/EquippedItemPackResponse.ts

View workflow job for this annotation

GitHub Actions / Push @dmgincs/api-types

Cannot find module '../../itemsystem/items/dto' or its corresponding type declarations.

export class EquippedItemPackResponseDto {

pack: ItemPackWithBenefitResponseDto;

/** Whether the full pack is equipped by the member */
fullyEquipped: boolean;

/** The amount of items from the pack which have been equipped */
equippedCount: number;

/** The total amount of items required to be equipped for the pack to be fully equipped */
requiredEquippedCount: number;
}
3 changes: 3 additions & 0 deletions src/mainsite/itemsystem/inventoryitems/InventoryResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ export class InventoryResponseDto {

/** Whether the item is in use */
in_use: boolean;

/** How many of the item are in the stack */
quantity: number;
}
3 changes: 3 additions & 0 deletions src/mainsite/itemsystem/inventoryitems/ProtectionResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ export class ProtectionResponseDto {

/** Whether the protection is active */
isActive: boolean;

/** The name of where the protection is coming from */
name: string;
}
2 changes: 1 addition & 1 deletion src/mainsite/itemsystem/items/ItemWithBenefitResponse.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ItemResponseDto } from '~/mainsite/itemsystem/items';
import { ItemResponseDto } from './ItemResponse';

export class ItemWithBenefitResponseDto extends ItemResponseDto {
/** The benefits associated with equipping the item */
Expand Down
1 change: 1 addition & 0 deletions src/mainsite/notification/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export * from './GetNotificationSettingsResponse';
export * from './GetUnreadNotificationRequest';
export * from './NotifyGroupsRequest';
export * from './UpdateNotificationSettingsRequest';
2 changes: 1 addition & 1 deletion src/mainsite/repshop/RepshopCategoryResponse.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable max-classes-per-file */

class RepshopSubcategoryDto {
export class RepshopSubcategoryDto {
/** The subcategory ID */
id: number;

Expand Down
3 changes: 3 additions & 0 deletions src/mainsite/repshop/RepshopItemBuyResponse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@ export class RepshopItemBuyResponseDto {

/** The date at which the purchase was processed */
itemProcessedDate: Date | null;

/** Whether the item is currently activated for the member */
itemActive?: boolean;
}
2 changes: 2 additions & 0 deletions src/mainsite/repshop/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export * from './BuyRepshopItemRequest';
export * from './GetTaxReductionResponse';
export * from './ProcessRepshopItemRequest';
export * from './RepshopCategoryResponse';
export * from './RepshopItemBuyResponse';
export * from './RepshopItemResponse';

0 comments on commit 88aacb5

Please sign in to comment.