glitch-javascript-sdk 1.1.3 → 1.1.5

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
@@ -22327,6 +22327,7 @@ var CampaignsRoute = /** @class */ (function () {
22327
22327
  acceptInfluencerInvite: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/accept', method: HTTP_METHODS.POST },
22328
22328
  declineInfluencerInvite: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/decline', method: HTTP_METHODS.POST },
22329
22329
  widthdrawInfluencerInvite: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/withdraw', method: HTTP_METHODS.POST },
22330
+ finishInfluencerInvite: { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/finish', method: HTTP_METHODS.POST },
22330
22331
  acceptInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/accept', method: HTTP_METHODS.POST },
22331
22332
  declineInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/deny', method: HTTP_METHODS.POST },
22332
22333
  reviewInfluencerRequest: { url: '/campaigns/{campaign_id}/influencers/{user_id}/review', method: HTTP_METHODS.POST },
@@ -22840,6 +22841,18 @@ var Campaigns = /** @class */ (function () {
22840
22841
  return Requests.processRoute(CampaignsRoute.routes.widthdrawInfluencerInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
22841
22842
  };
22842
22843
  /**
22844
+ * The route to mark an influencer reachout and finished, and it will no longer send reachouts.
22845
+ *
22846
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/finishInfluencerInvite
22847
+ *
22848
+ * @param campaign_id The id fo the campaign to retrieve.
22849
+ *
22850
+ * @returns promise
22851
+ */
22852
+ Campaigns.finishInfluencerInvite = function (campaign_id, influencer_id, data, params) {
22853
+ return Requests.processRoute(CampaignsRoute.routes.finishInfluencerInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
22854
+ };
22855
+ /**
22843
22856
  * The route to accept an influnecers request to join the campaign.
22844
22857
  *
22845
22858
  * @see https://api.glitch.fun/api/documentation#/Campaigns/acceptInfluencer
@@ -23165,6 +23178,11 @@ var InfluencerRoutes = /** @class */ (function () {
23165
23178
  listInfluencers: { url: '/influencers', method: HTTP_METHODS.GET },
23166
23179
  viewInfluencer: { url: '/influencers/{influencer_id}', method: HTTP_METHODS.GET },
23167
23180
  generateProfile: { url: '/influencers/{influencer_id}/generateProfile', method: HTTP_METHODS.POST },
23181
+ listNotes: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.GET },
23182
+ viewNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.GET },
23183
+ createNote: { url: '/influencers/{influencer_id}/notes', method: HTTP_METHODS.POST },
23184
+ updateNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.PUT },
23185
+ deleteNote: { url: '/influencers/{influencer_id}/notes/{note_id}', method: HTTP_METHODS.DELETE },
23168
23186
  };
23169
23187
  return InfluencerRoutes;
23170
23188
  }());
@@ -23202,6 +23220,56 @@ var Influencers = /** @class */ (function () {
23202
23220
  Influencers.generateProfile = function (influencer_id, params) {
23203
23221
  return Requests.processRoute(InfluencerRoutes.routes.generateProfile, undefined, { influencer_id: influencer_id }, params);
23204
23222
  };
23223
+ /**
23224
+ * List all the notes left about an influencer.
23225
+ *
23226
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNotes
23227
+ *
23228
+ * @returns promise
23229
+ */
23230
+ Influencers.listNotes = function (influencer_id, params) {
23231
+ return Requests.processRoute(InfluencerRoutes.routes.listNotes, undefined, { influencer_id: influencer_id }, params);
23232
+ };
23233
+ /**
23234
+ * View a note left about an influencer.
23235
+ *
23236
+ * @see https://api.glitch.fun/api/documentation#/Influencers/getInfluencersNote
23237
+ *
23238
+ * @returns promise
23239
+ */
23240
+ Influencers.viewNote = function (influencer_id, note_id, params) {
23241
+ return Requests.processRoute(InfluencerRoutes.routes.viewNote, undefined, { influencer_id: influencer_id, note_id: note_id }, params);
23242
+ };
23243
+ /**
23244
+ * Create a new note about an influencer.
23245
+ *
23246
+ * @see https://api.glitch.fun/api/documentation#/Influencers/createInfluencersNotes
23247
+ *
23248
+ * @returns promise
23249
+ */
23250
+ Influencers.createNote = function (influencer_id, data, params) {
23251
+ return Requests.processRoute(InfluencerRoutes.routes.createNote, data, { influencer_id: influencer_id }, params);
23252
+ };
23253
+ /**
23254
+ * Update a note about an influencer.
23255
+ *
23256
+ * @see https://api.glitch.fun/api/documentation#/Influencers/updateInfluencersNote
23257
+ *
23258
+ * @returns promise
23259
+ */
23260
+ Influencers.updateNote = function (influencer_id, note_id, data, params) {
23261
+ return Requests.processRoute(InfluencerRoutes.routes.updateNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
23262
+ };
23263
+ /**
23264
+ * Delete a note about an influencer.
23265
+ *
23266
+ * @see https://api.glitch.fun/api/documentation#/Influencers/deleteInfluencersNote
23267
+ *
23268
+ * @returns promise
23269
+ */
23270
+ Influencers.deleteNote = function (influencer_id, note_id, data, params) {
23271
+ return Requests.processRoute(InfluencerRoutes.routes.deleteNote, data, { influencer_id: influencer_id, note_id: note_id }, params);
23272
+ };
23205
23273
  return Influencers;
23206
23274
  }());
23207
23275