sekai-calculator 0.6.0 → 0.6.2

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.cjs CHANGED
@@ -735,6 +735,7 @@ class MusicRecommend {
735
735
  }
736
736
  }
737
737
 
738
+ exports.BaseDeckRecommend = BaseDeckRecommend;
738
739
  exports.CachedDataProvider = CachedDataProvider;
739
740
  exports.CardCalculator = CardCalculator;
740
741
  exports.CardEventCalculator = CardEventCalculator;
package/dist/index.d.ts CHANGED
@@ -271,6 +271,19 @@ declare class EventCalculator {
271
271
  static getDeckEventPoint(deckCards: CardDetail[], honorBonus: number, musicMeta: MusicMeta, liveType: LiveType): number;
272
272
  }
273
273
 
274
+ declare class BaseDeckRecommend {
275
+ private readonly dataProvider;
276
+ private readonly cardCalculator;
277
+ private readonly deckCalculator;
278
+ constructor(dataProvider: DataProvider);
279
+ private static canMakeEventDeck;
280
+ private static filterCard;
281
+ private static findBestCards;
282
+ recommendHighScoreDeck(userCards: UserCard[], scoreFunc: ScoreFunction, { musicMeta, limit, member, cardConfig }: DeckRecommendConfig, eventId?: number, isChallengeLive?: boolean): Promise<RecommendDeck[]>;
283
+ static getLiveScoreFunction(liveType: LiveType): ScoreFunction;
284
+ static getEventPointFunction(liveType: LiveType): ScoreFunction;
285
+ }
286
+ type ScoreFunction = (musicMeta: MusicMeta, honorBonus: number, deckCards: CardDetail[]) => number;
274
287
  interface RecommendDeck {
275
288
  score: number;
276
289
  power: number;
@@ -428,6 +441,35 @@ interface MasterLesson {
428
441
  rewards: CommonResource[];
429
442
  }
430
443
 
444
+ interface Music {
445
+ id: number;
446
+ seq: number;
447
+ releaseConditionId: number;
448
+ categories: string[];
449
+ title: string;
450
+ pronunciation: string;
451
+ creator: string;
452
+ lyricist: string;
453
+ composer: string;
454
+ arranger: string;
455
+ dancerCount: number;
456
+ selfDancerPosition: number;
457
+ assetbundleName: string;
458
+ liveTalkBackgroundAssetbundleName: string;
459
+ publishedAt: number;
460
+ liveStageId: number;
461
+ fillerSec: number;
462
+ }
463
+
464
+ interface MusicDifficulty {
465
+ id: number;
466
+ musicId: number;
467
+ musicDifficulty: string;
468
+ playLevel: number;
469
+ releaseConditionId: number;
470
+ totalNoteCount: number;
471
+ }
472
+
431
473
  interface Skill {
432
474
  id: number;
433
475
  shortDescription: string;
@@ -525,4 +567,4 @@ interface UserHonor {
525
567
  level: number;
526
568
  }
527
569
 
528
- export { AreaItemLevel, CachedDataProvider, Card, CardCalculator, CardConfig, CardDetail, CardEpisode, CardEventCalculator, CardPowerCalculator, CardRarity, CardSkillCalculator, ChallengeLiveDeckRecommend, CharacterRank, DataProvider, DeckCalculator, DeckDetail, DeckService, EventCalculator, EventCard, EventDeckBonus, EventDeckRecommend, EventRarityBonusRate, GameCharacter, GameCharacterUnit, Honor, LiveCalculator, LiveDetail, LiveSkill, LiveType, MasterLesson, MusicMeta, MusicRecommend, Skill, SkillDetail, User, UserArea, UserCard, UserChallengeLiveSoloDeck, UserCharacter, UserDeck, UserHonor };
570
+ export { AreaItemLevel, BaseDeckRecommend, CachedDataProvider, Card, CardCalculator, CardConfig, CardDetail, CardEpisode, CardEventCalculator, CardPowerCalculator, CardRarity, CardSkillCalculator, ChallengeLiveDeckRecommend, CharacterRank, DataProvider, DeckCalculator, DeckDetail, DeckRecommendConfig, DeckService, EventCalculator, EventCard, EventDeckBonus, EventDeckRecommend, EventRarityBonusRate, GameCharacter, GameCharacterUnit, Honor, LiveCalculator, LiveDetail, LiveSkill, LiveType, MasterLesson, Music, MusicDifficulty, MusicMeta, MusicRecommend, RecommendDeck, ScoreFunction, Skill, SkillDetail, User, UserArea, UserCard, UserChallengeLiveSoloDeck, UserCharacter, UserDeck, UserHonor };
package/dist/index.mjs CHANGED
@@ -733,4 +733,4 @@ class MusicRecommend {
733
733
  }
734
734
  }
735
735
 
736
- export { CachedDataProvider, CardCalculator, CardEventCalculator, CardPowerCalculator, CardSkillCalculator, ChallengeLiveDeckRecommend, DeckCalculator, DeckService, EventCalculator, EventDeckRecommend, LiveCalculator, LiveType, MusicRecommend };
736
+ export { BaseDeckRecommend, CachedDataProvider, CardCalculator, CardEventCalculator, CardPowerCalculator, CardSkillCalculator, ChallengeLiveDeckRecommend, DeckCalculator, DeckService, EventCalculator, EventDeckRecommend, LiveCalculator, LiveType, MusicRecommend };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sekai-calculator",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "description": "Project SEKAI Calculator for deck power, live score, event point and more.",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",