glitch-javascript-sdk 1.1.0 → 1.1.2

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/index.d.ts CHANGED
@@ -2798,6 +2798,16 @@ declare class Campaigns {
2798
2798
  * @returns promise
2799
2799
  */
2800
2800
  static updateInfluencerInvite<T>(campaign_id: string, influencer_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2801
+ /**
2802
+ * Updates the influencer invite compenstation information.
2803
+ *
2804
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/updateInfluencerCompensationInvite
2805
+ *
2806
+ * @param campaign_id The id fo the campaign to retrieve.
2807
+ *
2808
+ * @returns promise
2809
+ */
2810
+ static updateInfluencerCompensationInvite<T>(campaign_id: string, influencer_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
2801
2811
  /**
2802
2812
  * The route for an influencer to accept an invite.
2803
2813
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -113,7 +113,7 @@ class Campaigns {
113
113
  * @returns promise
114
114
  */
115
115
  public static getStreamViewCounts<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
116
- return Requests.processRoute(CampaignsRoute.routes.getStreamViewCounts, undefined, { campaign_id: campaign_id }, params);
116
+ return Requests.processRoute(CampaignsRoute.routes.streamViewCounts, undefined, { campaign_id: campaign_id }, params);
117
117
  }
118
118
 
119
119
  /**
@@ -532,6 +532,21 @@ class Campaigns {
532
532
  return Requests.processRoute(CampaignsRoute.routes.updateInfluencerInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
533
533
  }
534
534
 
535
+ /**
536
+ * Updates the influencer invite compenstation information.
537
+ *
538
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/updateInfluencerCompensationInvite
539
+ *
540
+ * @param campaign_id The id fo the campaign to retrieve.
541
+ *
542
+ * @returns promise
543
+ */
544
+ public static updateInfluencerCompensationInvite<T>(campaign_id: string,influencer_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>> {
545
+
546
+
547
+ return Requests.processRoute(CampaignsRoute.routes.updateInfluencerCompensationInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
548
+ }
549
+
535
550
  /**
536
551
  * The route for an influencer to accept an invite.
537
552
  *
package/src/api/Events.ts CHANGED
@@ -571,7 +571,7 @@ class Events {
571
571
  * @returns promise
572
572
  */
573
573
  public static getStreamViewCounts<T>(event_id: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
574
- return Requests.processRoute(EventsRoutes.routes.getStreamViewCounts, undefined, { event_id: event_id }, params);
574
+ return Requests.processRoute(EventsRoutes.routes.streamViewCounts, undefined, { event_id: event_id }, params);
575
575
  }
576
576
 
577
577
 
@@ -41,6 +41,7 @@ class CampaignsRoute {
41
41
  inviteInfluencer : { url: '/campaigns/{campaign_id}/influencers/invites', method: HTTP_METHODS.POST },
42
42
  viewInfluencerInvite : { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}', method: HTTP_METHODS.GET },
43
43
  updateInfluencerInvite : { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}', method: HTTP_METHODS.PUT },
44
+ updateInfluencerCompensationInvite : { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/compensation', method: HTTP_METHODS.PUT },
44
45
  listInfluencerInvites : { url: '/campaigns/{campaign_id}/influencers/invites', method: HTTP_METHODS.GET },
45
46
  sendInfluencerInvite : { url: '/campaigns/{campaign_id}/influencers/invites', method: HTTP_METHODS.POST },
46
47
  acceptInfluencerInvite : { url: '/campaigns/{campaign_id}/influencers/invites/{influencer_id}/accept', method: HTTP_METHODS.POST },