glitch-javascript-sdk 1.7.4 → 1.7.5
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 +15 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Communities.d.ts +11 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/api/Communities.ts +35 -13
- package/src/routes/CommunitiesRoute.ts +4 -0
|
@@ -594,5 +594,16 @@ declare class Communities {
|
|
|
594
594
|
static exportNewsletterSubscribers<T>(community_id: string, newsletter_id: string, data: {
|
|
595
595
|
format: 'csv' | 'xlsx';
|
|
596
596
|
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
597
|
+
/**
|
|
598
|
+
* Import game installs from a game title installations to a newsletter
|
|
599
|
+
*
|
|
600
|
+
* @param community_id The ID of the community.
|
|
601
|
+
* @param newsletter_id The ID of the newsletter.
|
|
602
|
+
* @param data Export options (format: 'csv' or 'xlsx').
|
|
603
|
+
* @returns Promise
|
|
604
|
+
*/
|
|
605
|
+
static importGameInstalls<T>(community_id: string, newsletter_id: string, data: {
|
|
606
|
+
format: 'csv' | 'xlsx';
|
|
607
|
+
}, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
597
608
|
}
|
|
598
609
|
export default Communities;
|
package/dist/esm/index.js
CHANGED
|
@@ -6638,6 +6638,10 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
6638
6638
|
url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers/export',
|
|
6639
6639
|
method: HTTP_METHODS.POST
|
|
6640
6640
|
},
|
|
6641
|
+
importGameInstalls: {
|
|
6642
|
+
url: '/communities/{community_id}/newsletters/{newsletter_id}/import_game_installs',
|
|
6643
|
+
method: HTTP_METHODS.POST
|
|
6644
|
+
},
|
|
6641
6645
|
// Campaigns
|
|
6642
6646
|
listCampaigns: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.GET },
|
|
6643
6647
|
createCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.POST },
|
|
@@ -7396,6 +7400,17 @@ var Communities = /** @class */ (function () {
|
|
|
7396
7400
|
Communities.exportNewsletterSubscribers = function (community_id, newsletter_id, data, params) {
|
|
7397
7401
|
return Requests.processRoute(CommunitiesRoute.routes.exportNewsletterSubscribers, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
7398
7402
|
};
|
|
7403
|
+
/**
|
|
7404
|
+
* Import game installs from a game title installations to a newsletter
|
|
7405
|
+
*
|
|
7406
|
+
* @param community_id The ID of the community.
|
|
7407
|
+
* @param newsletter_id The ID of the newsletter.
|
|
7408
|
+
* @param data Export options (format: 'csv' or 'xlsx').
|
|
7409
|
+
* @returns Promise
|
|
7410
|
+
*/
|
|
7411
|
+
Communities.importGameInstalls = function (community_id, newsletter_id, data, params) {
|
|
7412
|
+
return Requests.processRoute(CommunitiesRoute.routes.importGameInstalls, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
7413
|
+
};
|
|
7399
7414
|
return Communities;
|
|
7400
7415
|
}());
|
|
7401
7416
|
|