glitch-javascript-sdk 2.3.9 → 2.4.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
@@ -5226,6 +5226,13 @@ declare class Newsletters {
5226
5226
  * @returns Promise
5227
5227
  */
5228
5228
  static downloadMarketingChecklist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
5229
+ /**
5230
+ * Join the marketing course waitlist.
5231
+ *
5232
+ * @param data { name, email, game, topics[] }
5233
+ * @returns Promise
5234
+ */
5235
+ static joinCourseWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
5229
5236
  }
5230
5237
 
5231
5238
  declare class PlayTests {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.3.9",
3
+ "version": "2.4.0",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -21,6 +21,15 @@ class Newsletters {
21
21
  }
22
22
 
23
23
 
24
+ /**
25
+ * Join the marketing course waitlist.
26
+ *
27
+ * @param data { name, email, game, topics[] }
28
+ * @returns Promise
29
+ */
30
+ public static joinCourseWaitlist<T>(data : object, params?: Record<string, any>) : AxiosPromise<Response<T>> {
31
+ return Requests.processRoute(NewslettersRoutes.routes.joinCourseWaitlist, data, undefined, params);
32
+ }
24
33
 
25
34
 
26
35
  }
@@ -5,6 +5,7 @@ class NewslettersRoutes {
5
5
 
6
6
  public static routes: { [key: string]: Route } = {
7
7
  downloadMarketingChecklist: { url: '/newsletters/downloadMarketingChecklist', method: HTTP_METHODS.POST },
8
+ joinCourseWaitlist: { url: '/newsletters/joinCourseWaitlist', method: HTTP_METHODS.POST },
8
9
  };
9
10
 
10
11
  }