glitch-javascript-sdk 1.2.2 → 1.2.4

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,23 @@ 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>>;
513
+ /**
514
+ * Get the ledger for this campaign.
515
+ *
516
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignPayouts
517
+ *
518
+ * @returns promise
519
+ */
520
+ static listPayouts<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
503
521
  }
504
522
  export default Campaigns;
package/dist/esm/index.js CHANGED
@@ -9310,6 +9310,8 @@ 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 },
9314
+ listPayouts: { url: '/campaigns/{campaign_id}/payouts', method: HTTP_METHODS.GET },
9313
9315
  };
9314
9316
  return CampaignsRoute;
9315
9317
  }());
@@ -9922,6 +9924,28 @@ var Campaigns = /** @class */ (function () {
9922
9924
  Campaigns.resendAcceptanceEmail = function (campaign_id, user_id, data, params) {
9923
9925
  return Requests.processRoute(CampaignsRoute.routes.resendAcceptanceEmail, data, { campaign_id: campaign_id, user_id: user_id }, params);
9924
9926
  };
9927
+ /**
9928
+ * Pay the influencer a custom amount for the campaign.
9929
+ *
9930
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/payInfluencer
9931
+ *
9932
+ * @param campaign_id The id fo the campaign to retrieve.
9933
+ *
9934
+ * @returns promise
9935
+ */
9936
+ Campaigns.payInfluencer = function (campaign_id, user_id, data, params) {
9937
+ return Requests.processRoute(CampaignsRoute.routes.payInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
9938
+ };
9939
+ /**
9940
+ * Get the ledger for this campaign.
9941
+ *
9942
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignPayouts
9943
+ *
9944
+ * @returns promise
9945
+ */
9946
+ Campaigns.listPayouts = function (campaign_id, params) {
9947
+ return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, { campaign_id: campaign_id }, params);
9948
+ };
9925
9949
  return Campaigns;
9926
9950
  }());
9927
9951