glitch-javascript-sdk 1.5.8 → 1.6.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 +15 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Communities.d.ts +8 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Communities.ts +20 -0
- package/src/routes/CommunitiesRoute.ts +5 -0
|
@@ -573,5 +573,13 @@ declare class Communities {
|
|
|
573
573
|
* @returns Promise with campaign stats
|
|
574
574
|
*/
|
|
575
575
|
static newsletterCampaignReports<T>(community_id: string, newsletter_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
576
|
+
/**
|
|
577
|
+
* Retrieves daily subscriber trend data for the specified newsletter.
|
|
578
|
+
*
|
|
579
|
+
* @param community_id The UUID of the community
|
|
580
|
+
* @param newsletter_id The UUID of the newsletter
|
|
581
|
+
* @param params Optional date-range filter (start_date, end_date, etc.)
|
|
582
|
+
*/
|
|
583
|
+
static newsletterSubscriberTrend<T>(community_id: string, newsletter_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
576
584
|
}
|
|
577
585
|
export default Communities;
|
package/dist/esm/index.js
CHANGED
|
@@ -6630,6 +6630,10 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
6630
6630
|
url: '/communities/{community_id}/newsletters/{newsletter_id}/reports/campaign',
|
|
6631
6631
|
method: HTTP_METHODS.GET
|
|
6632
6632
|
},
|
|
6633
|
+
newsletterSubscriberTrend: {
|
|
6634
|
+
url: '/communities/{community_id}/newsletters/{newsletter_id}/reports/subscriber_trend',
|
|
6635
|
+
method: HTTP_METHODS.GET
|
|
6636
|
+
},
|
|
6633
6637
|
// Campaigns
|
|
6634
6638
|
listCampaigns: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.GET },
|
|
6635
6639
|
createCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.POST },
|
|
@@ -7364,6 +7368,17 @@ var Communities = /** @class */ (function () {
|
|
|
7364
7368
|
Communities.newsletterCampaignReports = function (community_id, newsletter_id, params) {
|
|
7365
7369
|
return Requests.processRoute(CommunitiesRoute.routes.newsletterCampaignReports, undefined, { community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
7366
7370
|
};
|
|
7371
|
+
/**
|
|
7372
|
+
* Retrieves daily subscriber trend data for the specified newsletter.
|
|
7373
|
+
*
|
|
7374
|
+
* @param community_id The UUID of the community
|
|
7375
|
+
* @param newsletter_id The UUID of the newsletter
|
|
7376
|
+
* @param params Optional date-range filter (start_date, end_date, etc.)
|
|
7377
|
+
*/
|
|
7378
|
+
Communities.newsletterSubscriberTrend = function (community_id, newsletter_id, params) {
|
|
7379
|
+
return Requests.processRoute(CommunitiesRoute.routes.newsletterSubscriberTrend, undefined, // no body data
|
|
7380
|
+
{ community_id: community_id, newsletter_id: newsletter_id }, params);
|
|
7381
|
+
};
|
|
7367
7382
|
return Communities;
|
|
7368
7383
|
}());
|
|
7369
7384
|
|