@yaelouuu/fortnite-api 2.0.0 → 3.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.
@@ -1,5 +1,5 @@
1
1
  import { FortniteAPI } from "../client";
2
- import { TournamentsBundle, ShopBundle } from "../types";
2
+ import { TournamentsBundle, Shop } from "../types";
3
3
  export declare class BundlesResource {
4
4
  private client;
5
5
  constructor(client: FortniteAPI);
@@ -10,5 +10,5 @@ export declare class BundlesResource {
10
10
  /**
11
11
  * Get current season information
12
12
  */
13
- getBundlesShop(): Promise<ShopBundle>;
13
+ getBundlesShop(): Promise<Shop>;
14
14
  }
@@ -1,12 +1,64 @@
1
1
  export interface Shop {
2
- date: string;
3
- bundles: ShopBundle[];
2
+ refreshIntervalHrs: number;
3
+ dailyPurchaseHrs: number;
4
+ expiration: string;
5
+ storefronts: Storefront[];
4
6
  }
5
- export interface ShopBundle {
6
- id: string;
7
+ export interface Storefront {
7
8
  name: string;
8
- price: number;
9
- items: ShopItem[];
9
+ catalogEntries: CatalogEntry[];
10
+ }
11
+ export interface CatalogEntry {
12
+ offerId: string;
13
+ devName: string;
14
+ offerType: string;
15
+ prices: Price[];
16
+ categories: string[];
17
+ dailyLimit: number;
18
+ weeklyLimit: number;
19
+ monthlyLimit: number;
20
+ refundable: boolean;
21
+ appStoreId: string[];
22
+ requirements: Requirement[];
23
+ metaInfo: MetaInfo[];
24
+ catalogGroup: string;
25
+ catalogGroupPriority: number;
26
+ sortPriority: number;
27
+ title: string;
28
+ shortDescription: string;
29
+ description: string;
30
+ displayAssetPath: string;
31
+ itemGrants: ItemGrant[];
32
+ giftInfo?: GiftInfo;
33
+ }
34
+ export interface Price {
35
+ currencyType: string;
36
+ currencySubType: string;
37
+ regularPrice: number;
38
+ dynamicRegularPrice: number;
39
+ finalPrice: number;
40
+ saleExpiration: string;
41
+ basePrice: number;
42
+ saleType?: string;
43
+ }
44
+ export interface Requirement {
45
+ requirementType: string;
46
+ requiredId: string;
47
+ minQuantity: number;
48
+ }
49
+ export interface MetaInfo {
50
+ key: string;
51
+ value: string;
52
+ }
53
+ export interface ItemGrant {
54
+ templateId: string;
55
+ quantity: number;
56
+ attributes: Record<string, any>;
57
+ }
58
+ export interface GiftInfo {
59
+ bIsEnabled: boolean;
60
+ forcedGiftBoxTemplateId: string;
61
+ purchaseRequirements: any[];
10
62
  }
11
63
  export interface TournamentsBundle {
12
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yaelouuu/fortnite-api",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "SDK for Fortnite Tournaments API by Royal Arena - Author : Yael Brinkert",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",