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.
- package/dist/cjs/index.js +15 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Competitions.d.ts +12 -3
- package/dist/esm/index.js +15 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -3
- package/package.json +1 -1
- package/src/api/Competitions.ts +15 -3
- package/src/routes/CompetitionRoute.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -16204,6 +16204,7 @@ var CompetitionRoutes = /** @class */ (function () {
|
|
|
16204
16204
|
userWinsLeaderboard: { url: '/competitions/{competition_id}/userWinsLeaderboard', method: HTTP_METHODS.GET },
|
|
16205
16205
|
teamWinsLeaderboard: { url: '/competitions/{competition_id}/teamWinsLeaderboard', method: HTTP_METHODS.GET },
|
|
16206
16206
|
allLeaderboards: { url: '/competitions/{competition_id}/allLeaderboards', method: HTTP_METHODS.GET },
|
|
16207
|
+
me: { url: '/competitions/{competition_id}/me', method: HTTP_METHODS.GET },
|
|
16207
16208
|
};
|
|
16208
16209
|
return CompetitionRoutes;
|
|
16209
16210
|
}());
|
|
@@ -16779,7 +16780,7 @@ var Competitions = /** @class */ (function () {
|
|
|
16779
16780
|
/**
|
|
16780
16781
|
* Get a leaderboard by a users wins.
|
|
16781
16782
|
*
|
|
16782
|
-
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/
|
|
16783
|
+
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderBoardUserWins
|
|
16783
16784
|
*
|
|
16784
16785
|
* @param competition_id
|
|
16785
16786
|
* @returns promise
|
|
@@ -16801,7 +16802,7 @@ var Competitions = /** @class */ (function () {
|
|
|
16801
16802
|
/**
|
|
16802
16803
|
* Get a leaderboard by a teams wins.
|
|
16803
16804
|
*
|
|
16804
|
-
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/
|
|
16805
|
+
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderBoardTeamWins
|
|
16805
16806
|
*
|
|
16806
16807
|
* @param competition_id
|
|
16807
16808
|
* @returns promise
|
|
@@ -16812,7 +16813,7 @@ var Competitions = /** @class */ (function () {
|
|
|
16812
16813
|
/**
|
|
16813
16814
|
* Get all leaderboards.
|
|
16814
16815
|
*
|
|
16815
|
-
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/
|
|
16816
|
+
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderBoardTeamPoints
|
|
16816
16817
|
*
|
|
16817
16818
|
* @param competition_id
|
|
16818
16819
|
* @returns promise
|
|
@@ -16820,6 +16821,17 @@ var Competitions = /** @class */ (function () {
|
|
|
16820
16821
|
Competitions.allLeaderboards = function (competition_id, params) {
|
|
16821
16822
|
return Requests.processRoute(CompetitionRoutes.routes.allLeaderboards, {}, { competition_id: competition_id }, params);
|
|
16822
16823
|
};
|
|
16824
|
+
/**
|
|
16825
|
+
* Gets all the information about a competition for the current user.
|
|
16826
|
+
*
|
|
16827
|
+
* @see https://api.glitch.fun/api/documentation#/Competitions%20Route/competitionLeaderboardsAll
|
|
16828
|
+
*
|
|
16829
|
+
* @param competition_id
|
|
16830
|
+
* @returns promise
|
|
16831
|
+
*/
|
|
16832
|
+
Competitions.me = function (competition_id, params) {
|
|
16833
|
+
return Requests.processRoute(CompetitionRoutes.routes.me, {}, { competition_id: competition_id }, params);
|
|
16834
|
+
};
|
|
16823
16835
|
return Competitions;
|
|
16824
16836
|
}());
|
|
16825
16837
|
|