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 CHANGED
@@ -19814,6 +19814,10 @@ var CommunitiesRoute = /** @class */ (function () {
19814
19814
  url: '/communities/{community_id}/newsletters/{newsletter_id}/reports/campaign',
19815
19815
  method: HTTP_METHODS.GET
19816
19816
  },
19817
+ newsletterSubscriberTrend: {
19818
+ url: '/communities/{community_id}/newsletters/{newsletter_id}/reports/subscriber_trend',
19819
+ method: HTTP_METHODS.GET
19820
+ },
19817
19821
  // Campaigns
19818
19822
  listCampaigns: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.GET },
19819
19823
  createCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.POST },
@@ -20548,6 +20552,17 @@ var Communities = /** @class */ (function () {
20548
20552
  Communities.newsletterCampaignReports = function (community_id, newsletter_id, params) {
20549
20553
  return Requests.processRoute(CommunitiesRoute.routes.newsletterCampaignReports, undefined, { community_id: community_id, newsletter_id: newsletter_id }, params);
20550
20554
  };
20555
+ /**
20556
+ * Retrieves daily subscriber trend data for the specified newsletter.
20557
+ *
20558
+ * @param community_id The UUID of the community
20559
+ * @param newsletter_id The UUID of the newsletter
20560
+ * @param params Optional date-range filter (start_date, end_date, etc.)
20561
+ */
20562
+ Communities.newsletterSubscriberTrend = function (community_id, newsletter_id, params) {
20563
+ return Requests.processRoute(CommunitiesRoute.routes.newsletterSubscriberTrend, undefined, // no body data
20564
+ { community_id: community_id, newsletter_id: newsletter_id }, params);
20565
+ };
20551
20566
  return Communities;
20552
20567
  }());
20553
20568