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 CHANGED
@@ -19822,6 +19822,10 @@ var CommunitiesRoute = /** @class */ (function () {
19822
19822
  url: '/communities/{community_id}/newsletters/{newsletter_id}/subscribers/export',
19823
19823
  method: HTTP_METHODS.POST
19824
19824
  },
19825
+ importGameInstalls: {
19826
+ url: '/communities/{community_id}/newsletters/{newsletter_id}/import_game_installs',
19827
+ method: HTTP_METHODS.POST
19828
+ },
19825
19829
  // Campaigns
19826
19830
  listCampaigns: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.GET },
19827
19831
  createCampaign: { url: '/communities/{community_id}/newsletters/{newsletter_id}/campaigns', method: HTTP_METHODS.POST },
@@ -20580,6 +20584,17 @@ var Communities = /** @class */ (function () {
20580
20584
  Communities.exportNewsletterSubscribers = function (community_id, newsletter_id, data, params) {
20581
20585
  return Requests.processRoute(CommunitiesRoute.routes.exportNewsletterSubscribers, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
20582
20586
  };
20587
+ /**
20588
+ * Import game installs from a game title installations to a newsletter
20589
+ *
20590
+ * @param community_id The ID of the community.
20591
+ * @param newsletter_id The ID of the newsletter.
20592
+ * @param data Export options (format: 'csv' or 'xlsx').
20593
+ * @returns Promise
20594
+ */
20595
+ Communities.importGameInstalls = function (community_id, newsletter_id, data, params) {
20596
+ return Requests.processRoute(CommunitiesRoute.routes.importGameInstalls, data, { community_id: community_id, newsletter_id: newsletter_id }, params);
20597
+ };
20583
20598
  return Communities;
20584
20599
  }());
20585
20600