glitch-javascript-sdk 2.3.9 → 2.4.1

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.
@@ -697,5 +697,39 @@ declare class Campaigns {
697
697
  static bulkEnrichSourcedCreators<T>(campaign_id: string, data: {
698
698
  creator_ids: string[];
699
699
  }): AxiosPromise<Response<T>>;
700
+ /**
701
+ * Get install attribution breakdown by influencer.
702
+ *
703
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getInfluencerInstallReport
704
+ *
705
+ * @param campaign_id The UUID of the campaign.
706
+ * @param params Optional query parameters (start_date, end_date).
707
+ * @returns promise
708
+ */
709
+ static getInfluencerInstallReport<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
710
+ /**
711
+ * Get detailed install report for a specific influencer.
712
+ * Accessible by Campaign Owners and the specific Influencer.
713
+ *
714
+ * @param campaign_id The UUID of the campaign.
715
+ * @param influencer_id The UUID of the influencer.
716
+ * @param params Optional query parameters (start_date, end_date).
717
+ * @returns promise
718
+ */
719
+ static getSpecificInfluencerInstallReport<T>(campaign_id: string, influencer_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
720
+ /**
721
+ * Generate AI Landing Page for an Influencer Campaign.
722
+ */
723
+ static generateInfluencerLandingPage<T>(campaign_id: string, user_id: string, data: {
724
+ prompt: string;
725
+ privacy_mode: string;
726
+ }): AxiosPromise<Response<T>>;
727
+ /**
728
+ * Update settings for the Influencer Landing Page.
729
+ */
730
+ static updateInfluencerLandingPage<T>(campaign_id: string, user_id: string, data: {
731
+ is_landing_page_active?: boolean;
732
+ landing_page_slug?: string;
733
+ }): AxiosPromise<Response<T>>;
700
734
  }
701
735
  export default Campaigns;
@@ -11,5 +11,12 @@ declare class Newsletters {
11
11
  * @returns Promise
12
12
  */
13
13
  static downloadMarketingChecklist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
14
+ /**
15
+ * Join the marketing course waitlist.
16
+ *
17
+ * @param data { name, email, game, topics[] }
18
+ * @returns Promise
19
+ */
20
+ static joinCourseWaitlist<T>(data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
14
21
  }
15
22
  export default Newsletters;
package/dist/esm/index.js CHANGED
@@ -12067,6 +12067,19 @@ var CampaignsRoute = /** @class */ (function () {
12067
12067
  updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
12068
12068
  reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
12069
12069
  bulkEnrichSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/bulk-enrich', method: HTTP_METHODS.POST },
12070
+ getInfluencerInstallReport: { url: '/campaigns/{campaign_id}/reports/influencer-installs', method: HTTP_METHODS.GET },
12071
+ getSpecificInfluencerInstallReport: {
12072
+ url: '/campaigns/{campaign_id}/reports/influencer-installs/{influencer_id}',
12073
+ method: HTTP_METHODS.GET
12074
+ },
12075
+ generateInfluencerLandingPage: {
12076
+ url: '/campaigns/{campaign_id}/influencers/{user_id}/landing-page/generate',
12077
+ method: HTTP_METHODS.POST
12078
+ },
12079
+ updateInfluencerLandingPage: {
12080
+ url: '/campaigns/{campaign_id}/influencers/{user_id}/landing-page',
12081
+ method: HTTP_METHODS.PUT
12082
+ },
12070
12083
  };
12071
12084
  return CampaignsRoute;
12072
12085
  }());
@@ -12912,6 +12925,42 @@ var Campaigns = /** @class */ (function () {
12912
12925
  Campaigns.bulkEnrichSourcedCreators = function (campaign_id, data) {
12913
12926
  return Requests.processRoute(CampaignsRoute.routes.bulkEnrichSourcedCreators, data, { campaign_id: campaign_id });
12914
12927
  };
12928
+ /**
12929
+ * Get install attribution breakdown by influencer.
12930
+ *
12931
+ * @see https://api.glitch.fun/api/documentation#/Campaigns/getInfluencerInstallReport
12932
+ *
12933
+ * @param campaign_id The UUID of the campaign.
12934
+ * @param params Optional query parameters (start_date, end_date).
12935
+ * @returns promise
12936
+ */
12937
+ Campaigns.getInfluencerInstallReport = function (campaign_id, params) {
12938
+ return Requests.processRoute(CampaignsRoute.routes.getInfluencerInstallReport, undefined, { campaign_id: campaign_id }, params);
12939
+ };
12940
+ /**
12941
+ * Get detailed install report for a specific influencer.
12942
+ * Accessible by Campaign Owners and the specific Influencer.
12943
+ *
12944
+ * @param campaign_id The UUID of the campaign.
12945
+ * @param influencer_id The UUID of the influencer.
12946
+ * @param params Optional query parameters (start_date, end_date).
12947
+ * @returns promise
12948
+ */
12949
+ Campaigns.getSpecificInfluencerInstallReport = function (campaign_id, influencer_id, params) {
12950
+ return Requests.processRoute(CampaignsRoute.routes.getSpecificInfluencerInstallReport, undefined, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
12951
+ };
12952
+ /**
12953
+ * Generate AI Landing Page for an Influencer Campaign.
12954
+ */
12955
+ Campaigns.generateInfluencerLandingPage = function (campaign_id, user_id, data) {
12956
+ return Requests.processRoute(CampaignsRoute.routes.generateInfluencerLandingPage, data, { campaign_id: campaign_id, user_id: user_id });
12957
+ };
12958
+ /**
12959
+ * Update settings for the Influencer Landing Page.
12960
+ */
12961
+ Campaigns.updateInfluencerLandingPage = function (campaign_id, user_id, data) {
12962
+ return Requests.processRoute(CampaignsRoute.routes.updateInfluencerLandingPage, data, { campaign_id: campaign_id, user_id: user_id });
12963
+ };
12915
12964
  return Campaigns;
12916
12965
  }());
12917
12966
 
@@ -13606,6 +13655,7 @@ var NewslettersRoutes = /** @class */ (function () {
13606
13655
  }
13607
13656
  NewslettersRoutes.routes = {
13608
13657
  downloadMarketingChecklist: { url: '/newsletters/downloadMarketingChecklist', method: HTTP_METHODS.POST },
13658
+ joinCourseWaitlist: { url: '/newsletters/joinCourseWaitlist', method: HTTP_METHODS.POST },
13609
13659
  };
13610
13660
  return NewslettersRoutes;
13611
13661
  }());
@@ -13625,6 +13675,15 @@ var Newsletters = /** @class */ (function () {
13625
13675
  Newsletters.downloadMarketingChecklist = function (data, params) {
13626
13676
  return Requests.processRoute(NewslettersRoutes.routes.downloadMarketingChecklist, data, undefined, params);
13627
13677
  };
13678
+ /**
13679
+ * Join the marketing course waitlist.
13680
+ *
13681
+ * @param data { name, email, game, topics[] }
13682
+ * @returns Promise
13683
+ */
13684
+ Newsletters.joinCourseWaitlist = function (data, params) {
13685
+ return Requests.processRoute(NewslettersRoutes.routes.joinCourseWaitlist, data, undefined, params);
13686
+ };
13628
13687
  return Newsletters;
13629
13688
  }());
13630
13689