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/index.d.ts CHANGED
@@ -2002,6 +2002,14 @@ declare class Utility {
2002
2002
  * @returns promise
2003
2003
  */
2004
2004
  static listEthnicities<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
2005
+ /**
2006
+ * Get all the game types available on the platform.
2007
+ *
2008
+ * @see https://api.glitch.fun/api/documentation#/Utility%20Route/getUtilTypes
2009
+ *
2010
+ * @returns promise
2011
+ */
2012
+ static listTypes<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
2005
2013
  }
2006
2014
 
2007
2015
  declare class Tips {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "0.8.9",
3
+ "version": "0.9.0",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -60,6 +60,17 @@ class Utility {
60
60
  return Requests.processRoute(UtilityRoutes.routes.ethnicities, undefined, undefined, params);
61
61
  }
62
62
 
63
+ /**
64
+ * Get all the game types available on the platform.
65
+ *
66
+ * @see https://api.glitch.fun/api/documentation#/Utility%20Route/getUtilTypes
67
+ *
68
+ * @returns promise
69
+ */
70
+ public static listTypes<T>(params?: Record<string, any>) : AxiosPromise<Response<T>> {
71
+ return Requests.processRoute(UtilityRoutes.routes.types, undefined, undefined, params);
72
+ }
73
+
63
74
  }
64
75
 
65
76
  export default Utility;
@@ -9,6 +9,7 @@ class UtilityRoutes {
9
9
  countries: { url: '/util/countries', method: HTTP_METHODS.GET },
10
10
  genders: { url: '/util/genders', method: HTTP_METHODS.GET },
11
11
  ethnicities : { url: '/util/ethnicities', method: HTTP_METHODS.GET },
12
+ types : { url: '/util/types', method: HTTP_METHODS.GET },
12
13
  };
13
14
 
14
15
  }