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.
- package/dist/cjs/index.js +14 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +10 -0
- package/dist/esm/index.js +14 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +10 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +14 -0
- package/src/api/Communities.ts +1 -1
- package/src/routes/CampaignsRoute.ts +3 -1
package/dist/cjs/index.js
CHANGED
|
@@ -20194,7 +20194,7 @@ var Communities = /** @class */ (function () {
|
|
|
20194
20194
|
* @returns Promise
|
|
20195
20195
|
*/
|
|
20196
20196
|
Communities.populateEmailTemplate = function (community_id, template_id, data, params) {
|
|
20197
|
-
return Requests.processRoute(CommunitiesRoute.routes.
|
|
20197
|
+
return Requests.processRoute(CommunitiesRoute.routes.populateEmailTemplate, data, { community_id: community_id, template_id: template_id }, params);
|
|
20198
20198
|
};
|
|
20199
20199
|
return Communities;
|
|
20200
20200
|
}());
|
|
@@ -22494,6 +22494,7 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
22494
22494
|
generateContractFromInvite: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/contract', method: HTTP_METHODS.POST },
|
|
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
|
+
payInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/payInfluencer', method: HTTP_METHODS.POST },
|
|
22497
22498
|
};
|
|
22498
22499
|
return CampaignsRoute;
|
|
22499
22500
|
}());
|
|
@@ -23106,6 +23107,18 @@ var Campaigns = /** @class */ (function () {
|
|
|
23106
23107
|
Campaigns.resendAcceptanceEmail = function (campaign_id, user_id, data, params) {
|
|
23107
23108
|
return Requests.processRoute(CampaignsRoute.routes.resendAcceptanceEmail, data, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
23108
23109
|
};
|
|
23110
|
+
/**
|
|
23111
|
+
* Pay the influencer a custom amount for the campaign.
|
|
23112
|
+
*
|
|
23113
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/payInfluencer
|
|
23114
|
+
*
|
|
23115
|
+
* @param campaign_id The id fo the campaign to retrieve.
|
|
23116
|
+
*
|
|
23117
|
+
* @returns promise
|
|
23118
|
+
*/
|
|
23119
|
+
Campaigns.payInfluencer = function (campaign_id, user_id, data, params) {
|
|
23120
|
+
return Requests.processRoute(CampaignsRoute.routes.payInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
|
|
23121
|
+
};
|
|
23109
23122
|
return Campaigns;
|
|
23110
23123
|
}());
|
|
23111
23124
|
|