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/cjs/index.js +10 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Newsletters.d.ts +7 -0
- package/dist/esm/index.js +10 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/api/Newsletters.ts +9 -0
- package/src/routes/NewslettersRoutes.ts +1 -0
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
package/src/api/Newsletters.ts
CHANGED
|
@@ -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
|
}
|