glitch-javascript-sdk 2.0.5 → 2.0.7

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
@@ -24901,6 +24901,7 @@ var CampaignsRoute = /** @class */ (function () {
24901
24901
  getSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.GET },
24902
24902
  updateSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}', method: HTTP_METHODS.PUT },
24903
24903
  assignKeyToInfluencer: { url: '/campaigns/{campaign_id}/influencers/{user_id}/assign-key', method: HTTP_METHODS.POST },
24904
+ enrichSourcedCreator: { url: '/campaigns/{campaign_id}/sourcing/creators/{sourced_creator_id}/enrich', method: HTTP_METHODS.POST },
24904
24905
  };
24905
24906
  return CampaignsRoute;
24906
24907
  }());
@@ -25647,6 +25648,19 @@ var Campaigns = /** @class */ (function () {
25647
25648
  Campaigns.assignKeyToInfluencer = function (campaign_id, user_id, data, params) {
25648
25649
  return Requests.processRoute(CampaignsRoute.routes.assignKeyToInfluencer, data, { campaign_id: campaign_id, user_id: user_id }, params);
25649
25650
  };
25651
+ /**
25652
+ * Manually trigger a real-time profile enrichment for a sourced creator.
25653
+ * This synchronously scrapes and parses social media profiles to enrich the creator's data and returns the updated record.
25654
+ *
25655
+ * @see https://api.glitch.fun/api/documentation#/Campaigns%20Sourcing/enrichSourcedCreator
25656
+ *
25657
+ * @param campaign_id The UUID of the campaign.
25658
+ * @param sourced_creator_id The UUID of the sourced creator to enrich.
25659
+ * @returns promise containing the fully enriched SourcedCreator object.
25660
+ */
25661
+ Campaigns.enrichSourcedCreator = function (campaign_id, sourced_creator_id) {
25662
+ return Requests.processRoute(CampaignsRoute.routes.enrichSourcedCreator, {}, { campaign_id: campaign_id, sourced_creator_id: sourced_creator_id });
25663
+ };
25650
25664
  return Campaigns;
25651
25665
  }());
25652
25666
 
@@ -27603,6 +27617,10 @@ var WebsiteAnalyticsRoute = /** @class */ (function () {
27603
27617
  utmPerformance: {
27604
27618
  url: '/analytics/utm-performance',
27605
27619
  method: HTTP_METHODS.GET
27620
+ },
27621
+ journey: {
27622
+ url: '/analytics/journey',
27623
+ method: HTTP_METHODS.GET
27606
27624
  }
27607
27625
  };
27608
27626
  return WebsiteAnalyticsRoute;
@@ -27823,6 +27841,27 @@ var WebsiteAnalytics = /** @class */ (function () {
27823
27841
  WebsiteAnalytics.utmPerformance = function (params) {
27824
27842
  return Requests.processRoute(WebsiteAnalyticsRoute.routes.utmPerformance, {}, undefined, params);
27825
27843
  };
27844
+ /**
27845
+ * Get a combined user journey across short link clicks, web sessions, game installations, etc.
27846
+ *
27847
+ * @param params Filtering options. All are optional except `title_id`.
27848
+ * - title_id: string Required. The UUID of the title to unify user events.
27849
+ * - device_id?: string Filter by device ID
27850
+ * - session_id?: string Filter by session ID
27851
+ * - short_link_click_id?: string Filter by short link click ID
27852
+ * - user_install_id?: string Filter by game install user_install_id
27853
+ * - browser_fingerprint?: string Filter by browser fingerprint hash
27854
+ * - hardware_fingerprint?: string Filter by hardware fingerprint hash
27855
+ * - start_date?: string Optional. Start date (YYYY-MM-DD) if your API supports time limiting
27856
+ * - end_date?: string Optional. End date (YYYY-MM-DD) if your API supports time limiting
27857
+ *
27858
+ * @returns Promise with a unified timeline of the user’s journey, in chronological order.
27859
+ */
27860
+ WebsiteAnalytics.userJourney = function (params) {
27861
+ return Requests.processRoute(WebsiteAnalyticsRoute.routes.journey, // references our new route definition
27862
+ {}, // no body data (GET request)
27863
+ undefined, params);
27864
+ };
27826
27865
  return WebsiteAnalytics;
27827
27866
  }());
27828
27867