glitch-javascript-sdk 1.0.6 → 1.0.8

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.
@@ -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
  *
@@ -408,5 +416,15 @@ declare class Campaigns {
408
416
  * @returns promise
409
417
  */
410
418
  static reviewInfluencerRequest<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
419
+ /**
420
+ * Generate post content for the influencer to help them with their content creation.
421
+ *
422
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generatePostContent
423
+ *
424
+ * @param campaign_id The id fo the campaign to retrieve.
425
+ *
426
+ * @returns promise
427
+ */
428
+ static generateContentForInfluencer<T>(campaign_id: string, user_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
411
429
  }
412
430
  export default Campaigns;
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 },
@@ -9108,6 +9109,7 @@ var CampaignsRoute = /** @class */ (function () {
9108
9109
  declineInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/deny', method: HTTP_METHODS.POST },
9109
9110
  reviewInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
9110
9111
  getRecommendedInfluencers: { url: '/campaigns/{campaign_id}/recommendInfluencers', method: HTTP_METHODS.GET },
9112
+ generateContentForInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/generatePostContent', method: HTTP_METHODS.POST },
9111
9113
  };
9112
9114
  return CampaignsRoute;
9113
9115
  }());
@@ -9183,6 +9185,16 @@ var Campaigns = /** @class */ (function () {
9183
9185
  Campaigns.getLedger = function (campaign_id, params) {
9184
9186
  return Requests.processRoute(CampaignsRoute.routes.getLedger, undefined, { campaign_id: campaign_id }, params);
9185
9187
  };
9188
+ /**
9189
+ * Get the post associated with the campaign.
9190
+ *
9191
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getCampaignLedger
9192
+ *
9193
+ * @returns promise
9194
+ */
9195
+ Campaigns.getPosts = function (campaign_id, params) {
9196
+ return Requests.processRoute(CampaignsRoute.routes.getPosts, undefined, { campaign_id: campaign_id }, params);
9197
+ };
9186
9198
  /**
9187
9199
  * Retrieve recommended influencers for a campaign.
9188
9200
  *
@@ -9608,6 +9620,18 @@ var Campaigns = /** @class */ (function () {
9608
9620
  Campaigns.reviewInfluencerRequest = function (campaign_id, user_id, data, params) {
9609
9621
  return Requests.processRoute(CampaignsRoute.routes.reviewInfluencerRequest, data, { campaign_id: campaign_id, user_id: user_id }, params);
9610
9622
  };
9623
+ /**
9624
+ * Generate post content for the influencer to help them with their content creation.
9625
+ *
9626
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/generatePostContent
9627
+ *
9628
+ * @param campaign_id The id fo the campaign to retrieve.
9629
+ *
9630
+ * @returns promise
9631
+ */
9632
+ Campaigns.generateContentForInfluencer = function (campaign_id, user_id, data, params) {
9633
+ return Requests.processRoute(CampaignsRoute.routes.generateContentForInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
9634
+ };
9611
9635
  return Campaigns;
9612
9636
  }());
9613
9637