glitch-javascript-sdk 1.2.1 → 1.2.3

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.
@@ -500,5 +500,15 @@ declare class Campaigns {
500
500
  * @returns promise
501
501
  */
502
502
  static resendAcceptanceEmail<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
503
+ /**
504
+ * Pay the influencer a custom amount for the campaign.
505
+ *
506
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/payInfluencer
507
+ *
508
+ * @param campaign_id The id fo the campaign to retrieve.
509
+ *
510
+ * @returns promise
511
+ */
512
+ static payInfluencer<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
503
513
  }
504
514
  export default Campaigns;
package/dist/esm/index.js CHANGED
@@ -7010,7 +7010,7 @@ var Communities = /** @class */ (function () {
7010
7010
  * @returns Promise
7011
7011
  */
7012
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);
7013
+ return Requests.processRoute(CommunitiesRoute.routes.populateEmailTemplate, data, { community_id: community_id, template_id: template_id }, params);
7014
7014
  };
7015
7015
  return Communities;
7016
7016
  }());
@@ -9310,6 +9310,7 @@ var CampaignsRoute = /** @class */ (function () {
9310
9310
  generateContractFromInvite: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/contract', method: HTTP_METHODS.POST },
9311
9311
  sendContractWithDocusign: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/docusign', method: HTTP_METHODS.POST },
9312
9312
  resendAcceptanceEmail: { url: '/campaigns/{campaign_id}/influencers/{user_id}/resendInvite', method: HTTP_METHODS.POST },
9313
+ payInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/payInfluencer', method: HTTP_METHODS.POST },
9313
9314
  };
9314
9315
  return CampaignsRoute;
9315
9316
  }());
@@ -9922,6 +9923,18 @@ var Campaigns = /** @class */ (function () {
9922
9923
  Campaigns.resendAcceptanceEmail = function (campaign_id, user_id, data, params) {
9923
9924
  return Requests.processRoute(CampaignsRoute.routes.resendAcceptanceEmail, data, { campaign_id: campaign_id, user_id: user_id }, params);
9924
9925
  };
9926
+ /**
9927
+ * Pay the influencer a custom amount for the campaign.
9928
+ *
9929
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/payInfluencer
9930
+ *
9931
+ * @param campaign_id The id fo the campaign to retrieve.
9932
+ *
9933
+ * @returns promise
9934
+ */
9935
+ Campaigns.payInfluencer = function (campaign_id, user_id, data, params) {
9936
+ return Requests.processRoute(CampaignsRoute.routes.payInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
9937
+ };
9925
9938
  return Campaigns;
9926
9939
  }());
9927
9940