@fnlb-project/fnbr 4.1.0 → 4.1.1
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/enums/Enums.d.ts +1 -69
- package/dist/enums/Enums.js +2 -51
- package/dist/enums/Enums.js.map +1 -1
- package/dist/index.d.ts +0 -15
- package/dist/index.js +1 -31
- package/dist/index.js.map +1 -1
- package/dist/resources/httpResponses.d.ts +9 -482
- package/dist/resources/structs.d.ts +1 -136
- package/dist/src/Client.d.ts +0 -10
- package/dist/src/Client.js +0 -12
- package/dist/src/Client.js.map +1 -1
- package/dist/src/auth/Auth.d.ts +1 -3
- package/dist/src/auth/Auth.js +0 -16
- package/dist/src/auth/Auth.js.map +1 -1
- package/dist/src/structures/party/ClientParty.d.ts +1 -1
- package/dist/src/structures/party/Party.d.ts +1 -1
- package/dist/src/structures/stw/STWSurvivor.d.ts +1 -1
- package/dist/src/util/Util.d.ts +2 -26
- package/dist/src/util/Util.js +1 -200
- package/dist/src/util/Util.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +14 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { FullPlatform, Region
|
|
1
|
+
import type { FullPlatform, Region } from './structs';
|
|
2
2
|
export interface EpicgamesAPIErrorData {
|
|
3
3
|
errorCode: string;
|
|
4
4
|
errorMessage: string;
|
|
@@ -10,6 +10,14 @@ export interface EpicgamesAPIErrorData {
|
|
|
10
10
|
error: string;
|
|
11
11
|
errorStatus?: number;
|
|
12
12
|
}
|
|
13
|
+
export interface RawStatsData {
|
|
14
|
+
accountId: string;
|
|
15
|
+
startTime: number;
|
|
16
|
+
endTime: number;
|
|
17
|
+
stats: {
|
|
18
|
+
[key: string]: number;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
13
21
|
export interface EpicgamesOAuthData {
|
|
14
22
|
access_token: string;
|
|
15
23
|
expires_in: number;
|
|
@@ -290,484 +298,3 @@ export interface CreativeDiscoveryPanel {
|
|
|
290
298
|
hasMore: boolean;
|
|
291
299
|
}[];
|
|
292
300
|
}
|
|
293
|
-
export interface STWProfileItemData {
|
|
294
|
-
templateId: string;
|
|
295
|
-
attributes: {
|
|
296
|
-
[key: string]: any;
|
|
297
|
-
};
|
|
298
|
-
quantity: number;
|
|
299
|
-
}
|
|
300
|
-
export interface STWProfileSurvivorData extends STWProfileItemData {
|
|
301
|
-
attributes: {
|
|
302
|
-
gender: '1' | '2';
|
|
303
|
-
level: number;
|
|
304
|
-
squad_slot_idx: number;
|
|
305
|
-
item_seen: boolean;
|
|
306
|
-
managerSynergy?: string;
|
|
307
|
-
portrait?: string;
|
|
308
|
-
max_level_bonus: number;
|
|
309
|
-
personality: string;
|
|
310
|
-
squad_id: string;
|
|
311
|
-
xp: number;
|
|
312
|
-
slotted_building_id: string;
|
|
313
|
-
building_slot_used: number;
|
|
314
|
-
favorite: boolean;
|
|
315
|
-
set_bonus: string;
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
export interface STWProfileLockerSlotData {
|
|
319
|
-
items: string[];
|
|
320
|
-
activeVariants: string[];
|
|
321
|
-
}
|
|
322
|
-
export interface STWProfileLockerData extends STWProfileItemData {
|
|
323
|
-
attributes: {
|
|
324
|
-
locker_slots_data: {
|
|
325
|
-
slots: {
|
|
326
|
-
Pickaxe: STWProfileLockerSlotData;
|
|
327
|
-
MusicPack?: STWProfileLockerSlotData;
|
|
328
|
-
Character?: STWProfileLockerSlotData;
|
|
329
|
-
ItemWrap: STWProfileLockerSlotData;
|
|
330
|
-
Backpack: STWProfileLockerSlotData;
|
|
331
|
-
Dance: STWProfileLockerSlotData;
|
|
332
|
-
LoadingScreen: STWProfileLockerSlotData;
|
|
333
|
-
};
|
|
334
|
-
};
|
|
335
|
-
use_count: number;
|
|
336
|
-
banner_icon_template: string;
|
|
337
|
-
banner_color_template: string;
|
|
338
|
-
locker_name: string;
|
|
339
|
-
item_seen: boolean;
|
|
340
|
-
favorite: boolean;
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
export interface STWProfileResourceData extends STWProfileItemData {
|
|
344
|
-
attributes: {
|
|
345
|
-
max_level_bonus: number;
|
|
346
|
-
level: number;
|
|
347
|
-
item_seen: boolean;
|
|
348
|
-
xp: number;
|
|
349
|
-
favorite: boolean;
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
export interface STWProfileHeroVariantData {
|
|
353
|
-
channel: string;
|
|
354
|
-
active: string;
|
|
355
|
-
}
|
|
356
|
-
export interface STWProfileHeroData extends STWProfileItemData {
|
|
357
|
-
attributes: {
|
|
358
|
-
outfitvariants: STWProfileHeroVariantData[];
|
|
359
|
-
backblingvariants: STWProfileHeroVariantData[];
|
|
360
|
-
gender: 0;
|
|
361
|
-
level: number;
|
|
362
|
-
item_seen: boolean;
|
|
363
|
-
squad_slot_idx: number;
|
|
364
|
-
portrait: string;
|
|
365
|
-
hero_name: string;
|
|
366
|
-
max_level_bonus: number;
|
|
367
|
-
squad_id: string;
|
|
368
|
-
mode_loadouts: [];
|
|
369
|
-
xp: number;
|
|
370
|
-
slotted_building_id: string;
|
|
371
|
-
refundable: boolean;
|
|
372
|
-
favorite: boolean;
|
|
373
|
-
building_slot_used: number;
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
export interface STWProfileHeroLoadoutData extends STWProfileItemData {
|
|
377
|
-
attributes: {
|
|
378
|
-
team_perk?: string;
|
|
379
|
-
loadout_name: string;
|
|
380
|
-
crew_members: {
|
|
381
|
-
commanderslot: string;
|
|
382
|
-
followerslot1?: string;
|
|
383
|
-
followerslot2?: string;
|
|
384
|
-
followerslot3?: string;
|
|
385
|
-
followerslot4?: string;
|
|
386
|
-
followerslot5?: string;
|
|
387
|
-
leaderslot?: string;
|
|
388
|
-
};
|
|
389
|
-
loadout_index: number;
|
|
390
|
-
gadgets: {
|
|
391
|
-
gadget: string;
|
|
392
|
-
slot_index: number;
|
|
393
|
-
}[];
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
export interface STWProfileSchematicData extends STWProfileItemData {
|
|
397
|
-
attributes: {
|
|
398
|
-
legacy_alterations: unknown[];
|
|
399
|
-
max_level_bonus: number;
|
|
400
|
-
refund_legacy_item: boolean;
|
|
401
|
-
level: number;
|
|
402
|
-
item_seen: boolean;
|
|
403
|
-
alterations: string[];
|
|
404
|
-
xp: number;
|
|
405
|
-
refundable: boolean;
|
|
406
|
-
alteration_base_rarities: STWSchematicAlterationRarity[];
|
|
407
|
-
favorite: boolean;
|
|
408
|
-
};
|
|
409
|
-
}
|
|
410
|
-
export interface STWProfileStatsData {
|
|
411
|
-
node_costs: Partial<{
|
|
412
|
-
homebase_node_default_page: {
|
|
413
|
-
'Token:homebasepoints': number;
|
|
414
|
-
};
|
|
415
|
-
research_node_default_page: {
|
|
416
|
-
'Token:homebasepoints': number;
|
|
417
|
-
};
|
|
418
|
-
}>;
|
|
419
|
-
use_random_loadout: boolean;
|
|
420
|
-
mission_alert_redemption_record: Partial<{
|
|
421
|
-
claimData: {
|
|
422
|
-
missionAlertId: string;
|
|
423
|
-
redemptionDateUtc: string;
|
|
424
|
-
evictClaimDataAfterUtc: string;
|
|
425
|
-
}[];
|
|
426
|
-
}>;
|
|
427
|
-
rewards_claimed_post_max_level: number;
|
|
428
|
-
selected_hero_loadout: string;
|
|
429
|
-
loadouts: string[];
|
|
430
|
-
collection_book: Partial<{
|
|
431
|
-
maxBookXpLevelAchieved: number;
|
|
432
|
-
}>;
|
|
433
|
-
mfa_reward_claimed: boolean;
|
|
434
|
-
quest_manager: Partial<{
|
|
435
|
-
dailyLoginInterval: string;
|
|
436
|
-
dailyQuestRerolls: number;
|
|
437
|
-
questPoolStats: {
|
|
438
|
-
poolStats: {
|
|
439
|
-
poolName: string;
|
|
440
|
-
nextRefresh: string;
|
|
441
|
-
rerollsRemaining: number;
|
|
442
|
-
questHistory: string[];
|
|
443
|
-
}[];
|
|
444
|
-
dailyLoginInterval: string;
|
|
445
|
-
poolLockouts: {
|
|
446
|
-
poolLockouts: {
|
|
447
|
-
lockoutName: string;
|
|
448
|
-
}[];
|
|
449
|
-
};
|
|
450
|
-
};
|
|
451
|
-
}>;
|
|
452
|
-
legacy_research_points_spent: number;
|
|
453
|
-
gameplay_stats: {
|
|
454
|
-
statName: string;
|
|
455
|
-
statValue: number;
|
|
456
|
-
}[];
|
|
457
|
-
permissions: any[];
|
|
458
|
-
unslot_mtx_spend: number;
|
|
459
|
-
twitch: any;
|
|
460
|
-
client_settings: Partial<{
|
|
461
|
-
pinnedQuestInstances: any[];
|
|
462
|
-
}>;
|
|
463
|
-
research_levels: Partial<{
|
|
464
|
-
technology: number;
|
|
465
|
-
offense: number;
|
|
466
|
-
fortitude: number;
|
|
467
|
-
resistance: number;
|
|
468
|
-
}>;
|
|
469
|
-
level: number;
|
|
470
|
-
xp_overflow: number;
|
|
471
|
-
latent_xp_marker: string;
|
|
472
|
-
event_currency?: {
|
|
473
|
-
templateId: string;
|
|
474
|
-
cf: number;
|
|
475
|
-
};
|
|
476
|
-
inventory_limit_bonus: number;
|
|
477
|
-
matches_played: number;
|
|
478
|
-
xp_lost: number;
|
|
479
|
-
mode_loadouts: any[];
|
|
480
|
-
last_applied_loadout: string;
|
|
481
|
-
daily_rewards: Partial<{
|
|
482
|
-
nextDefaultReward: number;
|
|
483
|
-
totalDaysLoggedIn: number;
|
|
484
|
-
lastClaimDate: string;
|
|
485
|
-
additionalSchedules: {
|
|
486
|
-
[key: string]: {
|
|
487
|
-
rewardsClaimed: number;
|
|
488
|
-
claimedToday: boolean;
|
|
489
|
-
};
|
|
490
|
-
};
|
|
491
|
-
}>;
|
|
492
|
-
xp: number;
|
|
493
|
-
packs_granted: number;
|
|
494
|
-
active_loadout_index: number;
|
|
495
|
-
}
|
|
496
|
-
export interface STWProfileData {
|
|
497
|
-
_id: string;
|
|
498
|
-
created: string;
|
|
499
|
-
updated: string;
|
|
500
|
-
rvn: number;
|
|
501
|
-
wipeNumber: number;
|
|
502
|
-
accountId: string;
|
|
503
|
-
profileId: string;
|
|
504
|
-
version: string;
|
|
505
|
-
items: {
|
|
506
|
-
[key: string]: STWProfileItemData;
|
|
507
|
-
};
|
|
508
|
-
stats: {
|
|
509
|
-
attributes: STWProfileStatsData;
|
|
510
|
-
};
|
|
511
|
-
commandRevision: number;
|
|
512
|
-
}
|
|
513
|
-
export interface RawStatsData {
|
|
514
|
-
accountId: string;
|
|
515
|
-
startTime: number;
|
|
516
|
-
endTime: number;
|
|
517
|
-
stats: {
|
|
518
|
-
[key: string]: number;
|
|
519
|
-
};
|
|
520
|
-
}
|
|
521
|
-
export type STWTheaterLocaleData = string;
|
|
522
|
-
export interface STWTheaterDataRequirements {
|
|
523
|
-
commanderLevel: number;
|
|
524
|
-
personalPowerRating: number;
|
|
525
|
-
maxPersonalPowerRating: number;
|
|
526
|
-
partyPowerRating: number;
|
|
527
|
-
maxPartyPowerRating: number;
|
|
528
|
-
activeQuestDefinitions: string[];
|
|
529
|
-
questDefinition: string;
|
|
530
|
-
objectiveStatHandle: {
|
|
531
|
-
dataTable: string;
|
|
532
|
-
rowName: string;
|
|
533
|
-
};
|
|
534
|
-
uncompletedQuestDefinition: string;
|
|
535
|
-
itemDefinition: string;
|
|
536
|
-
eventFlag: string;
|
|
537
|
-
}
|
|
538
|
-
export interface STWTheaterColorData {
|
|
539
|
-
specifiedColor: {
|
|
540
|
-
r: number;
|
|
541
|
-
g: number;
|
|
542
|
-
b: number;
|
|
543
|
-
a: number;
|
|
544
|
-
};
|
|
545
|
-
colorUseRule: string;
|
|
546
|
-
}
|
|
547
|
-
export interface STWTheaterBrushData {
|
|
548
|
-
imageSize: {
|
|
549
|
-
x: number;
|
|
550
|
-
y: number;
|
|
551
|
-
};
|
|
552
|
-
margin: {
|
|
553
|
-
left: number;
|
|
554
|
-
top: number;
|
|
555
|
-
right: number;
|
|
556
|
-
bottom: number;
|
|
557
|
-
};
|
|
558
|
-
tintColor: STWTheaterColorData;
|
|
559
|
-
outlineSettings: {
|
|
560
|
-
cornerRadii: {
|
|
561
|
-
x: number;
|
|
562
|
-
y: number;
|
|
563
|
-
z: number;
|
|
564
|
-
w: number;
|
|
565
|
-
};
|
|
566
|
-
color: STWTheaterColorData;
|
|
567
|
-
width: number;
|
|
568
|
-
roundingType: string;
|
|
569
|
-
};
|
|
570
|
-
resourceObject: string;
|
|
571
|
-
resourceName: string;
|
|
572
|
-
uVRegion: {
|
|
573
|
-
min: {
|
|
574
|
-
x: number;
|
|
575
|
-
y: number;
|
|
576
|
-
};
|
|
577
|
-
max: {
|
|
578
|
-
x: number;
|
|
579
|
-
y: number;
|
|
580
|
-
};
|
|
581
|
-
bIsValid: number;
|
|
582
|
-
};
|
|
583
|
-
drawAs: string;
|
|
584
|
-
tiling: string;
|
|
585
|
-
mirroring: string;
|
|
586
|
-
imageType: string;
|
|
587
|
-
bIsDynamicallyLoaded: boolean;
|
|
588
|
-
}
|
|
589
|
-
export interface STWTheaterData {
|
|
590
|
-
displayName: STWTheaterLocaleData;
|
|
591
|
-
uniqueId: string;
|
|
592
|
-
theaterSlot: number;
|
|
593
|
-
bIsTestTheater: boolean;
|
|
594
|
-
bHideLikeTestTheater: boolean;
|
|
595
|
-
requiredEventFlag: string;
|
|
596
|
-
missionRewardNamedWeightsRowName: string;
|
|
597
|
-
description: STWTheaterLocaleData;
|
|
598
|
-
runtimeInfo: {
|
|
599
|
-
theaterType: string;
|
|
600
|
-
theaterTags: {
|
|
601
|
-
gameplayTags: {
|
|
602
|
-
tagName: string;
|
|
603
|
-
}[];
|
|
604
|
-
};
|
|
605
|
-
eventDependentTheaterTags: {
|
|
606
|
-
requiredEventFlag: string;
|
|
607
|
-
relatedTag: {
|
|
608
|
-
tagName: string;
|
|
609
|
-
};
|
|
610
|
-
}[];
|
|
611
|
-
theaterVisibilityRequirements: STWTheaterDataRequirements;
|
|
612
|
-
requirements: STWTheaterDataRequirements;
|
|
613
|
-
requiredSubGameForVisibility: string;
|
|
614
|
-
bOnlyMatchLinkedQuestsToTiles: boolean;
|
|
615
|
-
worldMapPinClass: string;
|
|
616
|
-
theaterImage: string;
|
|
617
|
-
theaterImages: {
|
|
618
|
-
brush_XXS: STWTheaterBrushData;
|
|
619
|
-
brush_XS: STWTheaterBrushData;
|
|
620
|
-
brush_S: STWTheaterBrushData;
|
|
621
|
-
brush_M: STWTheaterBrushData;
|
|
622
|
-
brush_L: STWTheaterBrushData;
|
|
623
|
-
brush_XL: STWTheaterBrushData;
|
|
624
|
-
};
|
|
625
|
-
theaterColorInfo: {
|
|
626
|
-
bUseDifficultyToDetermineColor: boolean;
|
|
627
|
-
color: STWTheaterColorData;
|
|
628
|
-
};
|
|
629
|
-
socket: string;
|
|
630
|
-
missionAlertRequirements: STWTheaterDataRequirements;
|
|
631
|
-
missionAlertCategoryRequirements: {
|
|
632
|
-
missionAlertCategoryName: string;
|
|
633
|
-
bRespectTileRequirements: boolean;
|
|
634
|
-
bAllowQuickplay: boolean;
|
|
635
|
-
}[];
|
|
636
|
-
gameplayModifierList: any[];
|
|
637
|
-
};
|
|
638
|
-
tiles: {
|
|
639
|
-
tileType: string;
|
|
640
|
-
zoneTheme: string;
|
|
641
|
-
requirements: STWTheaterDataRequirements;
|
|
642
|
-
linkedQuests: {
|
|
643
|
-
questDefinition: string;
|
|
644
|
-
objectiveStatHandle: {
|
|
645
|
-
dataTable: string;
|
|
646
|
-
rowName: string;
|
|
647
|
-
};
|
|
648
|
-
}[];
|
|
649
|
-
xCoordinate: number;
|
|
650
|
-
yCoordinate: number;
|
|
651
|
-
missionWeightOverrides: {
|
|
652
|
-
weight: number;
|
|
653
|
-
missionGenerator: string;
|
|
654
|
-
}[];
|
|
655
|
-
difficultyWeightOverrides: {
|
|
656
|
-
weight: number;
|
|
657
|
-
difficultyInfo: {
|
|
658
|
-
dataTable: string;
|
|
659
|
-
rowName: string;
|
|
660
|
-
};
|
|
661
|
-
}[];
|
|
662
|
-
canBeMissionAlert: boolean;
|
|
663
|
-
tileTags: {
|
|
664
|
-
gameplayTags: {
|
|
665
|
-
tagName: string;
|
|
666
|
-
}[];
|
|
667
|
-
};
|
|
668
|
-
bDisallowQuickplay: boolean;
|
|
669
|
-
}[];
|
|
670
|
-
regions: {
|
|
671
|
-
displayName: STWTheaterLocaleData;
|
|
672
|
-
uniqueId: string;
|
|
673
|
-
regionTags: {
|
|
674
|
-
gameplayTags: {
|
|
675
|
-
tagName: string;
|
|
676
|
-
}[];
|
|
677
|
-
};
|
|
678
|
-
tileIndices: number[];
|
|
679
|
-
regionThemeIcon: string;
|
|
680
|
-
missionData: {
|
|
681
|
-
missionWeights: {
|
|
682
|
-
weight: number;
|
|
683
|
-
missionGenerator: string;
|
|
684
|
-
}[];
|
|
685
|
-
difficultyWeights: {
|
|
686
|
-
weight: number;
|
|
687
|
-
difficultyInfo: {
|
|
688
|
-
dataTable: string;
|
|
689
|
-
rowName: string;
|
|
690
|
-
};
|
|
691
|
-
}[];
|
|
692
|
-
numMissionsAvailable: number;
|
|
693
|
-
numMissionsToChange: number;
|
|
694
|
-
missionChangeFrequency: number;
|
|
695
|
-
};
|
|
696
|
-
requirements: STWTheaterDataRequirements;
|
|
697
|
-
missionAlertRequirements: {
|
|
698
|
-
categoryName: string;
|
|
699
|
-
requirements: STWTheaterDataRequirements;
|
|
700
|
-
}[];
|
|
701
|
-
}[];
|
|
702
|
-
}
|
|
703
|
-
export interface STWMissionItem {
|
|
704
|
-
itemType: string;
|
|
705
|
-
quantity: number;
|
|
706
|
-
}
|
|
707
|
-
export interface STWMissionTierGroup {
|
|
708
|
-
tierGroupName: string;
|
|
709
|
-
items: STWMissionItem[];
|
|
710
|
-
}
|
|
711
|
-
export interface STWMissionOverrideMissionRewards {
|
|
712
|
-
Endurance: STWMissionTierGroup;
|
|
713
|
-
Wargames: STWMissionTierGroup;
|
|
714
|
-
}
|
|
715
|
-
export interface STWMissionMissionDifficultyInfo {
|
|
716
|
-
dataTable: string;
|
|
717
|
-
rowName: string;
|
|
718
|
-
}
|
|
719
|
-
export interface STWMissionAvailableMission {
|
|
720
|
-
missionGuid: string;
|
|
721
|
-
missionRewards: STWMissionTierGroup;
|
|
722
|
-
overrideMissionRewards: STWMissionOverrideMissionRewards;
|
|
723
|
-
missionGenerator: string;
|
|
724
|
-
missionDifficultyInfo: STWMissionMissionDifficultyInfo;
|
|
725
|
-
tileIndex: number;
|
|
726
|
-
availableUntil: Date;
|
|
727
|
-
bonusMissionRewards: STWMissionTierGroup;
|
|
728
|
-
}
|
|
729
|
-
export interface STWMissionData {
|
|
730
|
-
theaterId: string;
|
|
731
|
-
availableMissions: STWMissionAvailableMission[];
|
|
732
|
-
nextRefresh: string;
|
|
733
|
-
}
|
|
734
|
-
export interface STWMissionAlertAlteration {
|
|
735
|
-
LootTierGroup: string;
|
|
736
|
-
Tier: number;
|
|
737
|
-
}
|
|
738
|
-
export interface STWMissionAlertAttributes {
|
|
739
|
-
Alteration: STWMissionAlertAlteration;
|
|
740
|
-
}
|
|
741
|
-
export interface STWMissionAlertItemWithAttributes {
|
|
742
|
-
itemType: string;
|
|
743
|
-
quantity: number;
|
|
744
|
-
attributes: STWMissionAlertAttributes;
|
|
745
|
-
}
|
|
746
|
-
export interface STWMissionAlertMissionAlertRewards {
|
|
747
|
-
tierGroupName: string;
|
|
748
|
-
items: STWMissionAlertItemWithAttributes[];
|
|
749
|
-
}
|
|
750
|
-
export interface STWMissionAlertItem {
|
|
751
|
-
itemType: string;
|
|
752
|
-
quantity: number;
|
|
753
|
-
}
|
|
754
|
-
export interface STWMissionAlertMissionAlertModifiers {
|
|
755
|
-
tierGroupName: string;
|
|
756
|
-
items: STWMissionAlertItem[];
|
|
757
|
-
}
|
|
758
|
-
export interface STWMissionAlertAvailableMissionAlert {
|
|
759
|
-
name: string;
|
|
760
|
-
categoryName: string;
|
|
761
|
-
spreadDataName: string;
|
|
762
|
-
missionAlertGuid: string;
|
|
763
|
-
tileIndex: number;
|
|
764
|
-
availableUntil: Date;
|
|
765
|
-
totalSpreadRefreshes: number;
|
|
766
|
-
missionAlertRewards: STWMissionAlertMissionAlertRewards;
|
|
767
|
-
missionAlertModifiers: STWMissionAlertMissionAlertModifiers;
|
|
768
|
-
}
|
|
769
|
-
export interface STWMissionAlertData {
|
|
770
|
-
theaterId: string;
|
|
771
|
-
availableMissionAlerts: STWMissionAlertAvailableMissionAlert[];
|
|
772
|
-
nextRefresh: Date;
|
|
773
|
-
}
|
|
@@ -18,14 +18,12 @@ import type PartyMemberConfirmation from '../src/structures/party/PartyMemberCon
|
|
|
18
18
|
import type PartyMessage from '../src/structures/party/PartyMessage';
|
|
19
19
|
import type ReceivedPartyInvitation from '../src/structures/party/ReceivedPartyInvitation';
|
|
20
20
|
import type User from '../src/structures/user/User';
|
|
21
|
-
import type { EpicgamesOAuthData,
|
|
21
|
+
import type { EpicgamesOAuthData, TournamentWindowTemplateData } from './httpResponses';
|
|
22
22
|
import type ReceivedFriendMessage from '../src/structures/friend/ReceivedFriendMessage';
|
|
23
|
-
import type STWSurvivor from '../src/structures/stw/STWSurvivor';
|
|
24
23
|
import type { AuthSessionStoreKey } from './enums';
|
|
25
24
|
import type FortniteAuthSession from '../src/auth/FortniteAuthSession';
|
|
26
25
|
import type LauncherAuthSession from '../src/auth/LauncherAuthSession';
|
|
27
26
|
import type FortniteClientCredentialsAuthSession from '../src/auth/FortniteClientCredentialsAuthSession';
|
|
28
|
-
import type EOSAuthSession from '../src/auth/EOSAuthSession';
|
|
29
27
|
export type PartyMemberSchema = Partial<typeof defaultPartyMemberMeta>;
|
|
30
28
|
export type PartySchema = Partial<typeof defaultPartyMeta> & {
|
|
31
29
|
'urn:epic:cfg:presence-perm_s'?: string;
|
|
@@ -206,10 +204,6 @@ export interface ClientConfig {
|
|
|
206
204
|
* Debug function used for incoming and outgoing xmpp xml payloads
|
|
207
205
|
*/
|
|
208
206
|
xmppDebug?: (message: string) => void;
|
|
209
|
-
/**
|
|
210
|
-
* Debug function used for incoming and outgoing stomp eos connect messages
|
|
211
|
-
*/
|
|
212
|
-
stompEosConnectDebug?: (message: string) => void;
|
|
213
207
|
/**
|
|
214
208
|
* Default friend presence of the bot (eg. "Playing Battle Royale")
|
|
215
209
|
*/
|
|
@@ -265,12 +259,6 @@ export interface ClientConfig {
|
|
|
265
259
|
* Do not disable this unless you know what you're doing
|
|
266
260
|
*/
|
|
267
261
|
connectToXMPP: boolean;
|
|
268
|
-
/**
|
|
269
|
-
* Whether the client should connect to eos connect stomp
|
|
270
|
-
* NOTE: If you disable this, receiving party or private messages will no longer work.
|
|
271
|
-
* Do not disable this unless you know what you're doing
|
|
272
|
-
*/
|
|
273
|
-
connectToStompEOSConnect: boolean;
|
|
274
262
|
/**
|
|
275
263
|
* Whether the client should fetch all friends on startup.
|
|
276
264
|
* NOTE: If you disable this, almost all features related to friend caching will no longer work.
|
|
@@ -1043,123 +1031,6 @@ export interface TournamentSessionMetadata {
|
|
|
1043
1031
|
isCompressed: boolean;
|
|
1044
1032
|
isLive: boolean;
|
|
1045
1033
|
}
|
|
1046
|
-
export interface STWFORTStats {
|
|
1047
|
-
fortitude: number;
|
|
1048
|
-
resistance: number;
|
|
1049
|
-
offense: number;
|
|
1050
|
-
tech: number;
|
|
1051
|
-
}
|
|
1052
|
-
export type STWSurvivorType = 'special' | 'manager' | 'basic';
|
|
1053
|
-
export type STWItemRarity = 'c' | 'uc' | 'r' | 'vr' | 'sr' | 'ur';
|
|
1054
|
-
export type STWItemTier = 1 | 2 | 3 | 4 | 5 | 6;
|
|
1055
|
-
export type STWSurvivorGender = 'male' | 'female';
|
|
1056
|
-
export interface STWSurvivorSquads {
|
|
1057
|
-
trainingteam: STWSurvivor[];
|
|
1058
|
-
fireteamalpha: STWSurvivor[];
|
|
1059
|
-
closeassaultsquad: STWSurvivor[];
|
|
1060
|
-
thethinktank: STWSurvivor[];
|
|
1061
|
-
emtsquad: STWSurvivor[];
|
|
1062
|
-
corpsofengineering: STWSurvivor[];
|
|
1063
|
-
scoutingparty: STWSurvivor[];
|
|
1064
|
-
gadgeteers: STWSurvivor[];
|
|
1065
|
-
}
|
|
1066
|
-
export type STWSurvivorSquadType = 'medicine' | 'arms' | 'synthesis' | 'scavenging';
|
|
1067
|
-
export interface STWSurvivorSquadData {
|
|
1068
|
-
id: string;
|
|
1069
|
-
name: keyof STWSurvivorSquads;
|
|
1070
|
-
type: STWSurvivorSquadType;
|
|
1071
|
-
slotIdx: number;
|
|
1072
|
-
}
|
|
1073
|
-
export interface STWStatsNodeCostsData {
|
|
1074
|
-
[key: string]: {
|
|
1075
|
-
[key: string]: number;
|
|
1076
|
-
};
|
|
1077
|
-
}
|
|
1078
|
-
export interface STWStatsSTWLoadoutData {
|
|
1079
|
-
selectedHeroLoadout: string;
|
|
1080
|
-
modeLoadouts: string[];
|
|
1081
|
-
activeLoadoutIndex: number;
|
|
1082
|
-
}
|
|
1083
|
-
export interface STWStatsBRLoadoutData {
|
|
1084
|
-
loadouts: string[];
|
|
1085
|
-
lastAppliedLoadout: string;
|
|
1086
|
-
useRandomLoadout: boolean;
|
|
1087
|
-
}
|
|
1088
|
-
export interface STWStatsMissionAlertRedemptionData {
|
|
1089
|
-
missionAlertId: string;
|
|
1090
|
-
redemptionDateUtc: Date;
|
|
1091
|
-
evictClaimDataAfterUtc: Date;
|
|
1092
|
-
}
|
|
1093
|
-
export interface STWStatsQuestData {
|
|
1094
|
-
dailyLoginInterval: Date;
|
|
1095
|
-
dailyQuestRerolls?: number;
|
|
1096
|
-
poolStats: {
|
|
1097
|
-
stats: {
|
|
1098
|
-
poolName: string;
|
|
1099
|
-
nextRefresh: Date;
|
|
1100
|
-
rerollsRemaining: number;
|
|
1101
|
-
questHistory: string[];
|
|
1102
|
-
}[];
|
|
1103
|
-
dailyLoginInterval: Date;
|
|
1104
|
-
lockouts: {
|
|
1105
|
-
lockoutName: string;
|
|
1106
|
-
}[];
|
|
1107
|
-
};
|
|
1108
|
-
}
|
|
1109
|
-
export interface STWStatsGameplayStatData {
|
|
1110
|
-
statName: string;
|
|
1111
|
-
statValue: number;
|
|
1112
|
-
}
|
|
1113
|
-
export interface STWStatsClientSettingsData {
|
|
1114
|
-
pinnedQuestInstances?: any[];
|
|
1115
|
-
}
|
|
1116
|
-
export interface STWStatsResearchLevelsData {
|
|
1117
|
-
technology: number;
|
|
1118
|
-
offense: number;
|
|
1119
|
-
fortitude: number;
|
|
1120
|
-
resistance: number;
|
|
1121
|
-
}
|
|
1122
|
-
export interface STWStatsEventCurrencyData {
|
|
1123
|
-
templateId: string;
|
|
1124
|
-
cf: number;
|
|
1125
|
-
}
|
|
1126
|
-
export interface STWStatsXPData {
|
|
1127
|
-
total: number;
|
|
1128
|
-
overflow: number;
|
|
1129
|
-
lost: number;
|
|
1130
|
-
}
|
|
1131
|
-
export interface STWStatsDailyRewardsData {
|
|
1132
|
-
nextDefaultReward: number;
|
|
1133
|
-
totalDaysLoggedIn: number;
|
|
1134
|
-
lastClaimDate: Date;
|
|
1135
|
-
additionalSchedules?: {
|
|
1136
|
-
[key: string]: {
|
|
1137
|
-
rewardsClaimed: number;
|
|
1138
|
-
claimedToday: boolean;
|
|
1139
|
-
};
|
|
1140
|
-
};
|
|
1141
|
-
}
|
|
1142
|
-
export interface STWLockerSlotsData {
|
|
1143
|
-
Pickaxe: STWProfileLockerSlotData;
|
|
1144
|
-
MusicPack?: STWProfileLockerSlotData;
|
|
1145
|
-
Character?: STWProfileLockerSlotData;
|
|
1146
|
-
ItemWrap: STWProfileLockerSlotData;
|
|
1147
|
-
Backpack: STWProfileLockerSlotData;
|
|
1148
|
-
Dance: STWProfileLockerSlotData;
|
|
1149
|
-
LoadingScreen: STWProfileLockerSlotData;
|
|
1150
|
-
}
|
|
1151
|
-
export interface STWLockerBannerData {
|
|
1152
|
-
icon: string;
|
|
1153
|
-
color: string;
|
|
1154
|
-
}
|
|
1155
|
-
export type STWHeroType = 'commando' | 'constructor' | 'outlander' | 'ninja';
|
|
1156
|
-
export type STWSchematicType = 'ranged' | 'melee' | 'trap' | 'other';
|
|
1157
|
-
export type STWSchematicRangedSubType = 'assault' | 'launcher' | 'pistol' | 'shotgun' | 'smg' | 'sniper';
|
|
1158
|
-
export type STWSchematicMeleeSubType = 'blunt' | 'blunt_hammer' | 'edged_axe' | 'edged_scythe' | 'edged_sword' | 'piercing_spear';
|
|
1159
|
-
export type STWSchematicTrapSubType = 'ceiling' | 'floor' | 'wall';
|
|
1160
|
-
export type STWSchematicSubType = STWSchematicRangedSubType | STWSchematicMeleeSubType | STWSchematicTrapSubType;
|
|
1161
|
-
export type STWSchematicAlterationRarity = 'common' | 'uncommon' | 'rare' | 'epic' | 'legendary';
|
|
1162
|
-
export type STWSchematicEvoType = 'ore' | 'crystal';
|
|
1163
1034
|
export interface StatsLevelData {
|
|
1164
1035
|
[key: string]: {
|
|
1165
1036
|
level: number;
|
|
@@ -1190,11 +1061,6 @@ export interface ImageData {
|
|
|
1190
1061
|
width?: number;
|
|
1191
1062
|
height?: number;
|
|
1192
1063
|
}
|
|
1193
|
-
export interface STWWorldInfoData {
|
|
1194
|
-
theaters: STWTheaterData[];
|
|
1195
|
-
missions: STWMissionData[];
|
|
1196
|
-
missionAlerts: STWMissionAlertData[];
|
|
1197
|
-
}
|
|
1198
1064
|
export interface AuthData {
|
|
1199
1065
|
access_token: string;
|
|
1200
1066
|
account_id: string;
|
|
@@ -1250,7 +1116,6 @@ export interface EOSAuthData extends AuthData {
|
|
|
1250
1116
|
export interface AuthSessionStore<K, V> extends Collection<K, V> {
|
|
1251
1117
|
get(key: AuthSessionStoreKey.Fortnite): FortniteAuthSession | undefined;
|
|
1252
1118
|
get(key: AuthSessionStoreKey.Launcher): LauncherAuthSession | undefined;
|
|
1253
|
-
get(key: AuthSessionStoreKey.FortniteEOS): EOSAuthSession | undefined;
|
|
1254
1119
|
get(key: AuthSessionStoreKey.FortniteClientCredentials): FortniteClientCredentialsAuthSession | undefined;
|
|
1255
1120
|
get(key: K): V | undefined;
|
|
1256
1121
|
}
|
package/dist/src/Client.d.ts
CHANGED
|
@@ -15,8 +15,6 @@ import EpicgamesServerStatus from './structures/EpicgamesServerStatus';
|
|
|
15
15
|
import TournamentManager from './managers/TournamentManager';
|
|
16
16
|
import UserManager from './managers/UserManager';
|
|
17
17
|
import FriendManager from './managers/FriendManager';
|
|
18
|
-
import STWManager from './managers/STWManager';
|
|
19
|
-
import EOSConnect from './stomp/EOSConnect';
|
|
20
18
|
import ChatManager from './managers/ChatManager';
|
|
21
19
|
import type { CreativeIslandData, CreativeDiscoveryPanel } from '../resources/httpResponses';
|
|
22
20
|
import type { ClientOptions, ClientConfig, ClientEvents, PartyConfig, Schema, Region, BlurlStream, Language, PartyData, PresenceOnlineType, BRAccountLevelData } from '../resources/structs';
|
|
@@ -64,10 +62,6 @@ declare class Client extends EventEmitter {
|
|
|
64
62
|
* XMPP manager
|
|
65
63
|
*/
|
|
66
64
|
xmpp: XMPP;
|
|
67
|
-
/**
|
|
68
|
-
* EOS Connect STOMP manager
|
|
69
|
-
*/
|
|
70
|
-
stompEOSConnect: EOSConnect;
|
|
71
65
|
/**
|
|
72
66
|
* Friend manager
|
|
73
67
|
*/
|
|
@@ -84,10 +78,6 @@ declare class Client extends EventEmitter {
|
|
|
84
78
|
* The last saved client party member meta
|
|
85
79
|
*/
|
|
86
80
|
lastPartyMemberMeta?: Schema;
|
|
87
|
-
/**
|
|
88
|
-
* Fortnite: Save The World manager
|
|
89
|
-
*/
|
|
90
|
-
stw: STWManager;
|
|
91
81
|
/**
|
|
92
82
|
* EOS: Chat Manager
|
|
93
83
|
*/
|