glitch-javascript-sdk 0.4.0 → 0.4.2

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.
@@ -469,7 +469,7 @@ declare class Competitions {
469
469
  /**
470
470
  * Get a leaderboard by a users wins.
471
471
  *
472
- * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
472
+ * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderBoardUserWins
473
473
  *
474
474
  * @param competition_id
475
475
  * @returns promise
@@ -487,7 +487,7 @@ declare class Competitions {
487
487
  /**
488
488
  * Get a leaderboard by a teams wins.
489
489
  *
490
- * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
490
+ * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderBoardTeamWins
491
491
  *
492
492
  * @param competition_id
493
493
  * @returns promise
@@ -496,11 +496,20 @@ declare class Competitions {
496
496
  /**
497
497
  * Get all leaderboards.
498
498
  *
499
- * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
499
+ * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderBoardTeamPoints
500
500
  *
501
501
  * @param competition_id
502
502
  * @returns promise
503
503
  */
504
504
  static allLeaderboards<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
505
+ /**
506
+ * Gets all the information about a competition for the current user.
507
+ *
508
+ * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderboardsAll
509
+ *
510
+ * @param competition_id
511
+ * @returns promise
512
+ */
513
+ static me<T>(competition_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
505
514
  }
506
515
  export default Competitions;
package/dist/esm/index.js CHANGED
@@ -30426,6 +30426,7 @@ var CompetitionRoutes = /** @class */ (function () {
30426
30426
  userWinsLeaderboard: { url: '/competitions/{competition_id}/userWinsLeaderboard', method: HTTP_METHODS.GET },
30427
30427
  teamWinsLeaderboard: { url: '/competitions/{competition_id}/teamWinsLeaderboard', method: HTTP_METHODS.GET },
30428
30428
  allLeaderboards: { url: '/competitions/{competition_id}/allLeaderboards', method: HTTP_METHODS.GET },
30429
+ me: { url: '/competitions/{competition_id}/me', method: HTTP_METHODS.GET },
30429
30430
  };
30430
30431
  return CompetitionRoutes;
30431
30432
  }());
@@ -31001,7 +31002,7 @@ var Competitions = /** @class */ (function () {
31001
31002
  /**
31002
31003
  * Get a leaderboard by a users wins.
31003
31004
  *
31004
- * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
31005
+ * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderBoardUserWins
31005
31006
  *
31006
31007
  * @param competition_id
31007
31008
  * @returns promise
@@ -31023,7 +31024,7 @@ var Competitions = /** @class */ (function () {
31023
31024
  /**
31024
31025
  * Get a leaderboard by a teams wins.
31025
31026
  *
31026
- * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
31027
+ * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderBoardTeamWins
31027
31028
  *
31028
31029
  * @param competition_id
31029
31030
  * @returns promise
@@ -31034,7 +31035,7 @@ var Competitions = /** @class */ (function () {
31034
31035
  /**
31035
31036
  * Get all leaderboards.
31036
31037
  *
31037
- * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionUserList
31038
+ * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderBoardTeamPoints
31038
31039
  *
31039
31040
  * @param competition_id
31040
31041
  * @returns promise
@@ -31042,6 +31043,17 @@ var Competitions = /** @class */ (function () {
31042
31043
  Competitions.allLeaderboards = function (competition_id, params) {
31043
31044
  return Requests.processRoute(CompetitionRoutes.routes.allLeaderboards, {}, { competition_id: competition_id }, params);
31044
31045
  };
31046
+ /**
31047
+ * Gets all the information about a competition for the current user.
31048
+ *
31049
+ * @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderboardsAll
31050
+ *
31051
+ * @param competition_id
31052
+ * @returns promise
31053
+ */
31054
+ Competitions.me = function (competition_id, params) {
31055
+ return Requests.processRoute(CompetitionRoutes.routes.me, {}, { competition_id: competition_id }, params);
31056
+ };
31045
31057
  return Competitions;
31046
31058
  }());
31047
31059