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
|
@@ -41,5 +41,13 @@ declare class Utility {
|
|
|
41
41
|
* @returns promise
|
|
42
42
|
*/
|
|
43
43
|
static listEthnicities<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
44
|
+
/**
|
|
45
|
+
* Get all the game types available on the platform.
|
|
46
|
+
*
|
|
47
|
+
* @see https://api.glitch.fun/api/documentation#/Utility%20Route/getUtilTypes
|
|
48
|
+
*
|
|
49
|
+
* @returns promise
|
|
50
|
+
*/
|
|
51
|
+
static listTypes<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
44
52
|
}
|
|
45
53
|
export default Utility;
|
package/dist/esm/index.js
CHANGED
|
@@ -8416,6 +8416,7 @@ var UtilityRoutes = /** @class */ (function () {
|
|
|
8416
8416
|
countries: { url: '/util/countries', method: HTTP_METHODS.GET },
|
|
8417
8417
|
genders: { url: '/util/genders', method: HTTP_METHODS.GET },
|
|
8418
8418
|
ethnicities: { url: '/util/ethnicities', method: HTTP_METHODS.GET },
|
|
8419
|
+
types: { url: '/util/types', method: HTTP_METHODS.GET },
|
|
8419
8420
|
};
|
|
8420
8421
|
return UtilityRoutes;
|
|
8421
8422
|
}());
|
|
@@ -8473,6 +8474,16 @@ var Utility = /** @class */ (function () {
|
|
|
8473
8474
|
Utility.listEthnicities = function (params) {
|
|
8474
8475
|
return Requests.processRoute(UtilityRoutes.routes.ethnicities, undefined, undefined, params);
|
|
8475
8476
|
};
|
|
8477
|
+
/**
|
|
8478
|
+
* Get all the game types available on the platform.
|
|
8479
|
+
*
|
|
8480
|
+
* @see https://api.glitch.fun/api/documentation#/Utility%20Route/getUtilTypes
|
|
8481
|
+
*
|
|
8482
|
+
* @returns promise
|
|
8483
|
+
*/
|
|
8484
|
+
Utility.listTypes = function (params) {
|
|
8485
|
+
return Requests.processRoute(UtilityRoutes.routes.types, undefined, undefined, params);
|
|
8486
|
+
};
|
|
8476
8487
|
return Utility;
|
|
8477
8488
|
}());
|
|
8478
8489
|
|