glitch-javascript-sdk 1.0.6 → 1.0.7
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 +1 -0
|
@@ -57,6 +57,14 @@ declare class Campaigns {
|
|
|
57
57
|
* @returns promise
|
|
58
58
|
*/
|
|
59
59
|
static getLedger<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
60
|
+
/**
|
|
61
|
+
* Get the post associated with the campaign.
|
|
62
|
+
*
|
|
63
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignLedger
|
|
64
|
+
*
|
|
65
|
+
* @returns promise
|
|
66
|
+
*/
|
|
67
|
+
static getPosts<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
60
68
|
/**
|
|
61
69
|
* Retrieve recommended influencers for a campaign.
|
|
62
70
|
*
|
package/dist/esm/index.js
CHANGED
|
@@ -9071,6 +9071,7 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
9071
9071
|
updateCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
|
|
9072
9072
|
deleteCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
|
|
9073
9073
|
getLedger: { url: '/campaigns/{campaign_id}/ledger', method: HTTP_METHODS.GET },
|
|
9074
|
+
getPosts: { url: '/campaigns/{campaign_id}/posts', method: HTTP_METHODS.GET },
|
|
9074
9075
|
listCampaignLinks: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.GET },
|
|
9075
9076
|
createCampaignLink: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.POST },
|
|
9076
9077
|
getCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.GET },
|
|
@@ -9183,6 +9184,16 @@ var Campaigns = /** @class */ (function () {
|
|
|
9183
9184
|
Campaigns.getLedger = function (campaign_id, params) {
|
|
9184
9185
|
return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, { campaign_id: campaign_id }, params);
|
|
9185
9186
|
};
|
|
9187
|
+
/**
|
|
9188
|
+
* Get the post associated with the campaign.
|
|
9189
|
+
*
|
|
9190
|
+
* @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignLedger
|
|
9191
|
+
*
|
|
9192
|
+
* @returns promise
|
|
9193
|
+
*/
|
|
9194
|
+
Campaigns.getPosts = function (campaign_id, params) {
|
|
9195
|
+
return Requests.processRoute(CampaignsRoute.routes.getPosts, undefined, { campaign_id: campaign_id }, params);
|
|
9196
|
+
};
|
|
9186
9197
|
/**
|
|
9187
9198
|
* Retrieve recommended influencers for a campaign.
|
|
9188
9199
|
*
|