glitch-javascript-sdk 1.2.0 → 1.2.1
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 +13 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Communities.d.ts +10 -0
- package/dist/esm/index.js +13 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/api/Communities.ts +14 -0
- package/src/routes/CommunitiesRoute.ts +1 -1
|
@@ -338,5 +338,15 @@ declare class Communities {
|
|
|
338
338
|
* @returns promise
|
|
339
339
|
*/
|
|
340
340
|
static deleteEmailTemplate<T>(community_id: string, template_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
341
|
+
/**
|
|
342
|
+
* Populates an email template for the community that will replace the platholders with the data provided.
|
|
343
|
+
*
|
|
344
|
+
* @see https://api.glitch.fun/api/documentation#/Community%20Route/newCommunityResourceStorage
|
|
345
|
+
*
|
|
346
|
+
* @param data The data to be passed when creating a community.
|
|
347
|
+
*
|
|
348
|
+
* @returns Promise
|
|
349
|
+
*/
|
|
350
|
+
static populateEmailTemplate<T>(community_id: string, template_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
341
351
|
}
|
|
342
352
|
export default Communities;
|
package/dist/esm/index.js
CHANGED
|
@@ -6581,6 +6581,7 @@ var CommunitiesRoute = /** @class */ (function () {
|
|
|
6581
6581
|
viewEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}', method: HTTP_METHODS.GET },
|
|
6582
6582
|
updateEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}', method: HTTP_METHODS.PUT },
|
|
6583
6583
|
deleteEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}', method: HTTP_METHODS.DELETE },
|
|
6584
|
+
populateEmailTemplate: { url: '/communities/{community_id}/emails/templates/{template_id}/populate', method: HTTP_METHODS.POST },
|
|
6584
6585
|
};
|
|
6585
6586
|
return CommunitiesRoute;
|
|
6586
6587
|
}());
|
|
@@ -6999,6 +7000,18 @@ var Communities = /** @class */ (function () {
|
|
|
6999
7000
|
Communities.deleteEmailTemplate = function (community_id, template_id, params) {
|
|
7000
7001
|
return Requests.processRoute(CommunitiesRoute.routes.deleteEmailTemplate, {}, { community_id: community_id, template_id: template_id });
|
|
7001
7002
|
};
|
|
7003
|
+
/**
|
|
7004
|
+
* Populates an email template for the community that will replace the platholders with the data provided.
|
|
7005
|
+
*
|
|
7006
|
+
* @see https://api.glitch.fun/api/documentation#/Community%20Route/newCommunityResourceStorage
|
|
7007
|
+
*
|
|
7008
|
+
* @param data The data to be passed when creating a community.
|
|
7009
|
+
*
|
|
7010
|
+
* @returns Promise
|
|
7011
|
+
*/
|
|
7012
|
+
Communities.populateEmailTemplate = function (community_id, template_id, data, params) {
|
|
7013
|
+
return Requests.processRoute(CommunitiesRoute.routes.createEmailTemplate, data, { community_id: community_id, template_id: template_id }, params);
|
|
7014
|
+
};
|
|
7002
7015
|
return Communities;
|
|
7003
7016
|
}());
|
|
7004
7017
|
|