glitch-javascript-sdk 2.4.0 → 2.4.3

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;
@@ -71,5 +71,19 @@ declare class Funnel {
71
71
  * @returns Promise with the gamified funnel data
72
72
  */
73
73
  static gamify<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
74
+ /**
75
+ * Get comprehensive funnel diagnostic report.
76
+ *
77
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
78
+ *
79
+ * @param params Query parameters:
80
+ * - title_id (string): Required
81
+ * - start_date (string): Required (YYYY-MM-DD)
82
+ * - end_date (string): Required (YYYY-MM-DD)
83
+ * - group_by (string): Optional ('none', 'platform', 'utm_source')
84
+ *
85
+ * @returns Promise with diagnostic data including conversion rates, costs, and health indicators
86
+ */
87
+ static diagnostic<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
74
88
  }
75
89
  export default Funnel;
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
 
@@ -14844,6 +14893,7 @@ var FunnelRoutes = /** @class */ (function () {
14844
14893
  monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
14845
14894
  yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
14846
14895
  gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
14896
+ diagnostic: { url: '/funnels/diagnostic', method: HTTP_METHODS.GET },
14847
14897
  };
14848
14898
  return FunnelRoutes;
14849
14899
  }());
@@ -14938,6 +14988,22 @@ var Funnel = /** @class */ (function () {
14938
14988
  Funnel.gamify = function (params) {
14939
14989
  return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
14940
14990
  };
14991
+ /**
14992
+ * Get comprehensive funnel diagnostic report.
14993
+ *
14994
+ * @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
14995
+ *
14996
+ * @param params Query parameters:
14997
+ * - title_id (string): Required
14998
+ * - start_date (string): Required (YYYY-MM-DD)
14999
+ * - end_date (string): Required (YYYY-MM-DD)
15000
+ * - group_by (string): Optional ('none', 'platform', 'utm_source')
15001
+ *
15002
+ * @returns Promise with diagnostic data including conversion rates, costs, and health indicators
15003
+ */
15004
+ Funnel.diagnostic = function (params) {
15005
+ return Requests.processRoute(FunnelRoutes.routes.diagnostic, undefined, undefined, params);
15006
+ };
14941
15007
  return Funnel;
14942
15008
  }());
14943
15009