glitch-javascript-sdk 1.1.9 → 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.
@@ -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;
@@ -73,5 +73,13 @@ declare class Influencers {
73
73
  * @returns promise
74
74
  */
75
75
  static deleteNote<T>(influencer_id: string, note_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
76
+ /**
77
+ * Get a list of contracts associated with an influencer.
78
+ *
79
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencers
80
+ *
81
+ * @returns promise
82
+ */
83
+ static listContracts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
76
84
  }
77
85
  export default Influencers;
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
 
@@ -10183,6 +10196,7 @@ var InfluencerRoutes = /** @class */ (function () {
10183
10196
  createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
10184
10197
  updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
10185
10198
  deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
10199
+ listContracts: { url: '/influencers/contracts', method: HTTP_METHODS.GET },
10186
10200
  };
10187
10201
  return InfluencerRoutes;
10188
10202
  }());
@@ -10280,6 +10294,16 @@ var Influencers = /** @class */ (function () {
10280
10294
  Influencers.deleteNote = function (influencer_id, note_id, data, params) {
10281
10295
  return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
10282
10296
  };
10297
+ /**
10298
+ * Get a list of contracts associated with an influencer.
10299
+ *
10300
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencers
10301
+ *
10302
+ * @returns promise
10303
+ */
10304
+ Influencers.listContracts = function (params) {
10305
+ return Requests.processRoute(InfluencerRoutes.routes.listContracts, undefined, undefined, params);
10306
+ };
10283
10307
  return Influencers;
10284
10308
  }());
10285
10309