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/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
package/src/api/Utility.ts
CHANGED
|
@@ -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
|
}
|