glitch-javascript-sdk 2.5.3 → 2.5.4
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 +18 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Newsletters.d.ts +12 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +12 -0
- package/package.json +1 -1
- package/src/api/Newsletters.ts +21 -3
- package/src/routes/NewslettersRoutes.ts +9 -7
package/dist/index.d.ts
CHANGED
|
@@ -5383,6 +5383,18 @@ declare class Newsletters {
|
|
|
5383
5383
|
* @returns Promise
|
|
5384
5384
|
*/
|
|
5385
5385
|
static joinCourseWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
5386
|
+
/**
|
|
5387
|
+
* Join the raffle feature waitlist.
|
|
5388
|
+
*
|
|
5389
|
+
* @param data { name, email, game, prizes[], interest_in_playtesters, launch_timeline, target_wishlist_count }
|
|
5390
|
+
*/
|
|
5391
|
+
static joinRaffleWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
5392
|
+
/**
|
|
5393
|
+
* Join the Discord Marketplace waitlist.
|
|
5394
|
+
*
|
|
5395
|
+
* @param data { name, email, game, categories[] }
|
|
5396
|
+
*/
|
|
5397
|
+
static joinDiscordMarketplaceWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
5386
5398
|
}
|
|
5387
5399
|
|
|
5388
5400
|
declare class PlayTests {
|
package/package.json
CHANGED
package/src/api/Newsletters.ts
CHANGED
|
@@ -15,22 +15,40 @@ class Newsletters {
|
|
|
15
15
|
*
|
|
16
16
|
* @returns Promise
|
|
17
17
|
*/
|
|
18
|
-
public static downloadMarketingChecklist<T>(data
|
|
18
|
+
public static downloadMarketingChecklist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
19
19
|
|
|
20
20
|
return Requests.processRoute(NewslettersRoutes.routes.downloadMarketingChecklist, data, undefined, params);
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
/**
|
|
25
25
|
* Join the marketing course waitlist.
|
|
26
26
|
*
|
|
27
27
|
* @param data { name, email, game, topics[] }
|
|
28
28
|
* @returns Promise
|
|
29
29
|
*/
|
|
30
|
-
public static joinCourseWaitlist<T>(data
|
|
30
|
+
public static joinCourseWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
31
31
|
return Requests.processRoute(NewslettersRoutes.routes.joinCourseWaitlist, data, undefined, params);
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
+
/**
|
|
35
|
+
* Join the raffle feature waitlist.
|
|
36
|
+
*
|
|
37
|
+
* @param data { name, email, game, prizes[], interest_in_playtesters, launch_timeline, target_wishlist_count }
|
|
38
|
+
*/
|
|
39
|
+
public static joinRaffleWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
40
|
+
return Requests.processRoute(NewslettersRoutes.routes.joinRaffleWaitlist, data, undefined, params);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Join the Discord Marketplace waitlist.
|
|
45
|
+
*
|
|
46
|
+
* @param data { name, email, game, categories[] }
|
|
47
|
+
*/
|
|
48
|
+
public static joinDiscordMarketplaceWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
49
|
+
return Requests.processRoute(NewslettersRoutes.routes.joinDiscordMarketplaceWaitlist, data, undefined, params);
|
|
50
|
+
}
|
|
51
|
+
|
|
34
52
|
|
|
35
53
|
}
|
|
36
54
|
|
|
@@ -2,12 +2,14 @@ import Route from "./interface";
|
|
|
2
2
|
import HTTP_METHODS from "../constants/HttpMethods";
|
|
3
3
|
|
|
4
4
|
class NewslettersRoutes {
|
|
5
|
-
|
|
6
|
-
public static routes: { [key: string]: Route } = {
|
|
7
|
-
downloadMarketingChecklist: { url: '/newsletters/downloadMarketingChecklist', method: HTTP_METHODS.POST },
|
|
8
|
-
joinCourseWaitlist: { url: '/newsletters/joinCourseWaitlist', method: HTTP_METHODS.POST },
|
|
9
|
-
};
|
|
10
5
|
|
|
11
|
-
}
|
|
6
|
+
public static routes: { [key: string]: Route } = {
|
|
7
|
+
downloadMarketingChecklist: { url: '/newsletters/downloadMarketingChecklist', method: HTTP_METHODS.POST },
|
|
8
|
+
joinCourseWaitlist: { url: '/newsletters/joinCourseWaitlist', method: HTTP_METHODS.POST },
|
|
9
|
+
joinRaffleWaitlist: { url: '/newsletters/joinRaffleWaitlist', method: HTTP_METHODS.POST },
|
|
10
|
+
joinDiscordMarketplaceWaitlist: { url: '/newsletters/joinDiscordMarketplaceWaitlist', method: HTTP_METHODS.POST },
|
|
11
|
+
};
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default NewslettersRoutes;
|