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 CHANGED
@@ -22255,6 +22255,7 @@ var CampaignsRoute = /** @class */ (function () {
22255
22255
  updateCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.PUT },
22256
22256
  deleteCampaign: { url: '/campaigns/{campaign_id}', method: HTTP_METHODS.DELETE },
22257
22257
  getLedger: { url: '/campaigns/{campaign_id}/ledger', method: HTTP_METHODS.GET },
22258
+ getPosts: { url: '/campaigns/{campaign_id}/posts', method: HTTP_METHODS.GET },
22258
22259
  listCampaignLinks: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.GET },
22259
22260
  createCampaignLink: { url: '/campaigns/{campaign_id}/links', method: HTTP_METHODS.POST },
22260
22261
  getCampaignLink: { url: '/campaigns/{campaign_id}/links/{link_id}', method: HTTP_METHODS.GET },
@@ -22367,6 +22368,16 @@ var Campaigns = /** @class */ (function () {
22367
22368
  Campaigns.getLedger = function (campaign_id, params) {
22368
22369
  return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, { campaign_id: campaign_id }, params);
22369
22370
  };
22371
+ /**
22372
+ * Get the post associated with the campaign.
22373
+ *
22374
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignLedger
22375
+ *
22376
+ * @returns promise
22377
+ */
22378
+ Campaigns.getPosts = function (campaign_id, params) {
22379
+ return Requests.processRoute(CampaignsRoute.routes.getPosts, undefined, { campaign_id: campaign_id }, params);
22380
+ };
22370
22381
  /**
22371
22382
  * Retrieve recommended influencers for a campaign.
22372
22383
  *