glitch-javascript-sdk 1.2.8 → 1.2.9

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/index.d.ts CHANGED
@@ -997,7 +997,7 @@ declare class Communities {
997
997
  * @param params Query parameters.
998
998
  * @returns Promise
999
999
  */
1000
- static listNewsletters<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
1000
+ static listNewsletters<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
1001
1001
  /**
1002
1002
  * Create a new newsletter for a community.
1003
1003
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.2.8",
3
+ "version": "1.2.9",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -497,8 +497,8 @@ class Communities {
497
497
  * @param params Query parameters.
498
498
  * @returns Promise
499
499
  */
500
- public static listNewsletters<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
501
- return Requests.processRoute(CommunitiesRoute.routes.listNewsletters, undefined, { community_id }, params);
500
+ public static listNewsletters<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
501
+ return Requests.processRoute(CommunitiesRoute.routes.listNewsletters, undefined, undefined, params);
502
502
  }
503
503
 
504
504
  /**
@@ -38,7 +38,7 @@ class CommunitiesRoute {
38
38
  populateEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}/populate', method: HTTP_METHODS.POST },
39
39
 
40
40
  // Newsletters
41
- listNewsletters: { url: '/communities/{community_id}/newsletters', method: HTTP_METHODS.GET },
41
+ listNewsletters: { url: '/communities/newsletters', method: HTTP_METHODS.GET },
42
42
  createNewsletter: { url: '/communities/{community_id}/newsletters', method: HTTP_METHODS.POST },
43
43
  viewNewsletter: { url: '/communities/{community_id}/newsletters/{newsletter_id}', method: HTTP_METHODS.GET },
44
44
  updateNewsletter: { url: '/communities/{community_id}/newsletters/{newsletter_id}', method: HTTP_METHODS.PUT },