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.
- package/dist/cjs/index.js +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +8 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +11 -0
- package/src/routes/CampaignsRoute.ts +2 -1
package/dist/cjs/index.js
CHANGED
|
@@ -22495,6 +22495,7 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
22495
22495
|
sendContractWithDocusign: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/docusign', method: HTTP_METHODS.POST },
|
|
22496
22496
|
resendAcceptanceEmail: { url: '/campaigns/{campaign_id}/influencers/{user_id}/resendInvite', method: HTTP_METHODS.POST },
|
|
22497
22497
|
payInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/payInfluencer', method: HTTP_METHODS.POST },
|
|
22498
|
+
listPayouts: { url: '/campaigns/{campaign_id}/payouts', method: HTTP_METHODS.GET },
|
|
22498
22499
|
};
|
|
22499
22500
|
return CampaignsRoute;
|
|
22500
22501
|
}());
|
|
@@ -23119,6 +23120,16 @@ var Campaigns = /** @class */ (function () {
|
|
|
23119
23120
|
Campaigns.payInfluencer = function (campaign_id, user_id, data, params) {
|
|
23120
23121
|
return Requests.processRoute(CampaignsRoute.routes.payInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
23121
23122
|
};
|
|
23123
|
+
/**
|
|
23124
|
+
* Get the ledger for this campaign.
|
|
23125
|
+
*
|
|
23126
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignPayouts
|
|
23127
|
+
*
|
|
23128
|
+
* @returns promise
|
|
23129
|
+
*/
|
|
23130
|
+
Campaigns.listPayouts = function (campaign_id, params) {
|
|
23131
|
+
return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, { campaign_id: campaign_id }, params);
|
|
23132
|
+
};
|
|
23122
23133
|
return Campaigns;
|
|
23123
23134
|
}());
|
|
23124
23135
|
|