Skip to content

Commit

Permalink
feat: updated enum and interfaces with new types
Browse files Browse the repository at this point in the history
  • Loading branch information
FraWolf committed Dec 7, 2022
1 parent 505d924 commit f218cc6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/types/enum.ts
Expand Up @@ -712,6 +712,7 @@ export enum DestinyActivityModeType {
Rift = 88,
ZoneControl = 89,
IronBannerRift = 90,
IronBannerZoneControl = 91,
}

export enum DestinyActivityModeCategory {
Expand Down Expand Up @@ -942,6 +943,7 @@ export enum DestinyGameVersions {
BeyondLight = 64,
Anniversary30th = 128,
TheWitchQueen = 256,
Lightfall = 512,
}

export enum DestinyComponentType {
Expand Down Expand Up @@ -1076,7 +1078,10 @@ export enum EquipFailureReason {
ItemUniqueEquipRestricted = 2,
ItemFailedUnlockCheck = 4,
ItemFailedLevelCheck = 8,
ItemNotOnCharacter = 16,
ItemWrapped = 16,
ItemNotLoaded = 32,
ItemEquipBlocklisted = 64,
ItemLoadoutRequirementNotMet = 128,
}

export enum DestinyTalentNodeState {
Expand Down Expand Up @@ -1140,6 +1145,8 @@ export enum DestinyVendorItemState {
Popular = 65536,
Free = 131072,
Locked = 262144,
Paracausal = 524288,
Cryptarch = 1048576,
}

export enum DestinySocketArrayType {
Expand Down Expand Up @@ -1421,6 +1428,9 @@ export enum PlatformErrorCodes {
ErrorDatabaseGlobalName = 239,
ErrorNoAvailableNameChanges = 240,
ErrorNameAlreadySetToInput = 241,
UserDisplayNameLessThanMinLength = 242,
UserDisplayNameGreaterThanMaxLength = 243,
UserDisplayNameContainsUnacceptableOrInvalidContent = 244,
MessagingUnknownError = 300,
MessagingSelfError = 301,
MessagingSendThrottle = 302,
Expand Down Expand Up @@ -1631,6 +1641,8 @@ export enum PlatformErrorCodes {
ClanNameRestricted = 751,
ClanCreationBan = 752,
ClanCreationTenureRequirementsNotMet = 753,
ClanFieldContainsReservedTerms = 754,
ClanFieldContainsInappropriateContent = 755,
ItemAlreadyFollowed = 801,
ItemNotFollowed = 802,
CannotFollowSelf = 803,
Expand Down Expand Up @@ -1931,6 +1943,8 @@ export enum PlatformErrorCodes {
TwitchNoPlatformChosen = 2506,
TwitchDropHistoryPermissionFailure = 2507,
TwitchDropsRepairPartialFailure = 2508,
TwitchNotAuthorized = 2509,
TwitchUnknownAuthorizationFailure = 2510,
TrendingCategoryNotFound = 2600,
TrendingEntryTypeNotSupported = 2601,
ReportOffenderNotInPgcr = 2700,
Expand Down
6 changes: 6 additions & 0 deletions src/types/interface.ts
Expand Up @@ -779,6 +779,7 @@ export interface NewsArticleRssResponse {
CurrentPaginationToken: number;
NextPaginationToken: number;
ResultCountThisPage: number;
CategoryFilter: string;
}

export interface NewsArticleRssItem {
Expand All @@ -787,6 +788,9 @@ export interface NewsArticleRssItem {
PubDate: string;
UniqueIdentifier: string;
Description: string;
HtmlContent: string;
ImagePath: string;
OptionalMobileImagePath: string;
}

export interface SearchResult {
Expand Down Expand Up @@ -2680,6 +2684,8 @@ export interface DestinyErrorProfile {
}

export interface DestinyProfileResponse {
responseMintedTimestamp: string;
secondaryComponentsMintedTimestamp: string;
vendorReceipts: SingleComponentResponseOfDestinyVendorReceiptsComponent;
profileInventory: SingleComponentResponseOfDestinyInventoryComponent;
profileCurrencies: SingleComponentResponseOfDestinyInventoryComponent;
Expand Down

0 comments on commit f218cc6

Please sign in to comment.