glitch-javascript-sdk 0.8.9 → 0.9.0
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 +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Utility.d.ts +8 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Utility.ts +11 -0
- package/src/routes/UtilityRoutes.ts +1 -0
package/dist/cjs/index.js
CHANGED
|
@@ -21600,6 +21600,7 @@ var UtilityRoutes = /** @class */ (function () {
|
|
|
21600
21600
|
countries: { url: '/util/countries', method: HTTP_METHODS.GET },
|
|
21601
21601
|
genders: { url: '/util/genders', method: HTTP_METHODS.GET },
|
|
21602
21602
|
ethnicities: { url: '/util/ethnicities', method: HTTP_METHODS.GET },
|
|
21603
|
+
types: { url: '/util/types', method: HTTP_METHODS.GET },
|
|
21603
21604
|
};
|
|
21604
21605
|
return UtilityRoutes;
|
|
21605
21606
|
}());
|
|
@@ -21657,6 +21658,16 @@ var Utility = /** @class */ (function () {
|
|
|
21657
21658
|
Utility.listEthnicities = function (params) {
|
|
21658
21659
|
return Requests.processRoute(UtilityRoutes.routes.ethnicities, undefined, undefined, params);
|
|
21659
21660
|
};
|
|
21661
|
+
/**
|
|
21662
|
+
* Get all the game types available on the platform.
|
|
21663
|
+
*
|
|
21664
|
+
* @see https://api.glitch.fun/api/documentation#/Utility%20Route/getUtilTypes
|
|
21665
|
+
*
|
|
21666
|
+
* @returns promise
|
|
21667
|
+
*/
|
|
21668
|
+
Utility.listTypes = function (params) {
|
|
21669
|
+
return Requests.processRoute(UtilityRoutes.routes.types, undefined, undefined, params);
|
|
21670
|
+
};
|
|
21660
21671
|
return Utility;
|
|
21661
21672
|
}());
|
|
21662
21673
|
|