Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions src/types/AugmentedTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* This file contains references to the generated types from api.ts as well as extensions to supplement their data.
*/

import type { Paths } from "./api";
import type { Components, Paths } from "./api";
import type { Guild } from "./Augmented/Guild";
import type { Player } from "./Augmented/Player";
import type {
Expand Down Expand Up @@ -114,8 +114,27 @@ export type ResourcesSkyblockElectionResponse = Paths.V2ResourcesSkyblockElectio
current: ElectionCurrent | null;
};

export type ResourcesSkyblockItemsResponse = Paths.V2ResourcesSkyblockItems.Get.Responses.$200 &
Record<string, unknown>;
export type SkyBlockItem = Omit<Components.Schemas.SkyBlockItem, "tier"> & {
tier?:
| "COMMON"
| "UNCOMMON"
| "RARE"
| "EPIC"
| "LEGENDARY"
| "MYTHIC"
| "SUPREME"
| "SPECIAL"
| "VERY_SPECIAL"
| "UNOBTAINABLE";
};

export type ResourcesSkyblockItemsResponse = Omit<
Paths.V2ResourcesSkyblockItems.Get.Responses.$200,
"items"
> &
Record<string, unknown> & {
items?: SkyBlockItem[];
};

export type ResourcesSkyblockSkillsResponse = Paths.V2ResourcesSkyblockSkills.Get.Responses.$200 &
Record<string, unknown> & {
Expand Down