glitch-javascript-sdk 1.6.4 → 1.6.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 +17 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Communities.d.ts +13 -0
- package/dist/esm/index.js +17 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +13 -0
- package/package.json +1 -1
- package/src/api/Communities.ts +23 -1
- package/src/routes/CommunitiesRoute.ts +5 -0
package/dist/cjs/index.js
CHANGED
|
@@ -19818,6 +19818,10 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
19818
19818
|
url: '/communities/{community_id}/newsletters/{newsletter_id}/reports/subscriber_trend',
|
|
19819
19819
|
method: HTTP_METHODS.GET
|
|
19820
19820
|
},
|
|
19821
|
+
exportNewsletterSubscribers: {
|
|
19822
|
+
url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers/export',
|
|
19823
|
+
method: HTTP_METHODS.POST
|
|
19824
|
+
},
|
|
19821
19825
|
// Campaigns
|
|
19822
19826
|
listCampaigns: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.GET },
|
|
19823
19827
|
createCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.POST },
|
|
@@ -20563,6 +20567,19 @@ var Communities = /** @class */ (function () {
|
|
|
20563
20567
|
return Requests.processRoute(CommunitiesRoute.routes.newsletterSubscriberTrend, undefined, // no body data
|
|
20564
20568
|
{ community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
20565
20569
|
};
|
|
20570
|
+
/**
|
|
20571
|
+
* Export subscribers for a specific newsletter.
|
|
20572
|
+
* The file is generated asynchronously on the server and
|
|
20573
|
+
* the user is emailed a link to download the file.
|
|
20574
|
+
*
|
|
20575
|
+
* @param community_id The ID of the community.
|
|
20576
|
+
* @param newsletter_id The ID of the newsletter.
|
|
20577
|
+
* @param data Export options (format: 'csv' or 'xlsx').
|
|
20578
|
+
* @returns Promise
|
|
20579
|
+
*/
|
|
20580
|
+
Communities.exportNewsletterSubscribers = function (community_id, newsletter_id, data, params) {
|
|
20581
|
+
return Requests.processRoute(CommunitiesRoute.routes.exportNewsletterSubscribers, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
20582
|
+
};
|
|
20566
20583
|
return Communities;
|
|
20567
20584
|
}());
|
|
20568
20585
|
|