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.
@@ -0,0 +1,7 @@
1
+ import Route from "./interface";
2
+ declare class RecordingsRoute {
3
+ static routes: {
4
+ [key: string]: Route;
5
+ };
6
+ }
7
+ export default RecordingsRoute;
@@ -0,0 +1,7 @@
1
+ import Route from "./interface";
2
+ declare class TeamsRoute {
3
+ static routes: {
4
+ [key: string]: Route;
5
+ };
6
+ }
7
+ export default TeamsRoute;
@@ -0,0 +1,7 @@
1
+ import Route from "./interface";
2
+ declare class WaitlistRoutes {
3
+ static routes: {
4
+ [key: string]: Route;
5
+ };
6
+ }
7
+ export default WaitlistRoutes;
@@ -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?: object): AxiosPromise<Response<T>>;
49
+ static processRoute<T>(route: Route, data?: object, routeReplace?: {
50
+ [key: string]: any;
51
+ }): AxiosPromise<Response<T>>;
48
52
  }
49
53
  export default Requests;