@dendotdev/grunt 1.0.6 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +35 -33
- package/dist/index.d.ts +35 -33
- package/dist/index.js +6 -21
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -21
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1798,25 +1798,38 @@ interface ChallengeDecksResponse {
|
|
|
1798
1798
|
upcomingDecks?: ChallengeDeck[];
|
|
1799
1799
|
}
|
|
1800
1800
|
/**
|
|
1801
|
-
* Reward track
|
|
1801
|
+
* Reward track progress measurement.
|
|
1802
|
+
*/
|
|
1803
|
+
interface RewardTrackProgress {
|
|
1804
|
+
/** Reward track rank */
|
|
1805
|
+
Rank?: number;
|
|
1806
|
+
/** Partial progress within rank */
|
|
1807
|
+
PartialProgress?: number;
|
|
1808
|
+
/** Whether the reward track is owned */
|
|
1809
|
+
IsOwned?: boolean;
|
|
1810
|
+
/** Whether maximum rank has been reached */
|
|
1811
|
+
HasReachedMaxRank?: boolean;
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Reward track (battle pass / operation / career rank).
|
|
1802
1815
|
*/
|
|
1803
1816
|
interface RewardTrack {
|
|
1804
|
-
/**
|
|
1805
|
-
|
|
1806
|
-
/**
|
|
1807
|
-
|
|
1808
|
-
/** Current
|
|
1809
|
-
|
|
1810
|
-
/**
|
|
1811
|
-
|
|
1812
|
-
/**
|
|
1813
|
-
|
|
1814
|
-
/**
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
|
|
1818
|
-
/** Whether
|
|
1819
|
-
|
|
1817
|
+
/** Path to the reward track */
|
|
1818
|
+
RewardTrackPath?: string;
|
|
1819
|
+
/** Type of reward track */
|
|
1820
|
+
TrackType?: string;
|
|
1821
|
+
/** Current progress */
|
|
1822
|
+
CurrentProgress?: RewardTrackProgress;
|
|
1823
|
+
/** Previous progress */
|
|
1824
|
+
PreviousProgress?: RewardTrackProgress;
|
|
1825
|
+
/** Whether the player owns the reward track */
|
|
1826
|
+
IsOwned?: boolean;
|
|
1827
|
+
/** Base XP amount */
|
|
1828
|
+
BaseXp?: number;
|
|
1829
|
+
/** Boost XP amount */
|
|
1830
|
+
BoostXp?: number;
|
|
1831
|
+
/** Whether maximum rank has been reached */
|
|
1832
|
+
HasReachedMaxRank?: boolean;
|
|
1820
1833
|
}
|
|
1821
1834
|
/**
|
|
1822
1835
|
* Reward track metadata.
|
|
@@ -2245,13 +2258,13 @@ declare class EconomyModule extends ModuleBase {
|
|
|
2245
2258
|
*/
|
|
2246
2259
|
getPlayerOperations(player: string): Promise<HaloApiResult<OperationRewardTrackSnapshot>>;
|
|
2247
2260
|
/**
|
|
2248
|
-
* Get career rank for
|
|
2261
|
+
* Get career rank for a player.
|
|
2249
2262
|
*
|
|
2250
|
-
* @param
|
|
2263
|
+
* @param player - Player's numeric XUID
|
|
2251
2264
|
* @param careerPathId - Career path identifier
|
|
2252
|
-
* @returns
|
|
2265
|
+
* @returns Reward track with career rank progress
|
|
2253
2266
|
*/
|
|
2254
|
-
getPlayerCareerRank(
|
|
2267
|
+
getPlayerCareerRank(player: string, careerPathId: string): Promise<HaloApiResult<RewardTrack>>;
|
|
2255
2268
|
}
|
|
2256
2269
|
|
|
2257
2270
|
/**
|
|
@@ -2674,9 +2687,6 @@ declare class LobbyModule extends ModuleBase {
|
|
|
2674
2687
|
*
|
|
2675
2688
|
* @example
|
|
2676
2689
|
* ```typescript
|
|
2677
|
-
* // Get clearance level
|
|
2678
|
-
* const clearance = await client.settings.getClearanceLevel();
|
|
2679
|
-
*
|
|
2680
2690
|
* // Get flighted feature flags
|
|
2681
2691
|
* const flags = await client.settings.getFlightedFeatureFlags('flight-id');
|
|
2682
2692
|
*
|
|
@@ -2686,14 +2696,6 @@ declare class LobbyModule extends ModuleBase {
|
|
|
2686
2696
|
*/
|
|
2687
2697
|
declare class SettingsModule extends ModuleBase {
|
|
2688
2698
|
constructor(client: ClientBase);
|
|
2689
|
-
/**
|
|
2690
|
-
* Get the clearance level for the current player.
|
|
2691
|
-
*
|
|
2692
|
-
* Returns feature flags and flight IDs the player has access to.
|
|
2693
|
-
*
|
|
2694
|
-
* @returns Flighted feature flags
|
|
2695
|
-
*/
|
|
2696
|
-
getClearanceLevel(): Promise<HaloApiResult<FlightedFeatureFlags>>;
|
|
2697
2699
|
/**
|
|
2698
2700
|
* Get a list of features enabled for a given flight.
|
|
2699
2701
|
*
|
|
@@ -5732,4 +5734,4 @@ declare const WAYPOINT_ENDPOINTS: {
|
|
|
5732
5734
|
*/
|
|
5733
5735
|
declare function buildServiceUrl(origin: string, path: string): string;
|
|
5734
5736
|
|
|
5735
|
-
export { type AcademyCategory, type AcademyClientManifest, type AcademyDrill, type AcademySeries, type AcademyStarDefinition, type AcademyStarDefinitions, type ActiveBoost, type ActiveBoostsContainer, type AiCore, type AiCoreContainer, type AiCoreTheme, ApiContentType, type Appearance, type AppearanceCustomization, type ArmorCore, type ArmorCoreCollection, type ArmorCoreTheme, type Article, type ArticleAttribute, type ArticleBlock, type ArticleCategory, type AssetAuthoringSession, type AssetBase, AssetKind, type AssetLinks, type AssetReport, type AssetVersionFile, type AuthoringAsset, type AuthoringAssetContainer, type AuthoringAssetRating, type AuthoringAssetVersion, type AuthoringAssetVersionContainer, type AuthoringFavoritesContainer, type AuthoringSessionSourceStarter, type Authority, type BanResult, type BansSummaryQueryResult, type BombStats, type BotAppearance, type BotAttributes, type BotCustomizationData, type BotDifficulty, type CaptureTheFlagStats, type CareerRank, type CareerRankProgress, type CareerTrackContainer, type Challenge, type ChallengeDeck, type ChallengeDeckDefinition, type ChallengeDecksResponse, type ChallengeProgress, type CodeRedemptionResult, type Configuration, type CoreBase, type CoreStats, type Csr, type CurrencyAmount, type CurrencyDefinition, type CurrencySnapshot, type CustomizationData, DEFAULT_AUTH_SCOPES, DEFAULT_CACHE_TTL_MS, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, type DisplayString, type EliminationStats, type EmblemConfiguration, type ExtractionStats, type FavoriteAsset, type FilmAsset, type FilmCustomData, type FlightedFeatureFlags, type GameVariantCustomData, type GameVariantServiceRecord, type GameplayInteraction, type Gamerpic, type GenericAsset, type GiveawayReward, HALO_CORE_ENDPOINTS, HEADERS, HaloApiError, type HaloApiResult, HaloAuthenticationClient, HaloInfiniteClient, type HaloInfiniteClientOptions, type InfectionStats, type InventoryAmount, type JoinLobbyResponse, LifecycleMode, type LobbyJoinHandle, type LobbyPresenceContainer, type LobbyPresenceRequest, type LobbyPresenceRequestContainer, type LobbyPresenceResult, type MapAsset, type MapCustomData, type MapServiceRecord, type MatchHistoryResponse, type MatchInfo, type MatchLinks, type MatchProgression, type MatchSkillInfo, type MatchStats, MatchType, type MatchesPrivacy, type Medal, type MedalCount, type MedalMetadata, type News, type NewsArticle, type Notification, type NotificationData, type OddballStats, type OnlineUriReference, type OperationRewardTrackSnapshot, Outcome, type ParticipationInfo, type Permission, type PersonalScoreEntry, type PlayAssetStats, type Player, type PlayerCareerRankResult, type PlayerDailyCustomExperience, type PlayerGiveaways, type PlayerInventory, type PlayerItem, type PlayerMatchCount, type PlayerMatchHistoryRecord, type PlayerMatchSkill, type PlayerPlaylistCsr, type PlayerServiceRecord, type PlayerTeamStat, PlayerType, type PlaylistCsrResultContainer, type PlaylistExperience, type PlaylistServiceRecord, type PrefabAsset, type PrefabCustomData, type PveStats, type PvpStats, type RawResponse, type RequestOptions, ResultOrder, type RetryOptionsConfig, type RetryPolicyConfig, type Reward, type RewardSnapshot, type RewardTrack, type RewardTrackMetadata, type RewardTrackResultContainer, type SearchLinks, type SeasonCalendar, type SeasonCalendarEntry, type SeasonServiceRecord, type Server, type ServiceAward, type ServiceAwardSnapshot, type ServiceRecordSubqueries, type SettingsConfig, type SpartanBody, type SpartanToken, type SpartanTokenProof, type SpartanTokenRequest, type SpriteSheet, type Stats, type StockpileStats, type StoreItem, type StoreOffering, type StorePrice, type Team, type TestAcademyClientManifest, type ThemeBase, type TimePlayed, type TransactionSnapshot, USER_AGENTS, type UgcGameVariant, type UgcGameVariantAsset, type UgcSearchParams, type UgcSearchResult, type UserEmail, type UserNotificationsSettings, type UserProfile, type UserSettings, type VehicleCore, type VehicleCoreCollection, type VehicleCoreTheme, type VipStats, WAYPOINT_ENDPOINTS, WaypointClient, type WaypointClientOptions, type WeaponCore, type WeaponCoreCollection, type WeaponCoreTheme, type WinLossRecord, type XpBreakdown, type ZonesStats, buildServiceUrl, getContentTypeHeader, isClientError, isNotModified, isServerError, isSuccess };
|
|
5737
|
+
export { type AcademyCategory, type AcademyClientManifest, type AcademyDrill, type AcademySeries, type AcademyStarDefinition, type AcademyStarDefinitions, type ActiveBoost, type ActiveBoostsContainer, type AiCore, type AiCoreContainer, type AiCoreTheme, ApiContentType, type Appearance, type AppearanceCustomization, type ArmorCore, type ArmorCoreCollection, type ArmorCoreTheme, type Article, type ArticleAttribute, type ArticleBlock, type ArticleCategory, type AssetAuthoringSession, type AssetBase, AssetKind, type AssetLinks, type AssetReport, type AssetVersionFile, type AuthoringAsset, type AuthoringAssetContainer, type AuthoringAssetRating, type AuthoringAssetVersion, type AuthoringAssetVersionContainer, type AuthoringFavoritesContainer, type AuthoringSessionSourceStarter, type Authority, type BanResult, type BansSummaryQueryResult, type BombStats, type BotAppearance, type BotAttributes, type BotCustomizationData, type BotDifficulty, type CaptureTheFlagStats, type CareerRank, type CareerRankProgress, type CareerTrackContainer, type Challenge, type ChallengeDeck, type ChallengeDeckDefinition, type ChallengeDecksResponse, type ChallengeProgress, type CodeRedemptionResult, type Configuration, type CoreBase, type CoreStats, type Csr, type CurrencyAmount, type CurrencyDefinition, type CurrencySnapshot, type CustomizationData, DEFAULT_AUTH_SCOPES, DEFAULT_CACHE_TTL_MS, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, type DisplayString, type EliminationStats, type EmblemConfiguration, type ExtractionStats, type FavoriteAsset, type FilmAsset, type FilmCustomData, type FlightedFeatureFlags, type GameVariantCustomData, type GameVariantServiceRecord, type GameplayInteraction, type Gamerpic, type GenericAsset, type GiveawayReward, HALO_CORE_ENDPOINTS, HEADERS, HaloApiError, type HaloApiResult, HaloAuthenticationClient, HaloInfiniteClient, type HaloInfiniteClientOptions, type InfectionStats, type InventoryAmount, type JoinLobbyResponse, LifecycleMode, type LobbyJoinHandle, type LobbyPresenceContainer, type LobbyPresenceRequest, type LobbyPresenceRequestContainer, type LobbyPresenceResult, type MapAsset, type MapCustomData, type MapServiceRecord, type MatchHistoryResponse, type MatchInfo, type MatchLinks, type MatchProgression, type MatchSkillInfo, type MatchStats, MatchType, type MatchesPrivacy, type Medal, type MedalCount, type MedalMetadata, type News, type NewsArticle, type Notification, type NotificationData, type OddballStats, type OnlineUriReference, type OperationRewardTrackSnapshot, Outcome, type ParticipationInfo, type Permission, type PersonalScoreEntry, type PlayAssetStats, type Player, type PlayerCareerRankResult, type PlayerDailyCustomExperience, type PlayerGiveaways, type PlayerInventory, type PlayerItem, type PlayerMatchCount, type PlayerMatchHistoryRecord, type PlayerMatchSkill, type PlayerPlaylistCsr, type PlayerServiceRecord, type PlayerTeamStat, PlayerType, type PlaylistCsrResultContainer, type PlaylistExperience, type PlaylistServiceRecord, type PrefabAsset, type PrefabCustomData, type PveStats, type PvpStats, type RawResponse, type RequestOptions, ResultOrder, type RetryOptionsConfig, type RetryPolicyConfig, type Reward, type RewardSnapshot, type RewardTrack, type RewardTrackMetadata, type RewardTrackProgress, type RewardTrackResultContainer, type SearchLinks, type SeasonCalendar, type SeasonCalendarEntry, type SeasonServiceRecord, type Server, type ServiceAward, type ServiceAwardSnapshot, type ServiceRecordSubqueries, type SettingsConfig, type SpartanBody, type SpartanToken, type SpartanTokenProof, type SpartanTokenRequest, type SpriteSheet, type Stats, type StockpileStats, type StoreItem, type StoreOffering, type StorePrice, type Team, type TestAcademyClientManifest, type ThemeBase, type TimePlayed, type TransactionSnapshot, USER_AGENTS, type UgcGameVariant, type UgcGameVariantAsset, type UgcSearchParams, type UgcSearchResult, type UserEmail, type UserNotificationsSettings, type UserProfile, type UserSettings, type VehicleCore, type VehicleCoreCollection, type VehicleCoreTheme, type VipStats, WAYPOINT_ENDPOINTS, WaypointClient, type WaypointClientOptions, type WeaponCore, type WeaponCoreCollection, type WeaponCoreTheme, type WinLossRecord, type XpBreakdown, type ZonesStats, buildServiceUrl, getContentTypeHeader, isClientError, isNotModified, isServerError, isSuccess };
|
package/dist/index.d.ts
CHANGED
|
@@ -1798,25 +1798,38 @@ interface ChallengeDecksResponse {
|
|
|
1798
1798
|
upcomingDecks?: ChallengeDeck[];
|
|
1799
1799
|
}
|
|
1800
1800
|
/**
|
|
1801
|
-
* Reward track
|
|
1801
|
+
* Reward track progress measurement.
|
|
1802
|
+
*/
|
|
1803
|
+
interface RewardTrackProgress {
|
|
1804
|
+
/** Reward track rank */
|
|
1805
|
+
Rank?: number;
|
|
1806
|
+
/** Partial progress within rank */
|
|
1807
|
+
PartialProgress?: number;
|
|
1808
|
+
/** Whether the reward track is owned */
|
|
1809
|
+
IsOwned?: boolean;
|
|
1810
|
+
/** Whether maximum rank has been reached */
|
|
1811
|
+
HasReachedMaxRank?: boolean;
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* Reward track (battle pass / operation / career rank).
|
|
1802
1815
|
*/
|
|
1803
1816
|
interface RewardTrack {
|
|
1804
|
-
/**
|
|
1805
|
-
|
|
1806
|
-
/**
|
|
1807
|
-
|
|
1808
|
-
/** Current
|
|
1809
|
-
|
|
1810
|
-
/**
|
|
1811
|
-
|
|
1812
|
-
/**
|
|
1813
|
-
|
|
1814
|
-
/**
|
|
1815
|
-
|
|
1816
|
-
/**
|
|
1817
|
-
|
|
1818
|
-
/** Whether
|
|
1819
|
-
|
|
1817
|
+
/** Path to the reward track */
|
|
1818
|
+
RewardTrackPath?: string;
|
|
1819
|
+
/** Type of reward track */
|
|
1820
|
+
TrackType?: string;
|
|
1821
|
+
/** Current progress */
|
|
1822
|
+
CurrentProgress?: RewardTrackProgress;
|
|
1823
|
+
/** Previous progress */
|
|
1824
|
+
PreviousProgress?: RewardTrackProgress;
|
|
1825
|
+
/** Whether the player owns the reward track */
|
|
1826
|
+
IsOwned?: boolean;
|
|
1827
|
+
/** Base XP amount */
|
|
1828
|
+
BaseXp?: number;
|
|
1829
|
+
/** Boost XP amount */
|
|
1830
|
+
BoostXp?: number;
|
|
1831
|
+
/** Whether maximum rank has been reached */
|
|
1832
|
+
HasReachedMaxRank?: boolean;
|
|
1820
1833
|
}
|
|
1821
1834
|
/**
|
|
1822
1835
|
* Reward track metadata.
|
|
@@ -2245,13 +2258,13 @@ declare class EconomyModule extends ModuleBase {
|
|
|
2245
2258
|
*/
|
|
2246
2259
|
getPlayerOperations(player: string): Promise<HaloApiResult<OperationRewardTrackSnapshot>>;
|
|
2247
2260
|
/**
|
|
2248
|
-
* Get career rank for
|
|
2261
|
+
* Get career rank for a player.
|
|
2249
2262
|
*
|
|
2250
|
-
* @param
|
|
2263
|
+
* @param player - Player's numeric XUID
|
|
2251
2264
|
* @param careerPathId - Career path identifier
|
|
2252
|
-
* @returns
|
|
2265
|
+
* @returns Reward track with career rank progress
|
|
2253
2266
|
*/
|
|
2254
|
-
getPlayerCareerRank(
|
|
2267
|
+
getPlayerCareerRank(player: string, careerPathId: string): Promise<HaloApiResult<RewardTrack>>;
|
|
2255
2268
|
}
|
|
2256
2269
|
|
|
2257
2270
|
/**
|
|
@@ -2674,9 +2687,6 @@ declare class LobbyModule extends ModuleBase {
|
|
|
2674
2687
|
*
|
|
2675
2688
|
* @example
|
|
2676
2689
|
* ```typescript
|
|
2677
|
-
* // Get clearance level
|
|
2678
|
-
* const clearance = await client.settings.getClearanceLevel();
|
|
2679
|
-
*
|
|
2680
2690
|
* // Get flighted feature flags
|
|
2681
2691
|
* const flags = await client.settings.getFlightedFeatureFlags('flight-id');
|
|
2682
2692
|
*
|
|
@@ -2686,14 +2696,6 @@ declare class LobbyModule extends ModuleBase {
|
|
|
2686
2696
|
*/
|
|
2687
2697
|
declare class SettingsModule extends ModuleBase {
|
|
2688
2698
|
constructor(client: ClientBase);
|
|
2689
|
-
/**
|
|
2690
|
-
* Get the clearance level for the current player.
|
|
2691
|
-
*
|
|
2692
|
-
* Returns feature flags and flight IDs the player has access to.
|
|
2693
|
-
*
|
|
2694
|
-
* @returns Flighted feature flags
|
|
2695
|
-
*/
|
|
2696
|
-
getClearanceLevel(): Promise<HaloApiResult<FlightedFeatureFlags>>;
|
|
2697
2699
|
/**
|
|
2698
2700
|
* Get a list of features enabled for a given flight.
|
|
2699
2701
|
*
|
|
@@ -5732,4 +5734,4 @@ declare const WAYPOINT_ENDPOINTS: {
|
|
|
5732
5734
|
*/
|
|
5733
5735
|
declare function buildServiceUrl(origin: string, path: string): string;
|
|
5734
5736
|
|
|
5735
|
-
export { type AcademyCategory, type AcademyClientManifest, type AcademyDrill, type AcademySeries, type AcademyStarDefinition, type AcademyStarDefinitions, type ActiveBoost, type ActiveBoostsContainer, type AiCore, type AiCoreContainer, type AiCoreTheme, ApiContentType, type Appearance, type AppearanceCustomization, type ArmorCore, type ArmorCoreCollection, type ArmorCoreTheme, type Article, type ArticleAttribute, type ArticleBlock, type ArticleCategory, type AssetAuthoringSession, type AssetBase, AssetKind, type AssetLinks, type AssetReport, type AssetVersionFile, type AuthoringAsset, type AuthoringAssetContainer, type AuthoringAssetRating, type AuthoringAssetVersion, type AuthoringAssetVersionContainer, type AuthoringFavoritesContainer, type AuthoringSessionSourceStarter, type Authority, type BanResult, type BansSummaryQueryResult, type BombStats, type BotAppearance, type BotAttributes, type BotCustomizationData, type BotDifficulty, type CaptureTheFlagStats, type CareerRank, type CareerRankProgress, type CareerTrackContainer, type Challenge, type ChallengeDeck, type ChallengeDeckDefinition, type ChallengeDecksResponse, type ChallengeProgress, type CodeRedemptionResult, type Configuration, type CoreBase, type CoreStats, type Csr, type CurrencyAmount, type CurrencyDefinition, type CurrencySnapshot, type CustomizationData, DEFAULT_AUTH_SCOPES, DEFAULT_CACHE_TTL_MS, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, type DisplayString, type EliminationStats, type EmblemConfiguration, type ExtractionStats, type FavoriteAsset, type FilmAsset, type FilmCustomData, type FlightedFeatureFlags, type GameVariantCustomData, type GameVariantServiceRecord, type GameplayInteraction, type Gamerpic, type GenericAsset, type GiveawayReward, HALO_CORE_ENDPOINTS, HEADERS, HaloApiError, type HaloApiResult, HaloAuthenticationClient, HaloInfiniteClient, type HaloInfiniteClientOptions, type InfectionStats, type InventoryAmount, type JoinLobbyResponse, LifecycleMode, type LobbyJoinHandle, type LobbyPresenceContainer, type LobbyPresenceRequest, type LobbyPresenceRequestContainer, type LobbyPresenceResult, type MapAsset, type MapCustomData, type MapServiceRecord, type MatchHistoryResponse, type MatchInfo, type MatchLinks, type MatchProgression, type MatchSkillInfo, type MatchStats, MatchType, type MatchesPrivacy, type Medal, type MedalCount, type MedalMetadata, type News, type NewsArticle, type Notification, type NotificationData, type OddballStats, type OnlineUriReference, type OperationRewardTrackSnapshot, Outcome, type ParticipationInfo, type Permission, type PersonalScoreEntry, type PlayAssetStats, type Player, type PlayerCareerRankResult, type PlayerDailyCustomExperience, type PlayerGiveaways, type PlayerInventory, type PlayerItem, type PlayerMatchCount, type PlayerMatchHistoryRecord, type PlayerMatchSkill, type PlayerPlaylistCsr, type PlayerServiceRecord, type PlayerTeamStat, PlayerType, type PlaylistCsrResultContainer, type PlaylistExperience, type PlaylistServiceRecord, type PrefabAsset, type PrefabCustomData, type PveStats, type PvpStats, type RawResponse, type RequestOptions, ResultOrder, type RetryOptionsConfig, type RetryPolicyConfig, type Reward, type RewardSnapshot, type RewardTrack, type RewardTrackMetadata, type RewardTrackResultContainer, type SearchLinks, type SeasonCalendar, type SeasonCalendarEntry, type SeasonServiceRecord, type Server, type ServiceAward, type ServiceAwardSnapshot, type ServiceRecordSubqueries, type SettingsConfig, type SpartanBody, type SpartanToken, type SpartanTokenProof, type SpartanTokenRequest, type SpriteSheet, type Stats, type StockpileStats, type StoreItem, type StoreOffering, type StorePrice, type Team, type TestAcademyClientManifest, type ThemeBase, type TimePlayed, type TransactionSnapshot, USER_AGENTS, type UgcGameVariant, type UgcGameVariantAsset, type UgcSearchParams, type UgcSearchResult, type UserEmail, type UserNotificationsSettings, type UserProfile, type UserSettings, type VehicleCore, type VehicleCoreCollection, type VehicleCoreTheme, type VipStats, WAYPOINT_ENDPOINTS, WaypointClient, type WaypointClientOptions, type WeaponCore, type WeaponCoreCollection, type WeaponCoreTheme, type WinLossRecord, type XpBreakdown, type ZonesStats, buildServiceUrl, getContentTypeHeader, isClientError, isNotModified, isServerError, isSuccess };
|
|
5737
|
+
export { type AcademyCategory, type AcademyClientManifest, type AcademyDrill, type AcademySeries, type AcademyStarDefinition, type AcademyStarDefinitions, type ActiveBoost, type ActiveBoostsContainer, type AiCore, type AiCoreContainer, type AiCoreTheme, ApiContentType, type Appearance, type AppearanceCustomization, type ArmorCore, type ArmorCoreCollection, type ArmorCoreTheme, type Article, type ArticleAttribute, type ArticleBlock, type ArticleCategory, type AssetAuthoringSession, type AssetBase, AssetKind, type AssetLinks, type AssetReport, type AssetVersionFile, type AuthoringAsset, type AuthoringAssetContainer, type AuthoringAssetRating, type AuthoringAssetVersion, type AuthoringAssetVersionContainer, type AuthoringFavoritesContainer, type AuthoringSessionSourceStarter, type Authority, type BanResult, type BansSummaryQueryResult, type BombStats, type BotAppearance, type BotAttributes, type BotCustomizationData, type BotDifficulty, type CaptureTheFlagStats, type CareerRank, type CareerRankProgress, type CareerTrackContainer, type Challenge, type ChallengeDeck, type ChallengeDeckDefinition, type ChallengeDecksResponse, type ChallengeProgress, type CodeRedemptionResult, type Configuration, type CoreBase, type CoreStats, type Csr, type CurrencyAmount, type CurrencyDefinition, type CurrencySnapshot, type CustomizationData, DEFAULT_AUTH_SCOPES, DEFAULT_CACHE_TTL_MS, DEFAULT_MAX_RETRIES, DEFAULT_TIMEOUT_MS, type DisplayString, type EliminationStats, type EmblemConfiguration, type ExtractionStats, type FavoriteAsset, type FilmAsset, type FilmCustomData, type FlightedFeatureFlags, type GameVariantCustomData, type GameVariantServiceRecord, type GameplayInteraction, type Gamerpic, type GenericAsset, type GiveawayReward, HALO_CORE_ENDPOINTS, HEADERS, HaloApiError, type HaloApiResult, HaloAuthenticationClient, HaloInfiniteClient, type HaloInfiniteClientOptions, type InfectionStats, type InventoryAmount, type JoinLobbyResponse, LifecycleMode, type LobbyJoinHandle, type LobbyPresenceContainer, type LobbyPresenceRequest, type LobbyPresenceRequestContainer, type LobbyPresenceResult, type MapAsset, type MapCustomData, type MapServiceRecord, type MatchHistoryResponse, type MatchInfo, type MatchLinks, type MatchProgression, type MatchSkillInfo, type MatchStats, MatchType, type MatchesPrivacy, type Medal, type MedalCount, type MedalMetadata, type News, type NewsArticle, type Notification, type NotificationData, type OddballStats, type OnlineUriReference, type OperationRewardTrackSnapshot, Outcome, type ParticipationInfo, type Permission, type PersonalScoreEntry, type PlayAssetStats, type Player, type PlayerCareerRankResult, type PlayerDailyCustomExperience, type PlayerGiveaways, type PlayerInventory, type PlayerItem, type PlayerMatchCount, type PlayerMatchHistoryRecord, type PlayerMatchSkill, type PlayerPlaylistCsr, type PlayerServiceRecord, type PlayerTeamStat, PlayerType, type PlaylistCsrResultContainer, type PlaylistExperience, type PlaylistServiceRecord, type PrefabAsset, type PrefabCustomData, type PveStats, type PvpStats, type RawResponse, type RequestOptions, ResultOrder, type RetryOptionsConfig, type RetryPolicyConfig, type Reward, type RewardSnapshot, type RewardTrack, type RewardTrackMetadata, type RewardTrackProgress, type RewardTrackResultContainer, type SearchLinks, type SeasonCalendar, type SeasonCalendarEntry, type SeasonServiceRecord, type Server, type ServiceAward, type ServiceAwardSnapshot, type ServiceRecordSubqueries, type SettingsConfig, type SpartanBody, type SpartanToken, type SpartanTokenProof, type SpartanTokenRequest, type SpriteSheet, type Stats, type StockpileStats, type StoreItem, type StoreOffering, type StorePrice, type Team, type TestAcademyClientManifest, type ThemeBase, type TimePlayed, type TransactionSnapshot, USER_AGENTS, type UgcGameVariant, type UgcGameVariantAsset, type UgcSearchParams, type UgcSearchResult, type UserEmail, type UserNotificationsSettings, type UserProfile, type UserSettings, type VehicleCore, type VehicleCoreCollection, type VehicleCoreTheme, type VipStats, WAYPOINT_ENDPOINTS, WaypointClient, type WaypointClientOptions, type WeaponCore, type WeaponCoreCollection, type WeaponCoreTheme, type WinLossRecord, type XpBreakdown, type ZonesStats, buildServiceUrl, getContentTypeHeader, isClientError, isNotModified, isServerError, isSuccess };
|
package/dist/index.js
CHANGED
|
@@ -1196,20 +1196,17 @@ var EconomyModule = class extends ModuleBase {
|
|
|
1196
1196
|
);
|
|
1197
1197
|
}
|
|
1198
1198
|
/**
|
|
1199
|
-
* Get career rank for
|
|
1199
|
+
* Get career rank for a player.
|
|
1200
1200
|
*
|
|
1201
|
-
* @param
|
|
1201
|
+
* @param player - Player's numeric XUID
|
|
1202
1202
|
* @param careerPathId - Career path identifier
|
|
1203
|
-
* @returns
|
|
1203
|
+
* @returns Reward track with career rank progress
|
|
1204
1204
|
*/
|
|
1205
|
-
getPlayerCareerRank(
|
|
1206
|
-
|
|
1207
|
-
throw new Error("playerIds cannot be empty");
|
|
1208
|
-
}
|
|
1205
|
+
getPlayerCareerRank(player, careerPathId) {
|
|
1206
|
+
this.assertNotEmpty(player, "player");
|
|
1209
1207
|
this.assertNotEmpty(careerPathId, "careerPathId");
|
|
1210
|
-
const formattedPlayerList = playerIds.map((id) => `xuid(${id})`).join(",");
|
|
1211
1208
|
return this.get(
|
|
1212
|
-
`/hi/careerranks/${careerPathId}
|
|
1209
|
+
`/hi/players/xuid(${player})/rewardtracks/careerranks/${careerPathId}`,
|
|
1213
1210
|
{ useClearance: true }
|
|
1214
1211
|
);
|
|
1215
1212
|
}
|
|
@@ -1738,18 +1735,6 @@ var SettingsModule = class extends ModuleBase {
|
|
|
1738
1735
|
constructor(client) {
|
|
1739
1736
|
super(client, HALO_CORE_ENDPOINTS.SETTINGS_ORIGIN);
|
|
1740
1737
|
}
|
|
1741
|
-
/**
|
|
1742
|
-
* Get the clearance level for the current player.
|
|
1743
|
-
*
|
|
1744
|
-
* Returns feature flags and flight IDs the player has access to.
|
|
1745
|
-
*
|
|
1746
|
-
* @returns Flighted feature flags
|
|
1747
|
-
*/
|
|
1748
|
-
getClearanceLevel() {
|
|
1749
|
-
return this.get("/hi/clearance", {
|
|
1750
|
-
useSpartanToken: true
|
|
1751
|
-
});
|
|
1752
|
-
}
|
|
1753
1738
|
/**
|
|
1754
1739
|
* Get a list of features enabled for a given flight.
|
|
1755
1740
|
*
|