ps99-api 1.1.0 → 2.0.0
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/.github/actions/test/action.yml +3 -3
- package/.github/workflows/release-on-main.yml +0 -1
- package/.github/workflows/test-on-branch.yml +1 -1
- package/.idea/runConfigurations/test.xml +11 -0
- package/.idea/runConfigurations/test_changing.xml +11 -0
- package/.idea/runConfigurations/test_snapshot.xml +11 -0
- package/.idea/runConfigurations/test_snapshot_changing.xml +12 -0
- package/.idea/webResources.xml +14 -0
- package/.releaserc +13 -0
- package/README.md +5 -6
- package/dist/index.d.ts +33 -1
- package/dist/index.js +33 -1
- package/dist/index.js.map +1 -1
- package/dist/ps99-api.d.ts +18 -8
- package/dist/ps99-api.js +7 -4
- package/dist/ps99-api.js.map +1 -1
- package/dist/responses/clan.d.ts +1 -0
- package/dist/responses/collection/achievement.d.ts +32 -0
- package/dist/responses/{collections.js → collection/achievement.js} +1 -1
- package/dist/responses/collection/achievement.js.map +1 -0
- package/dist/responses/collection/boost.d.ts +7 -0
- package/dist/responses/{collection.js → collection/boost.js} +1 -1
- package/dist/responses/collection/boost.js.map +1 -0
- package/dist/responses/collection/booth.d.ts +29 -0
- package/dist/responses/collection/booth.js +3 -0
- package/dist/responses/collection/booth.js.map +1 -0
- package/dist/responses/collection/box.d.ts +26 -0
- package/dist/responses/collection/box.js +3 -0
- package/dist/responses/collection/box.js.map +1 -0
- package/dist/responses/collection/buff.d.ts +9 -0
- package/dist/responses/collection/buff.js +3 -0
- package/dist/responses/collection/buff.js.map +1 -0
- package/dist/responses/collection/charm.d.ts +28 -0
- package/dist/responses/collection/charm.js +3 -0
- package/dist/responses/collection/charm.js.map +1 -0
- package/dist/responses/collection/collection-data.d.ts +9 -0
- package/dist/responses/collection/collection-data.js +3 -0
- package/dist/responses/collection/collection-data.js.map +1 -0
- package/dist/responses/collection/currency.d.ts +44 -0
- package/dist/responses/collection/currency.js +3 -0
- package/dist/responses/collection/currency.js.map +1 -0
- package/dist/responses/collection/egg.d.ts +43 -0
- package/dist/responses/collection/egg.js +3 -0
- package/dist/responses/collection/egg.js.map +1 -0
- package/dist/responses/collection/enchantment.d.ts +31 -0
- package/dist/responses/collection/enchantment.js +3 -0
- package/dist/responses/collection/enchantment.js.map +1 -0
- package/dist/responses/collection/fishing-rod.d.ts +16 -0
- package/dist/responses/collection/fishing-rod.js +3 -0
- package/dist/responses/collection/fishing-rod.js.map +1 -0
- package/dist/responses/collection/fruit.d.ts +27 -0
- package/dist/responses/collection/fruit.js +3 -0
- package/dist/responses/collection/fruit.js.map +1 -0
- package/dist/responses/collection/guild-battle.d.ts +34 -0
- package/dist/responses/collection/guild-battle.js +3 -0
- package/dist/responses/collection/guild-battle.js.map +1 -0
- package/dist/responses/collection/hoverboard.d.ts +40 -0
- package/dist/responses/collection/hoverboard.js +3 -0
- package/dist/responses/collection/hoverboard.js.map +1 -0
- package/dist/responses/collection/index.d.ts +39 -0
- package/dist/responses/collection/index.js +3 -0
- package/dist/responses/collection/index.js.map +1 -0
- package/dist/responses/collection/lootbox.d.ts +20 -0
- package/dist/responses/collection/lootbox.js +3 -0
- package/dist/responses/collection/lootbox.js.map +1 -0
- package/dist/responses/collection/mastery.d.ts +113 -0
- package/dist/responses/collection/mastery.js +3 -0
- package/dist/responses/collection/mastery.js.map +1 -0
- package/dist/responses/collection/merchant.d.ts +14 -0
- package/dist/responses/collection/merchant.js +3 -0
- package/dist/responses/collection/merchant.js.map +1 -0
- package/dist/responses/collection/misc-item.d.ts +23 -0
- package/dist/responses/collection/misc-item.js +3 -0
- package/dist/responses/collection/misc-item.js.map +1 -0
- package/dist/responses/collection/pet.d.ts +105 -0
- package/dist/responses/collection/pet.js +3 -0
- package/dist/responses/collection/pet.js.map +1 -0
- package/dist/responses/collection/potion.d.ts +29 -0
- package/dist/responses/collection/potion.js +3 -0
- package/dist/responses/collection/potion.js.map +1 -0
- package/dist/responses/collection/random-event.d.ts +21 -0
- package/dist/responses/collection/random-event.js +3 -0
- package/dist/responses/collection/random-event.js.map +1 -0
- package/dist/responses/collection/rank.d.ts +36 -0
- package/dist/responses/collection/rank.js +3 -0
- package/dist/responses/collection/rank.js.map +1 -0
- package/dist/responses/collection/rarity.d.ts +12 -0
- package/dist/responses/collection/rarity.js +3 -0
- package/dist/responses/collection/rarity.js.map +1 -0
- package/dist/responses/collection/rebirth.d.ts +19 -0
- package/dist/responses/collection/rebirth.js +3 -0
- package/dist/responses/collection/rebirth.js.map +1 -0
- package/dist/responses/collection/secret-room.d.ts +9 -0
- package/dist/responses/collection/secret-room.js +3 -0
- package/dist/responses/collection/secret-room.js.map +1 -0
- package/dist/responses/collection/seed.d.ts +47 -0
- package/dist/responses/collection/seed.js +3 -0
- package/dist/responses/collection/seed.js.map +1 -0
- package/dist/responses/collection/shovel.d.ts +10 -0
- package/dist/responses/collection/shovel.js +3 -0
- package/dist/responses/collection/shovel.js.map +1 -0
- package/dist/responses/collection/sprinkler.d.ts +23 -0
- package/dist/responses/collection/sprinkler.js +3 -0
- package/dist/responses/collection/sprinkler.js.map +1 -0
- package/dist/responses/collection/ultimate.d.ts +28 -0
- package/dist/responses/collection/ultimate.js +3 -0
- package/dist/responses/collection/ultimate.js.map +1 -0
- package/dist/responses/collection/upgrade.d.ts +51 -0
- package/dist/responses/collection/upgrade.js +3 -0
- package/dist/responses/collection/upgrade.js.map +1 -0
- package/dist/responses/collection/watering-can.d.ts +10 -0
- package/dist/responses/collection/watering-can.js +3 -0
- package/dist/responses/collection/watering-can.js.map +1 -0
- package/dist/responses/collection/world.d.ts +12 -0
- package/dist/responses/collection/world.js +3 -0
- package/dist/responses/collection/world.js.map +1 -0
- package/dist/responses/collection/zone-flag.d.ts +23 -0
- package/dist/responses/collection/zone-flag.js +3 -0
- package/dist/responses/collection/zone-flag.js.map +1 -0
- package/dist/responses/collection/zone.d.ts +104 -0
- package/dist/responses/collection/zone.js +3 -0
- package/dist/responses/collection/zone.js.map +1 -0
- package/dump-result.js +16 -4
- package/example-web/react/package-lock.json +4900 -0
- package/example-web/react/package.json +28 -0
- package/example-web/react/public/index.html +12 -0
- package/example-web/react/src/App.css +95 -0
- package/example-web/react/src/App.tsx +32 -0
- package/example-web/react/src/ClanDetails.css +39 -0
- package/example-web/react/src/ClanDetails.tsx +119 -0
- package/example-web/react/src/Image.tsx +46 -0
- package/example-web/react/src/index.tsx +5 -0
- package/example-web/react/tsconfig.json +16 -0
- package/example-web/react/webpack.config.js +36 -0
- package/example-web/react2/package-lock.json +5248 -0
- package/example-web/react2/package.json +30 -0
- package/example-web/react2/public/_redirects +1 -0
- package/example-web/react2/public/icons/icon-192x192.png +0 -0
- package/example-web/react2/public/icons/icon-512x512.png +0 -0
- package/example-web/react2/public/index.html +31 -0
- package/example-web/react2/public/manifest.json +20 -0
- package/example-web/react2/public/service-worker.js +63 -0
- package/example-web/react2/src/App.tsx +33 -0
- package/example-web/react2/src/components/AchievementsComponent.tsx +41 -0
- package/example-web/react2/src/components/BoostsComponent.tsx +24 -0
- package/example-web/react2/src/components/BoothsComponent.tsx +32 -0
- package/example-web/react2/src/components/BoxesComponent.tsx +35 -0
- package/example-web/react2/src/components/BuffsComponent.tsx +25 -0
- package/example-web/react2/src/components/CharmsComponent.tsx +41 -0
- package/example-web/react2/src/components/CollectionConfigIndex.tsx +53 -0
- package/example-web/react2/src/components/CollectionsIndex.tsx +33 -0
- package/example-web/react2/src/components/CurrencyComponent.tsx +65 -0
- package/example-web/react2/src/components/DynamicCollectionConfigData.tsx +94 -0
- package/example-web/react2/src/components/EggsComponent.tsx +62 -0
- package/example-web/react2/src/components/EnchantsComponent.tsx +46 -0
- package/example-web/react2/src/components/ErrorComponent.tsx +16 -0
- package/example-web/react2/src/components/FishingRodsComponent.tsx +42 -0
- package/example-web/react2/src/components/FruitsComponent.tsx +36 -0
- package/example-web/react2/src/components/GenericFetchComponent.tsx +53 -0
- package/example-web/react2/src/components/GuildBattlesComponent.tsx +76 -0
- package/example-web/react2/src/components/Header.tsx +27 -0
- package/example-web/react2/src/components/HomePage.tsx +14 -0
- package/example-web/react2/src/components/HoverboardsComponent.tsx +47 -0
- package/example-web/react2/src/components/ImageComponent.tsx +64 -0
- package/example-web/react2/src/components/LootboxesComponent.tsx +26 -0
- package/example-web/react2/src/components/MasteryComponent.tsx +56 -0
- package/example-web/react2/src/components/MerchantsComponent.tsx +45 -0
- package/example-web/react2/src/components/MiscItemsComponent.tsx +37 -0
- package/example-web/react2/src/components/PetsComponent.tsx +62 -0
- package/example-web/react2/src/components/PotionsComponent.tsx +49 -0
- package/example-web/react2/src/components/RandomEventsComponent.tsx +46 -0
- package/example-web/react2/src/components/RanksComponent.tsx +87 -0
- package/example-web/react2/src/components/RarityComponent.tsx +24 -0
- package/example-web/react2/src/components/RebirthsComponent.tsx +37 -0
- package/example-web/react2/src/components/SecretRoomsComponent.tsx +23 -0
- package/example-web/react2/src/components/SeedsComponent.tsx +74 -0
- package/example-web/react2/src/components/ShovelsComponent.tsx +28 -0
- package/example-web/react2/src/components/SprinklersComponent.tsx +29 -0
- package/example-web/react2/src/components/UltimatesComponent.tsx +35 -0
- package/example-web/react2/src/components/UpgradesComponent.tsx +74 -0
- package/example-web/react2/src/components/WateringCansComponent.tsx +31 -0
- package/example-web/react2/src/components/WorldsComponent.tsx +36 -0
- package/example-web/react2/src/components/ZoneFlagsComponent.tsx +33 -0
- package/example-web/react2/src/components/ZonesComponent.tsx +89 -0
- package/example-web/react2/src/index.tsx +7 -0
- package/example-web/react2/tsconfig.json +16 -0
- package/example-web/react2/webpack.config.js +38 -0
- package/jest.config.js +2 -2
- package/package.json +16 -9
- package/src/__tests__/__snapshots__/ps99-api-changes.ts.snap +92438 -0
- package/src/__tests__/__snapshots__/ps99-api-live.ts.snap +1313 -86
- package/src/__tests__/ps99-api-changes.ts +9 -11
- package/src/__tests__/ps99-api-live.ts +35 -36
- package/src/__tests__/ps99-api.ts +2 -2
- package/src/index.ts +33 -1
- package/src/ps99-api.ts +21 -12
- package/src/responses/activeClanBattle.ts +30 -30
- package/src/responses/clan.ts +70 -70
- package/src/responses/clans.ts +9 -9
- package/src/responses/collection/achievement.ts +42 -0
- package/src/responses/collection/boost.ts +14 -0
- package/src/responses/collection/booth.ts +31 -0
- package/src/responses/collection/box.ts +28 -0
- package/src/responses/collection/buff.ts +11 -0
- package/src/responses/collection/charm.ts +32 -0
- package/src/responses/collection/collection-data.ts +14 -0
- package/src/responses/collection/currency.ts +54 -0
- package/src/responses/collection/egg.ts +47 -0
- package/src/responses/collection/enchantment.ts +35 -0
- package/src/responses/collection/fishing-rod.ts +21 -0
- package/src/responses/collection/fruit.ts +31 -0
- package/src/responses/collection/guild-battle.ts +45 -0
- package/src/responses/collection/hoverboard.ts +46 -0
- package/src/responses/collection/index.ts +78 -0
- package/src/responses/collection/lootbox.ts +23 -0
- package/src/responses/collection/mastery.ts +119 -0
- package/src/responses/collection/merchant.ts +16 -0
- package/src/responses/collection/misc-item.ts +26 -0
- package/src/responses/collection/pet.ts +115 -0
- package/src/responses/collection/potion.ts +33 -0
- package/src/responses/collection/random-event.ts +27 -0
- package/src/responses/collection/rank.ts +42 -0
- package/src/responses/collection/rarity.ts +14 -0
- package/src/responses/collection/rebirth.ts +22 -0
- package/src/responses/collection/secret-room.ts +14 -0
- package/src/responses/collection/seed.ts +55 -0
- package/src/responses/collection/shovel.ts +12 -0
- package/src/responses/collection/sprinkler.ts +26 -0
- package/src/responses/collection/ultimate.ts +31 -0
- package/src/responses/collection/upgrade.ts +58 -0
- package/src/responses/collection/watering-can.ts +15 -0
- package/src/responses/collection/world.ts +14 -0
- package/src/responses/collection/zone-flag.ts +26 -0
- package/src/responses/collection/zone.ts +115 -0
- package/src/responses/exists.ts +8 -8
- package/src/responses/rap.ts +9 -9
- package/tsconfig.json +2 -2
- package/.release.rc +0 -8
- package/dist/responses/collection.d.ts +0 -1357
- package/dist/responses/collection.js.map +0 -1
- package/dist/responses/collections.d.ts +0 -5
- package/dist/responses/collections.js.map +0 -1
- package/src/responses/collection.ts +0 -1543
- package/src/responses/collections.ts +0 -3
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type EggData = CollectionData<"Eggs", EggConfigData>;
|
|
3
|
+
export type EggConfigData = {
|
|
4
|
+
disableGold?: boolean;
|
|
5
|
+
rarity?: EggRarity;
|
|
6
|
+
rainbowChance?: number;
|
|
7
|
+
shinyChance?: number;
|
|
8
|
+
disableRainbow?: boolean;
|
|
9
|
+
name: string;
|
|
10
|
+
egg: unknown;
|
|
11
|
+
pets: any[][];
|
|
12
|
+
goldChance?: number;
|
|
13
|
+
icon: string;
|
|
14
|
+
disableModifiers?: boolean;
|
|
15
|
+
productIds?: EggProductIds;
|
|
16
|
+
goldenEgg: unknown;
|
|
17
|
+
eggNumber?: number;
|
|
18
|
+
currency?: string;
|
|
19
|
+
worldNumber?: number;
|
|
20
|
+
giftCallback: unknown;
|
|
21
|
+
overrideCost?: number;
|
|
22
|
+
isCustomEgg?: boolean;
|
|
23
|
+
bestEgg?: boolean;
|
|
24
|
+
disableShiny?: boolean;
|
|
25
|
+
};
|
|
26
|
+
export type EggRarity = {
|
|
27
|
+
RarityNumber: number;
|
|
28
|
+
Lootbag: unknown;
|
|
29
|
+
_id: string;
|
|
30
|
+
Color: unknown;
|
|
31
|
+
DisplayName: string;
|
|
32
|
+
Message: unknown;
|
|
33
|
+
ItemSlot: unknown;
|
|
34
|
+
Gradient: unknown;
|
|
35
|
+
Announce: boolean;
|
|
36
|
+
_script: unknown;
|
|
37
|
+
};
|
|
38
|
+
export type EggProductIds = {
|
|
39
|
+
"Exclusive Egg": number;
|
|
40
|
+
"3 Exclusive Eggs": number;
|
|
41
|
+
"100 Exclusive Eggs": number;
|
|
42
|
+
"10 Exclusive Eggs": number;
|
|
43
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"egg.js","sourceRoot":"","sources":["../../../src/responses/collection/egg.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type EnchantmentData = CollectionData<"Enchants", EnchantmentConfigData>;
|
|
3
|
+
export type EnchantmentConfigData = {
|
|
4
|
+
PageIcon?: string;
|
|
5
|
+
DiminishPowerThreshold?: number;
|
|
6
|
+
Tiers: EnchantmentTier[];
|
|
7
|
+
BaseTier: number;
|
|
8
|
+
MaxTier: number;
|
|
9
|
+
MaxPage: number;
|
|
10
|
+
EmpoweredBoost?: number;
|
|
11
|
+
ProductId?: number;
|
|
12
|
+
};
|
|
13
|
+
export type EnchantmentTier = {
|
|
14
|
+
Rarity: EnchantmentRarity;
|
|
15
|
+
Power: number;
|
|
16
|
+
Desc: string;
|
|
17
|
+
Icon: string;
|
|
18
|
+
DisplayName: string;
|
|
19
|
+
};
|
|
20
|
+
export type EnchantmentRarity = {
|
|
21
|
+
RarityNumber: number;
|
|
22
|
+
Lootbag: unknown;
|
|
23
|
+
_id: string;
|
|
24
|
+
Color: unknown;
|
|
25
|
+
DisplayName: string;
|
|
26
|
+
Message: unknown;
|
|
27
|
+
ItemSlot: unknown;
|
|
28
|
+
Gradient: unknown;
|
|
29
|
+
Announce: boolean;
|
|
30
|
+
_script: unknown;
|
|
31
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enchantment.js","sourceRoot":"","sources":["../../../src/responses/collection/enchantment.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type FishingRodData = CollectionData<"FishingRods", FishingRodConfigData>;
|
|
3
|
+
export type FishingRodConfigData = {
|
|
4
|
+
FishingChance: number;
|
|
5
|
+
FishingOdds: [string, number][];
|
|
6
|
+
FishingCurrencyMultiplier: number;
|
|
7
|
+
DisplayName: string;
|
|
8
|
+
LineColor: unknown;
|
|
9
|
+
AssociatedItemID: string;
|
|
10
|
+
Model: unknown;
|
|
11
|
+
MinFishingTime: number;
|
|
12
|
+
FishingGameSpeedMultiplier: number;
|
|
13
|
+
Icon: string;
|
|
14
|
+
BarSize: number;
|
|
15
|
+
MerchantSalePrice?: number;
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fishing-rod.js","sourceRoot":"","sources":["../../../src/responses/collection/fishing-rod.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type FruitData = CollectionData<"Fruits", FruitConfigData>;
|
|
3
|
+
export type FruitConfigData = {
|
|
4
|
+
Rarity: FruitRarity;
|
|
5
|
+
Duration: number;
|
|
6
|
+
DisplayName: string;
|
|
7
|
+
IgnoreFruitMachine?: boolean;
|
|
8
|
+
Desc?: string;
|
|
9
|
+
Icon: string;
|
|
10
|
+
Boost: FruitBoost[];
|
|
11
|
+
};
|
|
12
|
+
export type FruitBoost = {
|
|
13
|
+
Amount: number;
|
|
14
|
+
Type: string;
|
|
15
|
+
};
|
|
16
|
+
export type FruitRarity = {
|
|
17
|
+
RarityNumber: number;
|
|
18
|
+
Lootbag: unknown;
|
|
19
|
+
_id: string;
|
|
20
|
+
Color: unknown;
|
|
21
|
+
DisplayName: string;
|
|
22
|
+
Message: unknown;
|
|
23
|
+
ItemSlot: unknown;
|
|
24
|
+
Gradient: unknown;
|
|
25
|
+
Announce: boolean;
|
|
26
|
+
_script: unknown;
|
|
27
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fruit.js","sourceRoot":"","sources":["../../../src/responses/collection/fruit.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type GuildBattleData = CollectionData<"GuildBattles", GuildBattleConfigData>;
|
|
3
|
+
export type GuildBattleConfigData = {
|
|
4
|
+
PlacementRewards?: GuildBattlePlacementReward[];
|
|
5
|
+
FinishTime: number;
|
|
6
|
+
Title: string;
|
|
7
|
+
StartTime: number;
|
|
8
|
+
Rewards: GuildBattleRewards;
|
|
9
|
+
HasGoals?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export type GuildBattlePlacementReward = {
|
|
12
|
+
Item: GuildBattleItem;
|
|
13
|
+
Best: number;
|
|
14
|
+
Worst: number;
|
|
15
|
+
};
|
|
16
|
+
export type GuildBattleItem = {
|
|
17
|
+
_data: GuildBattleItemData;
|
|
18
|
+
};
|
|
19
|
+
export type GuildBattleItemData = {
|
|
20
|
+
id: string;
|
|
21
|
+
pt?: number;
|
|
22
|
+
};
|
|
23
|
+
export type GuildBattleRewards = {
|
|
24
|
+
Bronze: GuildBattleRewardItem[];
|
|
25
|
+
Gold: GuildBattleRewardItem[];
|
|
26
|
+
Good?: GuildBattleRewardItem[];
|
|
27
|
+
Silver: GuildBattleRewardItem[];
|
|
28
|
+
};
|
|
29
|
+
export type GuildBattleRewardItem = {
|
|
30
|
+
_data: GuildBattleRewardItemData;
|
|
31
|
+
};
|
|
32
|
+
export type GuildBattleRewardItemData = {
|
|
33
|
+
id: string;
|
|
34
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"guild-battle.js","sourceRoot":"","sources":["../../../src/responses/collection/guild-battle.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type HoverboardData = CollectionData<"Hoverboards", HoverboardConfigData>;
|
|
3
|
+
export type HoverboardConfigData = {
|
|
4
|
+
Rarity: HoverboardRarity;
|
|
5
|
+
Tradable?: boolean;
|
|
6
|
+
DisplayName: string;
|
|
7
|
+
Sounds: unknown;
|
|
8
|
+
ShinyParticleScale?: number;
|
|
9
|
+
Desc: string;
|
|
10
|
+
CanBeShiny?: boolean;
|
|
11
|
+
Icon: string;
|
|
12
|
+
Callback: unknown;
|
|
13
|
+
HoverHeight?: number;
|
|
14
|
+
RotationLimit?: number;
|
|
15
|
+
ProductId?: number;
|
|
16
|
+
Animation?: number;
|
|
17
|
+
BobRate?: number;
|
|
18
|
+
PitchScale?: number;
|
|
19
|
+
MaxRoll?: number;
|
|
20
|
+
DefaultJumpSpeedBoost?: number;
|
|
21
|
+
Animator: unknown;
|
|
22
|
+
Setup: unknown;
|
|
23
|
+
IdleVolumeSpeedScale?: number;
|
|
24
|
+
IdlePitchScale?: number;
|
|
25
|
+
BlockcastScale?: number;
|
|
26
|
+
SkateMode?: boolean;
|
|
27
|
+
IdleVolume?: number;
|
|
28
|
+
};
|
|
29
|
+
export type HoverboardRarity = {
|
|
30
|
+
RarityNumber: number;
|
|
31
|
+
Lootbag: unknown;
|
|
32
|
+
_id: string;
|
|
33
|
+
Color: unknown;
|
|
34
|
+
DisplayName: string;
|
|
35
|
+
Message: unknown;
|
|
36
|
+
ItemSlot: unknown;
|
|
37
|
+
Gradient: unknown;
|
|
38
|
+
Announce: boolean;
|
|
39
|
+
_script: unknown;
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hoverboard.js","sourceRoot":"","sources":["../../../src/responses/collection/hoverboard.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { AchievementData } from "./achievement";
|
|
2
|
+
import { BoostData } from "./boost";
|
|
3
|
+
import { BoothData } from "./booth";
|
|
4
|
+
import { BoxData } from "./box";
|
|
5
|
+
import { BuffData } from "./buff";
|
|
6
|
+
import { CharmData } from "./charm";
|
|
7
|
+
import { CurrencyData } from "./currency";
|
|
8
|
+
import { EggData } from "./egg";
|
|
9
|
+
import { EnchantmentData } from "./enchantment";
|
|
10
|
+
import { FishingRodData } from "./fishing-rod";
|
|
11
|
+
import { FruitData } from "./fruit";
|
|
12
|
+
import { GuildBattleData } from "./guild-battle";
|
|
13
|
+
import { HoverboardData } from "./hoverboard";
|
|
14
|
+
import { LootboxData } from "./lootbox";
|
|
15
|
+
import { MasteryData } from "./mastery";
|
|
16
|
+
import { MerchantData } from "./merchant";
|
|
17
|
+
import { MiscItemData } from "./misc-item";
|
|
18
|
+
import { PetData } from "./pet";
|
|
19
|
+
import { PotionData } from "./potion";
|
|
20
|
+
import { RandomEventData } from "./random-event";
|
|
21
|
+
import { RankData } from "./rank";
|
|
22
|
+
import { RarityData } from "./rarity";
|
|
23
|
+
import { RebirthData } from "./rebirth";
|
|
24
|
+
import { SeedData } from "./seed";
|
|
25
|
+
import { SecretRoomData } from "./secret-room";
|
|
26
|
+
import { ShovelData } from "./shovel";
|
|
27
|
+
import { SprinklerData } from "./sprinkler";
|
|
28
|
+
import { UltimateData } from "./ultimate";
|
|
29
|
+
import { UpgradeData } from "./upgrade";
|
|
30
|
+
import { WateringCanData } from "./watering-can";
|
|
31
|
+
import { WorldData } from "./world";
|
|
32
|
+
import { ZoneFlagData } from "./zone-flag";
|
|
33
|
+
import { ZoneData } from "./zone";
|
|
34
|
+
export type Collections = AchievementData | BoostData | BoothData | BoxData | BuffData | CharmData | CurrencyData | EggData | EnchantmentData | FishingRodData | FruitData | GuildBattleData | HoverboardData | LootboxData | MasteryData | MerchantData | MiscItemData | PetData | PotionData | RandomEventData | RankData | RarityData | RebirthData | SecretRoomData | SeedData | ShovelData | SprinklerData | UltimateData | UpgradeData | WateringCanData | WorldData | ZoneFlagData | ZoneData;
|
|
35
|
+
export type CollectionName = Collections["collection"];
|
|
36
|
+
export type Collection<C extends CollectionName> = Extract<Collections, {
|
|
37
|
+
collection: C;
|
|
38
|
+
}>;
|
|
39
|
+
export type CollectionConfigData<C extends CollectionName> = Collection<C>["configData"];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/responses/collection/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type LootboxData = CollectionData<"Lootboxes", LootboxConfigData>;
|
|
3
|
+
export type LootboxConfigData = {
|
|
4
|
+
Rarity: LootboxRarity;
|
|
5
|
+
DisplayName: string;
|
|
6
|
+
Icon: string;
|
|
7
|
+
Desc: string;
|
|
8
|
+
};
|
|
9
|
+
export type LootboxRarity = {
|
|
10
|
+
RarityNumber: number;
|
|
11
|
+
Lootbag: unknown;
|
|
12
|
+
_id: string;
|
|
13
|
+
Color: unknown;
|
|
14
|
+
DisplayName: string;
|
|
15
|
+
Message: unknown;
|
|
16
|
+
ItemSlot: unknown;
|
|
17
|
+
Gradient: unknown;
|
|
18
|
+
Announce: boolean;
|
|
19
|
+
_script: unknown;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lootbox.js","sourceRoot":"","sources":["../../../src/responses/collection/lootbox.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type MasteryData = CollectionData<"Mastery", MasteryConfigData>;
|
|
3
|
+
export type MasteryConfigData = {
|
|
4
|
+
Perks: MasteryPerks;
|
|
5
|
+
FFlag: string;
|
|
6
|
+
Name: string;
|
|
7
|
+
Icon: string;
|
|
8
|
+
Desc: string;
|
|
9
|
+
ToggleablePerks?: MasteryToggleablePerks;
|
|
10
|
+
};
|
|
11
|
+
export type MasteryPerks = {
|
|
12
|
+
AccidentalVending?: MasteryDetail[];
|
|
13
|
+
AutoVending?: MasteryDetail[];
|
|
14
|
+
BetterDeals?: MasteryPowerDetail[];
|
|
15
|
+
BuyFullVendingStock?: MasteryDetail[];
|
|
16
|
+
CheaperMerchants?: MasteryPowerDetail[];
|
|
17
|
+
CheaperVending?: MasteryPowerDetail[];
|
|
18
|
+
FasterMerchants?: MasteryPowerDetail[];
|
|
19
|
+
FasterVending?: MasteryPowerDetail[];
|
|
20
|
+
FreeVending?: MasteryDetail[];
|
|
21
|
+
MoreVending?: MasteryPowerDetail[];
|
|
22
|
+
BetterLoot?: MasteryPowerDetail[];
|
|
23
|
+
BreakableRespawnRate?: MasteryPowerDetail[];
|
|
24
|
+
FlagDuration?: MasteryPowerDetail[];
|
|
25
|
+
FlagSlots?: MasteryPowerDetail[];
|
|
26
|
+
GoldBreakables?: MasteryPowerDetail[];
|
|
27
|
+
MiniChestLoot?: MasteryPowerDetail[];
|
|
28
|
+
MiniChestOdds?: MasteryPowerDetail[];
|
|
29
|
+
CheaperEggs?: MasteryPowerDetail[];
|
|
30
|
+
ExtraEggs?: MasteryPowerDetail[];
|
|
31
|
+
FasterOpen?: MasteryPowerDetail[];
|
|
32
|
+
GoldenEggs?: MasteryPowerDetail[];
|
|
33
|
+
RainbowEggs?: MasteryPowerDetail[];
|
|
34
|
+
AutoClaim?: MasteryDetail[];
|
|
35
|
+
BetterCrafting?: MasteryPowerDetail[];
|
|
36
|
+
BulkCrafting?: MasteryDetail[];
|
|
37
|
+
CheaperPotions?: MasteryPowerDetail[];
|
|
38
|
+
FasterCrafting?: MasteryPowerDetail[];
|
|
39
|
+
LongerPotions?: MasteryPowerDetail[];
|
|
40
|
+
MagicPotion?: MasteryDetail[];
|
|
41
|
+
SupremePotions?: MasteryPowerDetail[];
|
|
42
|
+
TierNineCrafting?: MasteryDetail[];
|
|
43
|
+
TierNineDrinking?: MasteryDetail[];
|
|
44
|
+
TierTenCrafting?: MasteryDetail[];
|
|
45
|
+
TierTenDrinking?: MasteryDetail[];
|
|
46
|
+
CheaperEnchants?: MasteryPowerDetail[];
|
|
47
|
+
Power?: MasteryPowerDetail[];
|
|
48
|
+
SupremeEnchants?: MasteryDetail[];
|
|
49
|
+
TierEightCrafting?: MasteryDetail[];
|
|
50
|
+
TierEightEquip?: MasteryDetail[];
|
|
51
|
+
TierNineEquip?: MasteryDetail[];
|
|
52
|
+
DaycareDiamonds?: MasteryPowerDetail[];
|
|
53
|
+
DaycareSpeed?: MasteryPowerDetail[];
|
|
54
|
+
FuseAnimationSpeed?: MasteryPowerDetail[];
|
|
55
|
+
GoldAnimationSpeed?: MasteryPowerDetail[];
|
|
56
|
+
GoldHatching?: MasteryPowerDetail[];
|
|
57
|
+
GoldReduction?: MasteryPowerDetail[];
|
|
58
|
+
RainbowAnimationSpeed?: MasteryPowerDetail[];
|
|
59
|
+
RainbowHatching?: MasteryPowerDetail[];
|
|
60
|
+
RainbowReduction?: MasteryPowerDetail[];
|
|
61
|
+
ShinyGolding?: MasteryPowerDetail[];
|
|
62
|
+
ShinyRainbowing?: MasteryPowerDetail[];
|
|
63
|
+
AnimationSpeed?: MasteryPowerDetail[];
|
|
64
|
+
AutoEat?: MasteryDetail[];
|
|
65
|
+
FruitBonus?: MasteryPowerDetail[];
|
|
66
|
+
FruitQueue?: MasteryPowerDetail[];
|
|
67
|
+
LessFruitRequired?: MasteryPowerDetail[];
|
|
68
|
+
LongerFruit?: MasteryPowerDetail[];
|
|
69
|
+
BiggerBobber?: MasteryPowerDetail[];
|
|
70
|
+
DeepPoolLoot?: MasteryPowerDetail[];
|
|
71
|
+
DeepPools?: MasteryDetail[];
|
|
72
|
+
FasterCasting?: MasteryPowerDetail[];
|
|
73
|
+
FasterCatching?: MasteryPowerDetail[];
|
|
74
|
+
RainbowRods?: MasteryPowerDetail[];
|
|
75
|
+
BetterDrops?: MasteryPowerDetail[];
|
|
76
|
+
HugeOdds?: MasteryPowerDetail[];
|
|
77
|
+
MasteryChest?: MasteryDetail[];
|
|
78
|
+
MoreChests?: MasteryPowerDetail[];
|
|
79
|
+
MoreDiamonds?: MasteryPowerDetail[];
|
|
80
|
+
RainbowShovels?: MasteryPowerDetail[];
|
|
81
|
+
BetterCrystal?: MasteryPowerDetail[];
|
|
82
|
+
BetterTech?: MasteryPowerDetail[];
|
|
83
|
+
BetterVoid?: MasteryPowerDetail[];
|
|
84
|
+
CombineAll?: MasteryDetail[];
|
|
85
|
+
FreeSecretKey?: MasteryPowerDetail[];
|
|
86
|
+
FreeTechKey?: MasteryPowerDetail[];
|
|
87
|
+
RetainCrystalKey?: MasteryPowerDetail[];
|
|
88
|
+
RetainSecretKey?: MasteryPowerDetail[];
|
|
89
|
+
RetainTechKey?: MasteryPowerDetail[];
|
|
90
|
+
RetainVoidKey?: MasteryPowerDetail[];
|
|
91
|
+
AutoClaimFreeGifts?: MasteryDetail[];
|
|
92
|
+
BetterCharmStones?: MasteryPowerDetail[];
|
|
93
|
+
DoubleBundleLoot?: MasteryPowerDetail[];
|
|
94
|
+
DoubleMiniChestLoot?: MasteryPowerDetail[];
|
|
95
|
+
FreeGiftSpeed?: MasteryPowerDetail[];
|
|
96
|
+
SuperiorChestLoot?: MasteryPowerDetail[];
|
|
97
|
+
SuperiorChestOdds?: MasteryPowerDetail[];
|
|
98
|
+
};
|
|
99
|
+
export type MasteryDetail = {
|
|
100
|
+
Level: number;
|
|
101
|
+
Text: string;
|
|
102
|
+
Title: string;
|
|
103
|
+
};
|
|
104
|
+
export type MasteryPowerDetail = {
|
|
105
|
+
Level: number;
|
|
106
|
+
Power: number;
|
|
107
|
+
Text: string;
|
|
108
|
+
Title: string;
|
|
109
|
+
};
|
|
110
|
+
export type MasteryToggleablePerks = {
|
|
111
|
+
AutoClaimFreeGifts?: boolean;
|
|
112
|
+
AutoEat?: boolean;
|
|
113
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mastery.js","sourceRoot":"","sources":["../../../src/responses/collection/mastery.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type MerchantData = CollectionData<"Merchants", MerchantConfigData>;
|
|
3
|
+
export type MerchantConfigData = {
|
|
4
|
+
PriceMult: number;
|
|
5
|
+
GetOffers: unknown;
|
|
6
|
+
DisplayName: string;
|
|
7
|
+
StockRangeByRespectLevel?: number[][];
|
|
8
|
+
MachineName: string;
|
|
9
|
+
SlotRespectLevels?: number[];
|
|
10
|
+
RefreshRate: number;
|
|
11
|
+
HideNotification?: boolean;
|
|
12
|
+
HideRespect?: boolean;
|
|
13
|
+
IsStatic?: boolean;
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"merchant.js","sourceRoot":"","sources":["../../../src/responses/collection/merchant.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type MiscItemData = CollectionData<"MiscItems", MiscItemConfigData>;
|
|
3
|
+
export interface MiscItemConfigData {
|
|
4
|
+
Rarity: MiscItemRarity;
|
|
5
|
+
DisplayName: string;
|
|
6
|
+
Category: string;
|
|
7
|
+
Icon: string;
|
|
8
|
+
Desc: string;
|
|
9
|
+
Tradable?: boolean;
|
|
10
|
+
AltIcon?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface MiscItemRarity {
|
|
13
|
+
RarityNumber: number;
|
|
14
|
+
Lootbag: unknown;
|
|
15
|
+
_id: string;
|
|
16
|
+
Color: unknown;
|
|
17
|
+
DisplayName: string;
|
|
18
|
+
Message: unknown;
|
|
19
|
+
ItemSlot: unknown;
|
|
20
|
+
Gradient: unknown;
|
|
21
|
+
Announce: boolean;
|
|
22
|
+
_script: unknown;
|
|
23
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"misc-item.js","sourceRoot":"","sources":["../../../src/responses/collection/misc-item.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type PetData = CollectionData<"Pets", PetConfigData>;
|
|
3
|
+
export type PetConfigData = {
|
|
4
|
+
goldenThumbnail: string;
|
|
5
|
+
indexObtainable?: boolean;
|
|
6
|
+
huge?: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
indexDesc?: string;
|
|
9
|
+
thumbnail: string;
|
|
10
|
+
fly?: boolean;
|
|
11
|
+
animations?: PetAnimations;
|
|
12
|
+
hideSerial?: boolean;
|
|
13
|
+
tradable?: boolean;
|
|
14
|
+
hideExists?: boolean;
|
|
15
|
+
ugc?: boolean;
|
|
16
|
+
evolved?: boolean;
|
|
17
|
+
preventGolden?: boolean;
|
|
18
|
+
titanic?: boolean;
|
|
19
|
+
flyingTitanic?: boolean;
|
|
20
|
+
fromWorldNumber?: number;
|
|
21
|
+
fromZoneNumber?: number;
|
|
22
|
+
cachedPower?: number[];
|
|
23
|
+
fromEgg?: string;
|
|
24
|
+
exclusiveLevel?: number;
|
|
25
|
+
power?: number;
|
|
26
|
+
overrideZoneNumber?: number;
|
|
27
|
+
hidden?: boolean;
|
|
28
|
+
secret?: boolean;
|
|
29
|
+
balloon?: boolean;
|
|
30
|
+
flyingTitanicAlwaysFly?: boolean;
|
|
31
|
+
isFromLastZone?: boolean;
|
|
32
|
+
};
|
|
33
|
+
export type PetAnimations = {
|
|
34
|
+
angelusSpin?: boolean;
|
|
35
|
+
flyHeight?: number;
|
|
36
|
+
flyHeightChange?: number;
|
|
37
|
+
flySpeed?: number;
|
|
38
|
+
swerve?: boolean;
|
|
39
|
+
swerveMaxAngle?: number;
|
|
40
|
+
swerveAggression?: number;
|
|
41
|
+
ballBounceHeight?: number;
|
|
42
|
+
spinZ?: boolean;
|
|
43
|
+
ridingGravity?: number;
|
|
44
|
+
ridingCameraOffset: unknown;
|
|
45
|
+
balloon?: boolean;
|
|
46
|
+
particlesSketch?: PetParticlesSketch;
|
|
47
|
+
vertexColorAnim?: PetVertexColorAnim[];
|
|
48
|
+
vertexColorAnimSpeed?: number;
|
|
49
|
+
jelly?: boolean;
|
|
50
|
+
replacementPool?: number[][];
|
|
51
|
+
replacements?: PetReplacement[];
|
|
52
|
+
boneFlyingAnimation?: string;
|
|
53
|
+
fadeFrames?: PetFadeFrame[];
|
|
54
|
+
idleActionAnimations?: [string, number][];
|
|
55
|
+
customAnimations?: boolean;
|
|
56
|
+
christmasLights?: boolean;
|
|
57
|
+
hybridFly?: boolean;
|
|
58
|
+
flipbookAnimationGold?: string[];
|
|
59
|
+
flipbookAnimationSpeed?: number;
|
|
60
|
+
flipbookAnimation?: string[];
|
|
61
|
+
ridingJumpPower?: number;
|
|
62
|
+
balloonSpeed?: number;
|
|
63
|
+
balloonScale: unknown;
|
|
64
|
+
ridingTransparency?: number;
|
|
65
|
+
spin?: boolean;
|
|
66
|
+
colorVariants?: PetColorVariant[];
|
|
67
|
+
};
|
|
68
|
+
export type PetParticlesSketch = {
|
|
69
|
+
Farm: PetFarm;
|
|
70
|
+
Idle: PetIdle;
|
|
71
|
+
};
|
|
72
|
+
export type PetFarm = {
|
|
73
|
+
Left: unknown;
|
|
74
|
+
Right: unknown;
|
|
75
|
+
};
|
|
76
|
+
export type PetIdle = {
|
|
77
|
+
Left: unknown;
|
|
78
|
+
Right: unknown;
|
|
79
|
+
};
|
|
80
|
+
export type PetVertexColorAnim = {
|
|
81
|
+
Time: number;
|
|
82
|
+
Value: unknown;
|
|
83
|
+
};
|
|
84
|
+
export type PetReplacement = {
|
|
85
|
+
desc: string;
|
|
86
|
+
dst: unknown;
|
|
87
|
+
isUnique: boolean;
|
|
88
|
+
title: string;
|
|
89
|
+
};
|
|
90
|
+
export type PetFadeFrame = {
|
|
91
|
+
duration: number;
|
|
92
|
+
iconThumbnail: string;
|
|
93
|
+
instant: boolean;
|
|
94
|
+
textureName: string;
|
|
95
|
+
};
|
|
96
|
+
export type PetColorVariant = {
|
|
97
|
+
Chance: number;
|
|
98
|
+
Color: unknown;
|
|
99
|
+
Desc: string;
|
|
100
|
+
Id: number;
|
|
101
|
+
IsUnique: boolean;
|
|
102
|
+
Magnitude: number;
|
|
103
|
+
Name: string;
|
|
104
|
+
Title: string;
|
|
105
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pet.js","sourceRoot":"","sources":["../../../src/responses/collection/pet.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CollectionData } from "./collection-data";
|
|
2
|
+
export type PotionData = CollectionData<"Potions", PotionConfigData>;
|
|
3
|
+
export type PotionConfigData = {
|
|
4
|
+
Tiers: PotionTier[];
|
|
5
|
+
PrimaryColor: string;
|
|
6
|
+
MaxTier: number;
|
|
7
|
+
SecondaryColor: string;
|
|
8
|
+
BaseTier: number;
|
|
9
|
+
};
|
|
10
|
+
export type PotionTier = {
|
|
11
|
+
Rarity: PotionRarity;
|
|
12
|
+
Power: number;
|
|
13
|
+
Desc: string;
|
|
14
|
+
Time: number;
|
|
15
|
+
Icon: string;
|
|
16
|
+
DisplayName: string;
|
|
17
|
+
};
|
|
18
|
+
export type PotionRarity = {
|
|
19
|
+
RarityNumber: number;
|
|
20
|
+
Lootbag: unknown;
|
|
21
|
+
_id: string;
|
|
22
|
+
Color: unknown;
|
|
23
|
+
DisplayName: string;
|
|
24
|
+
Message: unknown;
|
|
25
|
+
ItemSlot: unknown;
|
|
26
|
+
Gradient: unknown;
|
|
27
|
+
Announce: boolean;
|
|
28
|
+
_script: unknown;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"potion.js","sourceRoot":"","sources":["../../../src/responses/collection/potion.ts"],"names":[],"mappings":""}
|