@@ -38,199 +38,199 @@ class Client {
38
38
* Returns the current aes key
39
39
* @param options Options for this endpoint
40
40
*/
41
- public async aesKeys ( options : AESKeysRequestParams ) : Promise < AESKeysResponseData > {
41
+ public async aesKeys ( options ? : AESKeysRequestParams ) : Promise < AESKeysResponseData > {
42
42
return this . http . fetch ( '/v2/aes' , options ) ;
43
43
}
44
44
45
45
/**
46
46
* Returns an array of all banners
47
47
* @param options Options for this endpoint
48
48
*/
49
- public async banners ( options : BannersRequestParams ) : Promise < BannersResponseData > {
49
+ public async banners ( options ? : BannersRequestParams ) : Promise < BannersResponseData > {
50
50
return this . http . fetch ( '/v1/banners' , options ) ;
51
51
}
52
52
53
53
/**
54
54
* Returns an array of all banner colors
55
55
* @param options Options for this endpoint
56
56
*/
57
- public async bannerColors ( options : BannerColorsRequestParams ) : Promise < BannerColorsResponseData > {
57
+ public async bannerColors ( options ? : BannerColorsRequestParams ) : Promise < BannerColorsResponseData > {
58
58
return this . http . fetch ( '/v1/banners/colors' , options ) ;
59
59
}
60
60
61
61
/**
62
62
* Returns data of all cosmetics
63
63
* @param options Options for this endpoint
64
64
*/
65
- public async allCosmetics ( options : AllCosmeticsRequestParams ) : Promise < AllCosmeticsResponseData > {
65
+ public async allCosmetics ( options ? : AllCosmeticsRequestParams ) : Promise < AllCosmeticsResponseData > {
66
66
return this . http . fetch ( '/v2/cosmetics' , options ) ;
67
67
}
68
68
69
69
/**
70
70
* Returns data of the latest added cosmetics
71
71
* @param options Options for this endpoint
72
72
*/
73
- public async newCosmetics ( options : NewCosmeticsRequestParams ) : Promise < NewCosmeticsResponseData > {
73
+ public async newCosmetics ( options ? : NewCosmeticsRequestParams ) : Promise < NewCosmeticsResponseData > {
74
74
return this . http . fetch ( '/v2/cosmetics/new' , options ) ;
75
75
}
76
76
77
77
/**
78
78
* Returns data of all battle royale cosmetics
79
79
* @param options Options for this endpoint
80
80
*/
81
- public async brCosmeticsList ( options : BRCosmeticsListRequestParams ) : Promise < BRCosmeticsListResponseData > {
81
+ public async brCosmeticsList ( options ? : BRCosmeticsListRequestParams ) : Promise < BRCosmeticsListResponseData > {
82
82
return this . http . fetch ( '/v2/cosmetics/br' , options ) ;
83
83
}
84
84
85
85
/**
86
86
* Returns data of all track cosmetics
87
87
* @param options Options for this endpoint
88
88
*/
89
- public async trackCosmeticsList ( options : TrackCosmeticsListRequestParams ) : Promise < TrackCosmeticsListResponseData > {
89
+ public async trackCosmeticsList ( options ? : TrackCosmeticsListRequestParams ) : Promise < TrackCosmeticsListResponseData > {
90
90
return this . http . fetch ( '/v2/cosmetics/tracks' , options ) ;
91
91
}
92
92
93
93
/**
94
94
* Returns data of all instrument cosmetics
95
95
* @param options Options for this endpoint
96
96
*/
97
- public async instrumentCosmeticsList ( options : InstrumentCosmeticsListRequestParams ) : Promise < InstrumentCosmeticsListResponseData > {
97
+ public async instrumentCosmeticsList ( options ? : InstrumentCosmeticsListRequestParams ) : Promise < InstrumentCosmeticsListResponseData > {
98
98
return this . http . fetch ( '/v2/cosmetics/instruments' , options ) ;
99
99
}
100
100
101
101
/**
102
102
* Returns data of all car cosmetics
103
103
* @param options Options for this endpoint
104
104
*/
105
- public async carCosmeticsList ( options : CarCosmeticsListRequestParams ) : Promise < CarCosmeticsListResponseData > {
105
+ public async carCosmeticsList ( options ? : CarCosmeticsListRequestParams ) : Promise < CarCosmeticsListResponseData > {
106
106
return this . http . fetch ( '/v2/cosmetics/cars' , options ) ;
107
107
}
108
108
109
109
/**
110
110
* Returns data of all lego cosmetics
111
111
* @param options Options for this endpoint
112
112
*/
113
- public async legoCosmeticsList ( options : LegoCosmeticsListRequestParams ) : Promise < LegoCosmeticsListResponseData > {
113
+ public async legoCosmeticsList ( options ? : LegoCosmeticsListRequestParams ) : Promise < LegoCosmeticsListResponseData > {
114
114
return this . http . fetch ( '/v2/cosmetics/lego' , options ) ;
115
115
}
116
116
117
117
/**
118
118
* Returns data of all lego kit cosmetics
119
119
* @param options Options for this endpoint
120
120
*/
121
- public async legoKitCosmeticsList ( options : LegoKitCosmeticsListRequestParams ) : Promise < LegoKitCosmeticsListResponseData > {
121
+ public async legoKitCosmeticsList ( options ? : LegoKitCosmeticsListRequestParams ) : Promise < LegoKitCosmeticsListResponseData > {
122
122
return this . http . fetch ( '/v2/cosmetics/lego/kits' , options ) ;
123
123
}
124
124
125
125
/**
126
126
* Returns data of all bean aka fall guys cosmetics
127
127
* @param options Options for this endpoint
128
128
*/
129
- public async beanCosmeticsList ( options : BeanCosmeticsListRequestParams ) : Promise < BeanCosmeticsListResponseData > {
129
+ public async beanCosmeticsList ( options ? : BeanCosmeticsListRequestParams ) : Promise < BeanCosmeticsListResponseData > {
130
130
return this . http . fetch ( '/v2/cosmetics/beans' , options ) ;
131
131
}
132
132
133
133
/**
134
134
* Returns data of the requested battle royale cosmetic-id
135
135
* @param options Options for this endpoint
136
136
*/
137
- public async brCosmeticByID ( cosmeticId : string , options : BRCosmeticByIDRequestParams ) : Promise < BRCosmeticByIDResponseData > {
137
+ public async brCosmeticByID ( cosmeticId : string , options ? : BRCosmeticByIDRequestParams ) : Promise < BRCosmeticByIDResponseData > {
138
138
return this . http . fetch ( `/v2/cosmetics/br/${ cosmeticId } ` , options ) ;
139
139
}
140
140
141
141
/**
142
142
* Returns data of the first battle royale cosmetic which matches the search parameter(s)
143
143
* @param options Options for this endpoint
144
144
*/
145
- public async brCosmeticSearch ( options : BRCosmeticSearchRequestParams ) : Promise < BRCosmeticSearchResponseData > {
145
+ public async brCosmeticSearch ( options ? : BRCosmeticSearchRequestParams ) : Promise < BRCosmeticSearchResponseData > {
146
146
return this . http . fetch ( '/v2/cosmetics/br/search' , options ) ;
147
147
}
148
148
149
149
/**
150
150
* Returns an array of all battle royale cosmetics which match the search parameter(s)
151
151
* @param options Options for this endpoint
152
152
*/
153
- public async brCosmeticsSearch ( options : BRCosmeticsSearchRequestParams ) : Promise < BRCosmeticsSearchResponseData > {
153
+ public async brCosmeticsSearch ( options ? : BRCosmeticsSearchRequestParams ) : Promise < BRCosmeticsSearchResponseData > {
154
154
return this . http . fetch ( '/v2/cosmetics/br/search/all' , options ) ;
155
155
}
156
156
157
157
/**
158
158
* Returns an array of the requested battle royale cosmetic ids
159
159
* @param options Options for this endpoint
160
160
*/
161
- public async brCosmeticsSearchByIDs ( options : BRCosmeticsSearchByIDsRequestParams ) : Promise < BRCosmeticsSearchByIDsResponseData > {
161
+ public async brCosmeticsSearchByIDs ( options ? : BRCosmeticsSearchByIDsRequestParams ) : Promise < BRCosmeticsSearchByIDsResponseData > {
162
162
return this . http . fetch ( '/v2/cosmetics/br/search/ids' , options ) ;
163
163
}
164
164
165
165
/**
166
166
* Returns data of a creator code by its name
167
167
* @param options Options for this endpoint
168
168
*/
169
- public async creatorCode ( options : CreatorCodeRequestParams ) : Promise < CreatorCodeResponseData > {
169
+ public async creatorCode ( options ? : CreatorCodeRequestParams ) : Promise < CreatorCodeResponseData > {
170
170
return this . http . fetch ( '/v2/creatorcode' , options ) ;
171
171
}
172
172
173
173
/**
174
174
* Returns data & images of the BR map & POIs
175
175
* @param options Options for this endpoint
176
176
*/
177
- public async brMap ( options : BRMapRequestParams ) : Promise < BRMapResponseData > {
177
+ public async brMap ( options ? : BRMapRequestParams ) : Promise < BRMapResponseData > {
178
178
return this . http . fetch ( '/v1/map' , options ) ;
179
179
}
180
180
181
181
/**
182
182
* Returns data of the current battle royale, save the world & creative news
183
183
* @param options Options for this endpoint
184
184
*/
185
- public async news ( options : NewsRequestParams ) : Promise < NewsResponseData > {
185
+ public async news ( options ? : NewsRequestParams ) : Promise < NewsResponseData > {
186
186
return this . http . fetch ( '/v2/news' , options ) ;
187
187
}
188
188
189
189
/**
190
190
* Returns data of the current battle royale news
191
191
* @param options Options for this endpoint
192
192
*/
193
- public async brNews ( options : BRNewsRequestParams ) : Promise < BRNewsResponseData > {
193
+ public async brNews ( options ? : BRNewsRequestParams ) : Promise < BRNewsResponseData > {
194
194
return this . http . fetch ( '/v2/news/br' , options ) ;
195
195
}
196
196
197
197
/**
198
198
* Returns data of the current save the world news
199
199
* @param options Options for this endpoint
200
200
*/
201
- public async stwNews ( options : STWNewsRequestParams ) : Promise < STWNewsResponseData > {
201
+ public async stwNews ( options ? : STWNewsRequestParams ) : Promise < STWNewsResponseData > {
202
202
return this . http . fetch ( '/v2/news/stw' , options ) ;
203
203
}
204
204
205
205
/**
206
206
* Returns data of the current creative news
207
207
* @param options Options for this endpoint
208
208
*/
209
- public async creativeNews ( options : CreativeNewsRequestParams ) : Promise < CreativeNewsResponseData > {
209
+ public async creativeNews ( options ? : CreativeNewsRequestParams ) : Promise < CreativeNewsResponseData > {
210
210
return this . http . fetch ( '/v2/news/creative' , options ) ;
211
211
}
212
212
213
213
/**
214
214
* Returns an array of all playlists
215
215
* @param options Options for this endpoint
216
216
*/
217
- public async playlists ( options : PlaylistsRequestParams ) : Promise < PlaylistsResponseData > {
217
+ public async playlists ( options ? : PlaylistsRequestParams ) : Promise < PlaylistsResponseData > {
218
218
return this . http . fetch ( '/v1/playlists' , options ) ;
219
219
}
220
220
221
221
/**
222
222
* Returns data of the requested playlist-id
223
223
* @param options Options for this endpoint
224
224
*/
225
- public async playlistByID ( playlistId : string , options : PlaylistByIDRequestParams ) : Promise < PlaylistByIDResponseData > {
225
+ public async playlistByID ( playlistId : string , options ? : PlaylistByIDRequestParams ) : Promise < PlaylistByIDResponseData > {
226
226
return this . http . fetch ( `/v1/playlists/${ playlistId } ` , options ) ;
227
227
}
228
228
229
229
/**
230
230
* Returns data of the current shop
231
231
* @param options Options for this endpoint
232
232
*/
233
- public async shop ( options : ShopRequestParams ) : Promise < ShopResponseData > {
233
+ public async shop ( options ? : ShopRequestParams ) : Promise < ShopResponseData > {
234
234
return this . http . fetch ( '/v2/shop' , options ) ;
235
235
}
236
236
@@ -239,7 +239,7 @@ class Client {
239
239
* Note: trios stats will always be null
240
240
* @param options Options for this endpoint
241
241
*/
242
- public async brStats ( options : BRStatsRequestParams ) : Promise < BRStatsResponseData > {
242
+ public async brStats ( options ? : BRStatsRequestParams ) : Promise < BRStatsResponseData > {
243
243
return this . http . fetchStats ( '/v2/stats/br/v2' , options ) ;
244
244
}
245
245
@@ -248,7 +248,7 @@ class Client {
248
248
* Note: trios stats will always be null
249
249
* @param options Options for this endpoint
250
250
*/
251
- public async brStatsByAccountID ( accountId : string , options : BRStatsByAccountIDRequestParams ) : Promise < BRStatsByAccountIDResponseData > {
251
+ public async brStatsByAccountID ( accountId : string , options ? : BRStatsByAccountIDRequestParams ) : Promise < BRStatsByAccountIDResponseData > {
252
252
return this . http . fetchStats ( `/v2/stats/br/v2/${ accountId } ` , options ) ;
253
253
}
254
254
}
0 commit comments