glitch-javascript-sdk 2.8.0 → 2.8.1

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
@@ -5666,6 +5666,15 @@ declare class Newsletters {
5666
5666
  * Permanently delete a subscriber from the system (Admin only).
5667
5667
  */
5668
5668
  static deleteSubscriber<T>(id: string): AxiosPromise<Response<T>>;
5669
+ /**
5670
+ * Join the distribution platform waitlist for indie developers.
5671
+ *
5672
+ * @see https://api.glitch.fun/api/documentation#/Newsletters/joinDistributionWaitlist
5673
+ *
5674
+ * @param data { name: string, email: string, game: string, team_size: string, revenue_goal: string }
5675
+ * @returns Promise
5676
+ */
5677
+ static joinDistributionWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
5669
5678
  }
5670
5679
 
5671
5680
  declare class PlayTests {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "2.8.0",
3
+ "version": "2.8.1",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -161,7 +161,17 @@ class Newsletters {
161
161
  return Requests.processRoute(NewslettersRoutes.routes.deleteSubscriber, undefined, { id });
162
162
  }
163
163
 
164
-
164
+ /**
165
+ * Join the distribution platform waitlist for indie developers.
166
+ *
167
+ * @see https://api.glitch.fun/api/documentation#/Newsletters/joinDistributionWaitlist
168
+ *
169
+ * @param data { name: string, email: string, game: string, team_size: string, revenue_goal: string }
170
+ * @returns Promise
171
+ */
172
+ public static joinDistributionWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
173
+ return Requests.processRoute(NewslettersRoutes.routes.joinDistributionWaitlist, data, undefined, params);
174
+ }
165
175
 
166
176
  }
167
177
 
@@ -29,6 +29,8 @@ class NewslettersRoutes {
29
29
  viewSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.GET },
30
30
  updateSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.PUT },
31
31
  deleteSubscriber: { url: '/admin/newsletters/subscribers/{id}', method: HTTP_METHODS.DELETE },
32
+ joinDistributionWaitlist: { url: '/newsletters/joinDistributionWaitlist', method: HTTP_METHODS.POST },
33
+
32
34
  };
33
35
 
34
36
  }