glitch-javascript-sdk 1.6.3 → 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 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
 
@@ -25085,6 +25102,7 @@ var FunnelRoutes = /** @class */ (function () {
25085
25102
  daily: { url: '/funnels/daily', method: HTTP_METHODS.GET },
25086
25103
  monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
25087
25104
  yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
25105
+ gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
25088
25106
  };
25089
25107
  return FunnelRoutes;
25090
25108
  }());
@@ -25168,6 +25186,17 @@ var Funnel = /** @class */ (function () {
25168
25186
  Funnel.yearly = function (params) {
25169
25187
  return Requests.processRoute(FunnelRoutes.routes.yearly, undefined, undefined, params);
25170
25188
  };
25189
+ /**
25190
+ * Get gamified funnel metrics with recommended targets, scores, and ranks.
25191
+ *
25192
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_gamify
25193
+ *
25194
+ * @param params Query parameters (title_id, community_id, start_date, end_date)
25195
+ * @returns Promise with the gamified funnel data
25196
+ */
25197
+ Funnel.gamify = function (params) {
25198
+ return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
25199
+ };
25171
25200
  return Funnel;
25172
25201
  }());
25173
25202