glitch-javascript-sdk 0.2.5 → 0.2.6

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.
@@ -8,7 +8,7 @@ declare class Communities {
8
8
  *
9
9
  * @returns promise
10
10
  */
11
- static list<T>(): AxiosPromise<Response<T>>;
11
+ static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
12
12
  /**
13
13
  * Create a new community.
14
14
  *
@@ -18,7 +18,7 @@ declare class Communities {
18
18
  *
19
19
  * @returns Promise
20
20
  */
21
- static create<T>(data: object): AxiosPromise<Response<T>>;
21
+ static create<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
22
22
  /**
23
23
  * Update a community.
24
24
  *
@@ -29,7 +29,7 @@ declare class Communities {
29
29
  *
30
30
  * @returns promise
31
31
  */
32
- static update<T>(community_id: string, data: object): AxiosPromise<Response<T>>;
32
+ static update<T>(community_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
33
33
  /**
34
34
  * Retrieve the information for a single community.
35
35
  *
@@ -39,7 +39,7 @@ declare class Communities {
39
39
  *
40
40
  * @returns promise
41
41
  */
42
- static view<T>(community_id: string): AxiosPromise<Response<T>>;
42
+ static view<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
43
43
  /**
44
44
  * Deletes a community.
45
45
  *
@@ -48,7 +48,7 @@ declare class Communities {
48
48
  * @param community_id The id of the community to delete.
49
49
  * @returns promise
50
50
  */
51
- static delete<T>(community_id: string): AxiosPromise<Response<T>>;
51
+ static delete<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
52
52
  /**
53
53
  * Updates the main image for the community using a File object.
54
54
  *
@@ -59,7 +59,7 @@ declare class Communities {
59
59
  *
60
60
  * @returns promise
61
61
  */
62
- static uploadLogoFile<T>(community_id: string, file: File, data?: object): AxiosPromise<Response<T>>;
62
+ static uploadLogoFile<T>(community_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
63
63
  /**
64
64
  * Updates the main image for the community using a Blob.
65
65
  *
@@ -70,7 +70,7 @@ declare class Communities {
70
70
  *
71
71
  * @returns promise
72
72
  */
73
- static uploadLogoBlob<T>(community_id: string, blob: Blob, data?: object): AxiosPromise<Response<T>>;
73
+ static uploadLogoBlob<T>(community_id: string, blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
74
74
  /**
75
75
  * Updates the banner image for the community using a File object.
76
76
  *
@@ -81,7 +81,7 @@ declare class Communities {
81
81
  *
82
82
  * @returns promise
83
83
  */
84
- static uploadBannerImageFile<T>(community_id: string, file: File, data?: object): AxiosPromise<Response<T>>;
84
+ static uploadBannerImageFile<T>(community_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
85
85
  /**
86
86
  * Updates the banner image for the community using a Blob.
87
87
  *
@@ -92,7 +92,7 @@ declare class Communities {
92
92
  *
93
93
  * @returns promise
94
94
  */
95
- static uploadBannerImageBlob<T>(community_id: string, blob: Blob, data?: object): AxiosPromise<Response<T>>;
95
+ static uploadBannerImageBlob<T>(community_id: string, blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
96
96
  /**
97
97
  * Updates the banner image for the community using a File object.
98
98
  *
@@ -103,7 +103,7 @@ declare class Communities {
103
103
  *
104
104
  * @returns promise
105
105
  */
106
- static uploadVideoLogoFile<T>(community_id: string, file: File, data?: object): AxiosPromise<Response<T>>;
106
+ static uploadVideoLogoFile<T>(community_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
107
107
  /**
108
108
  * Updates the banner image for the community using a Blob.
109
109
  *
@@ -114,7 +114,7 @@ declare class Communities {
114
114
  *
115
115
  * @returns promise
116
116
  */
117
- static uploadVideoLogoBlob<T>(community_id: string, blob: Blob, data?: object): AxiosPromise<Response<T>>;
117
+ static uploadVideoLogoBlob<T>(community_id: string, blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
118
118
  /**
119
119
  * List the invites that have been sent for the community to users.
120
120
  *
@@ -124,7 +124,7 @@ declare class Communities {
124
124
  *
125
125
  * @returns promise
126
126
  */
127
- static listInvites<T>(community_id: string): AxiosPromise<Response<T>>;
127
+ static listInvites<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
128
128
  /**
129
129
  * Send an invitation to a user to join the community.
130
130
  *
@@ -135,7 +135,7 @@ declare class Communities {
135
135
  *
136
136
  * @returns promise
137
137
  */
138
- static sendInvite<T>(community_id: string, data?: object): AxiosPromise<Response<T>>;
138
+ static sendInvite<T>(community_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
139
139
  /**
140
140
  * Accept an invite to a community. The JSON Web Token (JWT) must be related to the token.
141
141
  *
@@ -146,7 +146,7 @@ declare class Communities {
146
146
  *
147
147
  * @returns promise
148
148
  */
149
- static acceptInvite<T>(community_id: string, token: string): AxiosPromise<Response<T>>;
149
+ static acceptInvite<T>(community_id: string, token: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
150
150
  /**
151
151
  * List the users who are currently associated with the community.
152
152
  *
@@ -156,7 +156,7 @@ declare class Communities {
156
156
  *
157
157
  * @returns promise
158
158
  */
159
- static listUsers<T>(community_id: string): AxiosPromise<Response<T>>;
159
+ static listUsers<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
160
160
  /**
161
161
  * Add a user to a community.
162
162
  *
@@ -167,7 +167,7 @@ declare class Communities {
167
167
  *
168
168
  * @returns promise
169
169
  */
170
- static addUser<T>(community_id: string, data?: object): AxiosPromise<Response<T>>;
170
+ static addUser<T>(community_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
171
171
  /**
172
172
  * Retrieves a single user and their information that is associated with a community.
173
173
  *
@@ -178,7 +178,7 @@ declare class Communities {
178
178
  *
179
179
  * @returns promise
180
180
  */
181
- static getUser<T>(community_id: string, user_id: string): AxiosPromise<Response<T>>;
181
+ static getUser<T>(community_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
182
182
  /**
183
183
  * Updates the users information associated with the community.
184
184
  *
@@ -187,7 +187,7 @@ declare class Communities {
187
187
  *
188
188
  * @returns promise
189
189
  */
190
- static updatetUser<T>(community_id: string, user_id: string, data?: object): AxiosPromise<Response<T>>;
190
+ static updatetUser<T>(community_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
191
191
  /**
192
192
  * Removes a user from a community.
193
193
  *
@@ -196,7 +196,7 @@ declare class Communities {
196
196
  *
197
197
  * @returns promise
198
198
  */
199
- static removetUser<T>(community_id: string, user_id: string): AxiosPromise<Response<T>>;
199
+ static removetUser<T>(community_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
200
200
  /**
201
201
  * Finds a community either by its subdomain or cname. The cname must be active.
202
202
  *
@@ -204,6 +204,6 @@ declare class Communities {
204
204
  *
205
205
  * @returns promise
206
206
  */
207
- static findByDomain<T>(domain: string): AxiosPromise<Response<T>>;
207
+ static findByDomain<T>(domain: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
208
208
  }
209
209
  export default Communities;
@@ -8,7 +8,7 @@ declare class Competitions {
8
8
  *
9
9
  * @returns promise
10
10
  */
11
- static list<T>(): AxiosPromise<Response<T>>;
11
+ static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
12
12
  /**
13
13
  * Create a new competition
14
14
  *
@@ -18,7 +18,7 @@ declare class Competitions {
18
18
  *
19
19
  * @returns Promise
20
20
  */
21
- static create<T>(data: object): AxiosPromise<Response<T>>;
21
+ static create<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
22
22
  /**
23
23
  * Update a competition
24
24
  *
@@ -29,7 +29,7 @@ declare class Competitions {
29
29
  *
30
30
  * @returns promise
31
31
  */
32
- static update<T>(competition_id: string, data: object): AxiosPromise<Response<T>>;
32
+ static update<T>(competition_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
33
33
  /**
34
34
  * Retrieve the information for a single competition.
35
35
  *
@@ -39,7 +39,7 @@ declare class Competitions {
39
39
  *
40
40
  * @returns promise
41
41
  */
42
- static view<T>(competition_id: string): AxiosPromise<Response<T>>;
42
+ static view<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
43
43
  /**
44
44
  * Deletes a competition.
45
45
  *
@@ -48,7 +48,7 @@ declare class Competitions {
48
48
  * @param competition_id The id of the competition to delete.
49
49
  * @returns promise
50
50
  */
51
- static delete<T>(competition_id: string): AxiosPromise<Response<T>>;
51
+ static delete<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
52
52
  /**
53
53
  * Add a team
54
54
  *
@@ -58,7 +58,7 @@ declare class Competitions {
58
58
  * @param team_id
59
59
  * @returns promise
60
60
  */
61
- static addTeam<T>(competition_id: string, team_id: string): AxiosPromise<Response<T>>;
61
+ static addTeam<T>(competition_id: string, team_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
62
62
  /**
63
63
  * Adds participant
64
64
  *
@@ -68,7 +68,7 @@ declare class Competitions {
68
68
  * @param user_id
69
69
  * @returns promise
70
70
  */
71
- static addParticipant<T>(competition_id: string, user_id: string): AxiosPromise<Response<T>>;
71
+ static addParticipant<T>(competition_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
72
72
  /**
73
73
  * Register a team
74
74
  *
@@ -78,7 +78,7 @@ declare class Competitions {
78
78
  * @param team_id
79
79
  * @returns promise
80
80
  */
81
- static registerTeam<T>(competition_id: string, team_id: string): AxiosPromise<Response<T>>;
81
+ static registerTeam<T>(competition_id: string, team_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
82
82
  /**
83
83
  * Register a user
84
84
  *
@@ -87,7 +87,7 @@ declare class Competitions {
87
87
  * @param competition_id
88
88
  * @returns promise
89
89
  */
90
- static registerUser<T>(competition_id: string): AxiosPromise<Response<T>>;
90
+ static registerUser<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
91
91
  /**
92
92
  * Sync rounds
93
93
  *
@@ -98,7 +98,7 @@ declare class Competitions {
98
98
  * @param competitors_per_bracket
99
99
  * @returns promise
100
100
  */
101
- static syncRounds<T>(competition_id: string): AxiosPromise<Response<T>>;
101
+ static syncRounds<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
102
102
  /**
103
103
  * auto generate team brackets
104
104
  *
@@ -108,7 +108,7 @@ declare class Competitions {
108
108
  * @param round_id
109
109
  * @returns promise
110
110
  */
111
- static autoGenerate<T>(competition_id: string, round_id: number): AxiosPromise<Response<T>>;
111
+ static autoGenerate<T>(competition_id: string, round_id: number, params?: Record<string, any>): AxiosPromise<Response<T>>;
112
112
  /**
113
113
  * auto generate user brackets
114
114
  *
@@ -117,7 +117,7 @@ declare class Competitions {
117
117
  * @param competition_id
118
118
  * @returns promise
119
119
  */
120
- static autoGenerateUserBrackets<T>(competition_id: string): AxiosPromise<Response<T>>;
120
+ static autoGenerateUserBrackets<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
121
121
  /**
122
122
  * Updates the main image for the event using a File object.
123
123
  *
@@ -128,7 +128,7 @@ declare class Competitions {
128
128
  *
129
129
  * @returns promise
130
130
  */
131
- static uploadCompetitionMainImageFile<T>(competition_id: string, file: File, data?: object): AxiosPromise<Response<T>>;
131
+ static uploadCompetitionMainImageFile<T>(competition_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
132
132
  /**
133
133
  * Updates the main image for the competition using a Blob.
134
134
  *
@@ -139,7 +139,7 @@ declare class Competitions {
139
139
  *
140
140
  * @returns promise
141
141
  */
142
- static uploadCompetitionMainImageBlob<T>(competition_id: string, blob: Blob, data?: object): AxiosPromise<Response<T>>;
142
+ static uploadCompetitionMainImageBlob<T>(competition_id: string, blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
143
143
  /**
144
144
  * Updates the banner image for the competition using a File object.
145
145
  *
@@ -150,7 +150,7 @@ declare class Competitions {
150
150
  *
151
151
  * @returns promise
152
152
  */
153
- static uploadCompetitionBannerImageFile<T>(competition_id: string, file: File, data?: object): AxiosPromise<Response<T>>;
153
+ static uploadCompetitionBannerImageFile<T>(competition_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
154
154
  /**
155
155
  * Updates the banner image for the competition using a Blob.
156
156
  *
@@ -161,7 +161,7 @@ declare class Competitions {
161
161
  *
162
162
  * @returns promise
163
163
  */
164
- static uploadCompetitionsBannerImageBlob<T>(competition_id: string, blob: Blob, data?: object): AxiosPromise<Response<T>>;
164
+ static uploadCompetitionsBannerImageBlob<T>(competition_id: string, blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
165
165
  /**
166
166
  * Invites
167
167
  *
@@ -170,7 +170,7 @@ declare class Competitions {
170
170
  * @param competition_id
171
171
  * @returns promise
172
172
  */
173
- static invites<T>(competition_id: string): AxiosPromise<Response<T>>;
173
+ static invites<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
174
174
  /**
175
175
  * Sends invite
176
176
  *
@@ -199,7 +199,7 @@ declare class Competitions {
199
199
  * @param round_id
200
200
  * @returns promise
201
201
  */
202
- static brackets<T>(competition_id: string, round_id: number): AxiosPromise<Response<T>>;
202
+ static brackets<T>(competition_id: string, round_id: number, params?: Record<string, any>): AxiosPromise<Response<T>>;
203
203
  /**
204
204
  * Store round brackets
205
205
  *
@@ -209,7 +209,7 @@ declare class Competitions {
209
209
  * @param round_id
210
210
  * @returns promise
211
211
  */
212
- static createBracket<T>(competition_id: string, round_id: number, data?: object): AxiosPromise<Response<T>>;
212
+ static createBracket<T>(competition_id: string, round_id: number, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
213
213
  /**
214
214
  * Show round bracket
215
215
  *
@@ -220,7 +220,7 @@ declare class Competitions {
220
220
  * @param bracket_id
221
221
  * @returns promise
222
222
  */
223
- static showBracket<T>(competition_id: string, round_id: number, bracket_id: number): AxiosPromise<Response<T>>;
223
+ static showBracket<T>(competition_id: string, round_id: number, bracket_id: number, params?: Record<string, any>): AxiosPromise<Response<T>>;
224
224
  /**
225
225
  * Update bracket
226
226
  *
@@ -231,7 +231,7 @@ declare class Competitions {
231
231
  * @param bracket_id
232
232
  * @returns promise
233
233
  */
234
- static updateBracket<T>(competition_id: string, round_id: number, bracket_id: number, data?: object): AxiosPromise<Response<T>>;
234
+ static updateBracket<T>(competition_id: string, round_id: number, bracket_id: number, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
235
235
  /**
236
236
  * Delete bracket
237
237
  *
@@ -251,7 +251,7 @@ declare class Competitions {
251
251
  * @param competition_id
252
252
  * @returns promise
253
253
  */
254
- static rounds<T>(competition_id: string): AxiosPromise<Response<T>>;
254
+ static rounds<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
255
255
  /**
256
256
  * Create a new round for competition
257
257
  *
@@ -260,7 +260,7 @@ declare class Competitions {
260
260
  * @param competition_id
261
261
  * @returns promise
262
262
  */
263
- static createRound<T>(competition_id: string, data?: object): AxiosPromise<Response<T>>;
263
+ static createRound<T>(competition_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
264
264
  /**
265
265
  * Retrieve the information for a single round.
266
266
  *
@@ -270,7 +270,7 @@ declare class Competitions {
270
270
  * @param round_id
271
271
  * @returns promise
272
272
  */
273
- static showRound<T>(competition_id: string, round_id: number): AxiosPromise<Response<T>>;
273
+ static showRound<T>(competition_id: string, round_id: number, params?: Record<string, any>): AxiosPromise<Response<T>>;
274
274
  /**
275
275
  * Updating resource in storage with new information.
276
276
  *
@@ -280,7 +280,7 @@ declare class Competitions {
280
280
  * @param round_id
281
281
  * @returns promise
282
282
  */
283
- static updateRound<T>(competition_id: string, round_id: number, data?: object): AxiosPromise<Response<T>>;
283
+ static updateRound<T>(competition_id: string, round_id: number, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
284
284
  /**
285
285
  * Deletes the round for the competition.
286
286
  *
@@ -299,7 +299,7 @@ declare class Competitions {
299
299
  * @param competition_id
300
300
  * @returns promise
301
301
  */
302
- static team<T>(competition_id: string): AxiosPromise<Response<T>>;
302
+ static team<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
303
303
  /**
304
304
  * Associate a new team with the competition.
305
305
  *
@@ -308,7 +308,7 @@ declare class Competitions {
308
308
  * @param competition_id
309
309
  * @returns promise
310
310
  */
311
- static createCompetitionTeam<T>(competition_id: string, data?: object): AxiosPromise<Response<T>>;
311
+ static createCompetitionTeam<T>(competition_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
312
312
  /**
313
313
  * Display the contents of a single team associated with the competition.
314
314
  *
@@ -318,7 +318,7 @@ declare class Competitions {
318
318
  * @param team_id The id of the team
319
319
  * @returns promise
320
320
  */
321
- static showTeam<T>(competition_id: string, team_id: string): AxiosPromise<Response<T>>;
321
+ static showTeam<T>(competition_id: string, team_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
322
322
  /**
323
323
  * Update the team information associated with the competition.
324
324
  *
@@ -338,7 +338,7 @@ declare class Competitions {
338
338
  * @param team_id
339
339
  * @returns promise
340
340
  */
341
- static destroyTeam<T>(competition_id: string, team_id: string): AxiosPromise<Response<T>>;
341
+ static destroyTeam<T>(competition_id: string, team_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
342
342
  /**
343
343
  * List all the users associated with a competition.
344
344
  *
@@ -347,7 +347,7 @@ declare class Competitions {
347
347
  * @param competition_id
348
348
  * @returns promise
349
349
  */
350
- static users<T>(competition_id: string): AxiosPromise<Response<T>>;
350
+ static users<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
351
351
  /**
352
352
  * Associate a new users with the competition.
353
353
  *
@@ -366,7 +366,7 @@ declare class Competitions {
366
366
  * @param user_id
367
367
  * @returns promise
368
368
  */
369
- static showCompetitionUser<T>(competition_id: string, user_id: string): AxiosPromise<Response<T>>;
369
+ static showCompetitionUser<T>(competition_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
370
370
  /**
371
371
  * Update the user associated with competition.
372
372
  *
@@ -376,7 +376,7 @@ declare class Competitions {
376
376
  * @param user_id
377
377
  * @returns promise
378
378
  */
379
- static updateCompetitionUser<T>(competition_id: string, user_id: string, data?: object): AxiosPromise<Response<T>>;
379
+ static updateCompetitionUser<T>(competition_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
380
380
  /**
381
381
  * Remove the associated user from the competition.
382
382
  *
@@ -386,7 +386,7 @@ declare class Competitions {
386
386
  * @param user_id
387
387
  * @returns promise
388
388
  */
389
- static destroyCompetitionUser<T>(competition_id: string, user_id: string): AxiosPromise<Response<T>>;
389
+ static destroyCompetitionUser<T>(competition_id: string, user_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
390
390
  /**
391
391
  * List all the venues associated with a competition.
392
392
  *
@@ -395,7 +395,7 @@ declare class Competitions {
395
395
  * @param competition_id
396
396
  * @returns promise
397
397
  */
398
- static venues<T>(competition_id: string): AxiosPromise<Response<T>>;
398
+ static venues<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
399
399
  /**
400
400
  * Creating a new venue.
401
401
  *
@@ -404,7 +404,7 @@ declare class Competitions {
404
404
  * @param competition_id
405
405
  * @returns promise
406
406
  */
407
- static createVenue<T>(competition_id: string, data: object): AxiosPromise<Response<T>>;
407
+ static createVenue<T>(competition_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
408
408
  /**
409
409
  * Show a single venue by its ID.
410
410
  *
@@ -414,7 +414,7 @@ declare class Competitions {
414
414
  * @param venue_id
415
415
  * @returns promise
416
416
  */
417
- static showVenue<T>(competition_id: string, venue_id: string): AxiosPromise<Response<T>>;
417
+ static showVenue<T>(competition_id: string, venue_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
418
418
  /**
419
419
  * Update the venue.
420
420
  *
@@ -424,7 +424,7 @@ declare class Competitions {
424
424
  * @param venue_id
425
425
  * @returns promise
426
426
  */
427
- static updateVenue<T>(competition_id: string, venue_id: string, data: object): AxiosPromise<Response<T>>;
427
+ static updateVenue<T>(competition_id: string, venue_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
428
428
  /**
429
429
  * Deletes the venue from the competition.
430
430
  *
@@ -434,7 +434,7 @@ declare class Competitions {
434
434
  * @param venue_id
435
435
  * @returns promise
436
436
  */
437
- static destroyVenue<T>(competition_id: string, venue_id: string): AxiosPromise<Response<T>>;
437
+ static destroyVenue<T>(competition_id: string, venue_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
438
438
  /**
439
439
  * Updates the main image for the venue using a File object.
440
440
  *
@@ -445,7 +445,7 @@ declare class Competitions {
445
445
  *
446
446
  * @returns promise
447
447
  */
448
- static uploadVenueMainImageFile<T>(competition_id: string, file: File, data?: object): AxiosPromise<Response<T>>;
448
+ static uploadVenueMainImageFile<T>(competition_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
449
449
  /**
450
450
  * Updates the main image for the venue using a Blob.
451
451
  *
@@ -456,6 +456,6 @@ declare class Competitions {
456
456
  *
457
457
  * @returns promise
458
458
  */
459
- static uploadVenueMainImageBlob<T>(competition_id: string, blob: Blob, data?: object): AxiosPromise<Response<T>>;
459
+ static uploadVenueMainImageBlob<T>(competition_id: string, blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
460
460
  }
461
461
  export default Competitions;
@@ -8,7 +8,7 @@ declare class Events {
8
8
  *
9
9
  * @returns promise
10
10
  */
11
- static list<T>(): AxiosPromise<Response<T>>;
11
+ static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
12
12
  /**
13
13
  * Create a new event.
14
14
  *
@@ -18,7 +18,7 @@ declare class Events {
18
18
  *
19
19
  * @returns Promise
20
20
  */
21
- static create<T>(data: object): AxiosPromise<Response<T>>;
21
+ static create<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
22
22
  /**
23
23
  * Update a event
24
24
  *
@@ -29,7 +29,7 @@ declare class Events {
29
29
  *
30
30
  * @returns promise
31
31
  */
32
- static update<T>(event_id: string, data: object): AxiosPromise<Response<T>>;
32
+ static update<T>(event_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
33
33
  /**
34
34
  * Retrieve the information for a single event.
35
35
  *
@@ -39,7 +39,7 @@ declare class Events {
39
39
  *
40
40
  * @returns promise
41
41
  */
42
- static view<T>(event_id: string): AxiosPromise<Response<T>>;
42
+ static view<T>(event_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
43
43
  /**
44
44
  * Deletes a event.
45
45
  *
@@ -48,7 +48,7 @@ declare class Events {
48
48
  * @param event_id The id of the event to delete.
49
49
  * @returns promise
50
50
  */
51
- static delete<T>(event_id: string): AxiosPromise<Response<T>>;
51
+ static delete<T>(event_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
52
52
  /**
53
53
  * The event is synced with Invirtu for the lie streams. This will allow you to update
54
54
  *
@@ -60,7 +60,7 @@ declare class Events {
60
60
  *
61
61
  * @returns promise
62
62
  */
63
- static updateInvirtuEvent<T>(event_id: string, data: object): AxiosPromise<Response<T>>;
63
+ static updateInvirtuEvent<T>(event_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
64
64
  /**
65
65
  * Add an RTMP source to multicast a stream too.
66
66
  *
@@ -71,7 +71,7 @@ declare class Events {
71
71
  *
72
72
  * @returns promise
73
73
  */
74
- static addRTMPSource<T>(event_id: string, data?: object): AxiosPromise<Response<T>>;
74
+ static addRTMPSource<T>(event_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
75
75
  /**
76
76
  * Update an RTMP Source for multicasing.
77
77
  *
@@ -82,7 +82,7 @@ declare class Events {
82
82
  *
83
83
  * @returns promise
84
84
  */
85
- static updateRTMPSource<T>(event_id: string, stream_id: string, data?: object): AxiosPromise<Response<T>>;
85
+ static updateRTMPSource<T>(event_id: string, stream_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
86
86
  /**
87
87
  * Remove a RTMP source for multicasing.
88
88
  *
@@ -93,7 +93,7 @@ declare class Events {
93
93
  *
94
94
  * @returns promise
95
95
  */
96
- static removeRTMPSource<T>(event_id: string, stream_id: string): AxiosPromise<Response<T>>;
96
+ static removeRTMPSource<T>(event_id: string, stream_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
97
97
  /**
98
98
  * A function that should be run on an interval to set the event as live when the live stream is active.
99
99
  *
@@ -103,7 +103,7 @@ declare class Events {
103
103
  *
104
104
  * @returns promise
105
105
  */
106
- static syncAsLive<T>(event_id: string): AxiosPromise<Response<T>>;
106
+ static syncAsLive<T>(event_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
107
107
  /**
108
108
  * Updates the main image for the event using a File object.
109
109
  *
@@ -114,7 +114,7 @@ declare class Events {
114
114
  *
115
115
  * @returns promise
116
116
  */
117
- static uploadMainImageFile<T>(event_id: string, file: File, data?: object): AxiosPromise<Response<T>>;
117
+ static uploadMainImageFile<T>(event_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
118
118
  /**
119
119
  * Updates the main image for the event using a Blob.
120
120
  *
@@ -125,7 +125,7 @@ declare class Events {
125
125
  *
126
126
  * @returns promise
127
127
  */
128
- static uploadMainImageBlob<T>(event_id: string, blob: Blob, data?: object): AxiosPromise<Response<T>>;
128
+ static uploadMainImageBlob<T>(event_id: string, blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
129
129
  /**
130
130
  * Updates the banner image for the team using a File object.
131
131
  *
@@ -136,7 +136,7 @@ declare class Events {
136
136
  *
137
137
  * @returns promise
138
138
  */
139
- static uploadBannerImageFile<T>(event_id: string, file: File, data?: object): AxiosPromise<Response<T>>;
139
+ static uploadBannerImageFile<T>(event_id: string, file: File, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
140
140
  /**
141
141
  * Updates the banner image for the team using a Blob.
142
142
  *
@@ -147,7 +147,7 @@ declare class Events {
147
147
  *
148
148
  * @returns promise
149
149
  */
150
- static uploadBannerImageBlob<T>(event_id: string, blob: Blob, data?: object): AxiosPromise<Response<T>>;
150
+ static uploadBannerImageBlob<T>(event_id: string, blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
151
151
  /**
152
152
  * Enable Broadcast Mode. Broadcast mode is when the live stream is broadcasted from the game play through a protocol
153
153
  * such as screen sharing.
@@ -158,7 +158,7 @@ declare class Events {
158
158
  *
159
159
  * @returns promise
160
160
  */
161
- static enableBroadcastMode<T>(event_id: string): AxiosPromise<Response<T>>;
161
+ static enableBroadcastMode<T>(event_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
162
162
  /**
163
163
  * Enable livestream mode, in which the stream will be delivered to the invirtu RTMP endpoint for
164
164
  * streaming.
@@ -167,7 +167,7 @@ declare class Events {
167
167
  *
168
168
  * @returns promise
169
169
  */
170
- static enableLivestreamMode<T>(event_id: string): AxiosPromise<Response<T>>;
170
+ static enableLivestreamMode<T>(event_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
171
171
  /**
172
172
  * Sends content that will appear on-screen to the user.
173
173
  *
@@ -178,7 +178,7 @@ declare class Events {
178
178
  *
179
179
  * @returns promise
180
180
  */
181
- static sendOnScreenContent<T>(event_id: string, data: object): AxiosPromise<Response<T>>;
181
+ static sendOnScreenContent<T>(event_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
182
182
  /**
183
183
  * Uploads an image that can be used and overlay later. A File object is used.
184
184
  *