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/cjs/index.js +3 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Communities.d.ts +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/Communities.ts +2 -2
- package/src/routes/CommunitiesRoute.ts +1 -1
|
@@ -355,7 +355,7 @@ declare class Communities {
|
|
|
355
355
|
* @param params Query parameters.
|
|
356
356
|
* @returns Promise
|
|
357
357
|
*/
|
|
358
|
-
static listNewsletters<T>(
|
|
358
|
+
static listNewsletters<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
359
359
|
/**
|
|
360
360
|
* Create a new newsletter for a community.
|
|
361
361
|
*
|
package/dist/esm/index.js
CHANGED
|
@@ -6583,7 +6583,7 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
6583
6583
|
deleteEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}', method: HTTP_METHODS.DELETE },
|
|
6584
6584
|
populateEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}/populate', method: HTTP_METHODS.POST },
|
|
6585
6585
|
// Newsletters
|
|
6586
|
-
listNewsletters: { url: '/communities/
|
|
6586
|
+
listNewsletters: { url: '/communities/newsletters', method: HTTP_METHODS.GET },
|
|
6587
6587
|
createNewsletter: { url: '/communities/{community_id}/newsletters', method: HTTP_METHODS.POST },
|
|
6588
6588
|
viewNewsletter: { url: '/communities/{community_id}/newsletters/{newsletter_id}', method: HTTP_METHODS.GET },
|
|
6589
6589
|
updateNewsletter: { url: '/communities/{community_id}/newsletters/{newsletter_id}', method: HTTP_METHODS.PUT },
|
|
@@ -7044,8 +7044,8 @@ var Communities = /** @class */ (function () {
|
|
|
7044
7044
|
* @param params Query parameters.
|
|
7045
7045
|
* @returns Promise
|
|
7046
7046
|
*/
|
|
7047
|
-
Communities.listNewsletters = function (
|
|
7048
|
-
return Requests.processRoute(CommunitiesRoute.routes.listNewsletters, undefined,
|
|
7047
|
+
Communities.listNewsletters = function (params) {
|
|
7048
|
+
return Requests.processRoute(CommunitiesRoute.routes.listNewsletters, undefined, undefined, params);
|
|
7049
7049
|
};
|
|
7050
7050
|
/**
|
|
7051
7051
|
* Create a new newsletter for a community.
|