glitch-javascript-sdk 0.0.3 → 0.0.6
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 +0 -15714
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Competitions.d.ts +372 -0
- package/dist/esm/api/Events.d.ts +205 -0
- package/dist/esm/api/Teams.d.ts +179 -0
- package/dist/esm/api/Users.d.ts +53 -0
- package/dist/esm/api/Waitlist.d.ts +53 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/index.d.ts +7 -5
- package/dist/esm/index.js +0 -29938
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/RecordingRoute.d.ts +7 -0
- package/dist/esm/routes/TeamsRoute.d.ts +7 -0
- package/dist/esm/routes/WaitlistRoutes.d.ts +7 -0
- package/dist/esm/util/Requests.d.ts +5 -1
- package/dist/index.d.ts +813 -5
- package/package.json +2 -6
- package/src/api/Competitions.ts +483 -0
- package/src/api/Events.ts +306 -8
- package/src/api/Teams.ts +256 -0
- package/src/api/Users.ts +74 -0
- package/src/api/Waitlist.ts +78 -0
- package/src/api/index.ts +3 -1
- package/src/index.ts +7 -5
- package/src/routes/CompetitionRoute.ts +39 -0
- package/src/routes/EventsRoute.ts +18 -16
- package/src/routes/RecordingRoute.ts +16 -0
- package/src/routes/TeamsRoute.ts +26 -0
- package/src/routes/UserRoutes.ts +1 -1
- package/src/routes/WaitlistRoutes.ts +16 -0
- package/src/util/Requests.ts +54 -7
|
@@ -36,6 +36,8 @@ declare class Requests {
|
|
|
36
36
|
static post<T>(url: string, data: any): AxiosPromise<Response<T>>;
|
|
37
37
|
static put<T>(url: string, data: any): AxiosPromise<Response<T>>;
|
|
38
38
|
static delete<T>(url: string): AxiosPromise<Response<T>>;
|
|
39
|
+
static uploadFile<T>(url: string, filename: string, file: File, data?: any): AxiosPromise<Response<T>>;
|
|
40
|
+
static uploadBlob<T>(url: string, filename: string, blob: Blob, data?: any): AxiosPromise<Response<T>>;
|
|
39
41
|
/**
|
|
40
42
|
* The Route class contains the method and url, thereforce items can be
|
|
41
43
|
* automatically routed depending on the configuration.
|
|
@@ -44,6 +46,8 @@ declare class Requests {
|
|
|
44
46
|
* @param data
|
|
45
47
|
* @returns
|
|
46
48
|
*/
|
|
47
|
-
static processRoute<T>(route: Route, data?: object, routeReplace?:
|
|
49
|
+
static processRoute<T>(route: Route, data?: object, routeReplace?: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
}): AxiosPromise<Response<T>>;
|
|
48
52
|
}
|
|
49
53
|
export default Requests;
|