glitch-javascript-sdk 0.3.7 → 0.3.9
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/cjs/index.js +64 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Auth.d.ts +1 -1
- package/dist/esm/api/Competitions.d.ts +45 -0
- package/dist/esm/index.js +246 -166
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/util/Session.d.ts +1 -0
- package/dist/index.d.ts +47 -1
- package/package.json +1 -1
- package/src/api/Auth.ts +2 -2
- package/src/api/Competitions.ts +60 -0
- package/src/routes/CompetitionRoute.ts +5 -0
- package/src/util/Session.ts +3 -1
package/dist/esm/api/Auth.d.ts
CHANGED
|
@@ -40,7 +40,7 @@ declare class Auth {
|
|
|
40
40
|
*
|
|
41
41
|
* @returns promise
|
|
42
42
|
*/
|
|
43
|
-
static oneTimeLogin<T>(): AxiosPromise<Response<T>>;
|
|
43
|
+
static oneTimeLogin<T>(token: string): AxiosPromise<Response<T>>;
|
|
44
44
|
/**
|
|
45
45
|
* Execute the password reset process using a user's email address.
|
|
46
46
|
*
|
|
@@ -457,5 +457,50 @@ declare class Competitions {
|
|
|
457
457
|
* @returns promise
|
|
458
458
|
*/
|
|
459
459
|
static uploadVenueMainImageBlob<T>(competition_id: string, blob: Blob, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
460
|
+
/**
|
|
461
|
+
* Get a leaderboard by a users points.
|
|
462
|
+
*
|
|
463
|
+
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
|
|
464
|
+
*
|
|
465
|
+
* @param competition_id
|
|
466
|
+
* @returns promise
|
|
467
|
+
*/
|
|
468
|
+
static userPointsLeaderboard<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
469
|
+
/**
|
|
470
|
+
* Get a leaderboard by a users wins.
|
|
471
|
+
*
|
|
472
|
+
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
|
|
473
|
+
*
|
|
474
|
+
* @param competition_id
|
|
475
|
+
* @returns promise
|
|
476
|
+
*/
|
|
477
|
+
static userWinsLeaderboard<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
478
|
+
/**
|
|
479
|
+
* Get a leaderboard by a teams points.
|
|
480
|
+
*
|
|
481
|
+
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
|
|
482
|
+
*
|
|
483
|
+
* @param competition_id
|
|
484
|
+
* @returns promise
|
|
485
|
+
*/
|
|
486
|
+
static teamPointsLeaderboard<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
487
|
+
/**
|
|
488
|
+
* Get a leaderboard by a teams wins.
|
|
489
|
+
*
|
|
490
|
+
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
|
|
491
|
+
*
|
|
492
|
+
* @param competition_id
|
|
493
|
+
* @returns promise
|
|
494
|
+
*/
|
|
495
|
+
static teamWinsLeaderboard<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
496
|
+
/**
|
|
497
|
+
* Get all leaderboards.
|
|
498
|
+
*
|
|
499
|
+
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
|
|
500
|
+
*
|
|
501
|
+
* @param competition_id
|
|
502
|
+
* @returns promise
|
|
503
|
+
*/
|
|
504
|
+
static allLeaderboards<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
460
505
|
}
|
|
461
506
|
export default Competitions;
|