glitch-javascript-sdk 1.2.3 → 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.
@@ -510,5 +510,13 @@ declare class Campaigns {
510
510
  * @returns promise
511
511
  */
512
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>>;
513
521
  }
514
522
  export default Campaigns;
package/dist/esm/index.js CHANGED
@@ -9311,6 +9311,7 @@ var CampaignsRoute = /** @class */ (function () {
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
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 },
9314
9315
  };
9315
9316
  return CampaignsRoute;
9316
9317
  }());
@@ -9935,6 +9936,16 @@ var Campaigns = /** @class */ (function () {
9935
9936
  Campaigns.payInfluencer = function (campaign_id, user_id, data, params) {
9936
9937
  return Requests.processRoute(CampaignsRoute.routes.payInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
9937
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
+ };
9938
9949
  return Campaigns;
9939
9950
  }());
9940
9951