glitch-javascript-sdk 1.2.8 → 1.3.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
@@ -19767,7 +19767,7 @@ var CommunitiesRoute = /** @class */ (function () {
19767
19767
  deleteEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}', method: HTTP_METHODS.DELETE },
19768
19768
  populateEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}/populate', method: HTTP_METHODS.POST },
19769
19769
  // Newsletters
19770
- listNewsletters: { url: '/communities/{community_id}/newsletters', method: HTTP_METHODS.GET },
19770
+ listNewsletters: { url: '/communities/newsletters', method: HTTP_METHODS.GET },
19771
19771
  createNewsletter: { url: '/communities/{community_id}/newsletters', method: HTTP_METHODS.POST },
19772
19772
  viewNewsletter: { url: '/communities/{community_id}/newsletters/{newsletter_id}', method: HTTP_METHODS.GET },
19773
19773
  updateNewsletter: { url: '/communities/{community_id}/newsletters/{newsletter_id}', method: HTTP_METHODS.PUT },
@@ -20228,8 +20228,8 @@ var Communities = /** @class */ (function () {
20228
20228
  * @param params Query parameters.
20229
20229
  * @returns Promise
20230
20230
  */
20231
- Communities.listNewsletters = function (community_id, params) {
20232
- return Requests.processRoute(CommunitiesRoute.routes.listNewsletters, undefined, { community_id: community_id }, params);
20231
+ Communities.listNewsletters = function (params) {
20232
+ return Requests.processRoute(CommunitiesRoute.routes.listNewsletters, undefined, undefined, params);
20233
20233
  };
20234
20234
  /**
20235
20235
  * Create a new newsletter for a community.
@@ -24091,6 +24091,33 @@ var GameShows = /** @class */ (function () {
24091
24091
  return GameShows;
24092
24092
  }());
24093
24093
 
24094
+ var NewslettersRoutes = /** @class */ (function () {
24095
+ function NewslettersRoutes() {
24096
+ }
24097
+ NewslettersRoutes.routes = {
24098
+ downloadMarketingChecklist: { url: '/newsletters/downloadMarketingChecklist', method: HTTP_METHODS.POST },
24099
+ };
24100
+ return NewslettersRoutes;
24101
+ }());
24102
+
24103
+ var Newsletters = /** @class */ (function () {
24104
+ function Newsletters() {
24105
+ }
24106
+ /**
24107
+ * Download the list of publictions, podcasts and blogs.
24108
+ *
24109
+ * @see https://api.glitch.fun/api/documentation#/Newsletters/downloadMarketingChecklists
24110
+ *
24111
+ * @param data The data to be passed when creating a team.
24112
+ *
24113
+ * @returns Promise
24114
+ */
24115
+ Newsletters.downloadMarketingChecklist = function (data, params) {
24116
+ return Requests.processRoute(NewslettersRoutes.routes.downloadMarketingChecklist, data, undefined, params);
24117
+ };
24118
+ return Newsletters;
24119
+ }());
24120
+
24094
24121
  var Parser = /** @class */ (function () {
24095
24122
  function Parser() {
24096
24123
  }
@@ -24512,7 +24539,8 @@ var Glitch = /** @class */ (function () {
24512
24539
  TipPackages: TipPackages,
24513
24540
  TipEmojis: TipEmojis,
24514
24541
  TipPackagePurchases: TipPackagePurchases,
24515
- Publications: Publications
24542
+ Publications: Publications,
24543
+ Newsletters: Newsletters
24516
24544
  };
24517
24545
  Glitch.util = {
24518
24546
  Requests: Requests,