glitch-javascript-sdk 2.7.5 → 2.7.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
@@ -21069,6 +21069,8 @@ var CommunitiesRoute = /** @class */ (function () {
21069
21069
  url: '/communities/{community_id}/payment/statement',
21070
21070
  method: HTTP_METHODS.GET
21071
21071
  },
21072
+ listSavedInfluencers: { url: '/communities/{community_id}/influencers', method: HTTP_METHODS.GET },
21073
+ saveInfluencerToPool: { url: '/communities/{community_id}/influencers', method: HTTP_METHODS.POST }
21072
21074
  };
21073
21075
  return CommunitiesRoute;
21074
21076
  }());
@@ -21895,6 +21897,24 @@ var Communities = /** @class */ (function () {
21895
21897
  Communities.listInvoices = function (community_id) {
21896
21898
  return Requests.processRoute(CommunitiesRoute.routes.listInvoices, undefined, { community_id: community_id });
21897
21899
  };
21900
+ /**
21901
+ * List influencers saved to the community's private talent pool.
21902
+ *
21903
+ * @param community_id The UUID of the community.
21904
+ * @param params Optional filters like 'list_name'.
21905
+ */
21906
+ Communities.listSavedInfluencers = function (community_id, params) {
21907
+ return Requests.processRoute(CommunitiesRoute.routes.listSavedInfluencers, undefined, { community_id: community_id }, params);
21908
+ };
21909
+ /**
21910
+ * Save an influencer to the community's talent pool (Shortlist).
21911
+ *
21912
+ * @param community_id The UUID of the community.
21913
+ * @param data { influencer_id: string, list_name?: string, tags?: string[] }
21914
+ */
21915
+ Communities.saveInfluencerToPool = function (community_id, data) {
21916
+ return Requests.processRoute(CommunitiesRoute.routes.saveInfluencerToPool, data, { community_id: community_id });
21917
+ };
21898
21918
  return Communities;
21899
21919
  }());
21900
21920
 
@@ -25581,6 +25601,8 @@ var CampaignsRoute = /** @class */ (function () {
25581
25601
  url: '/campaigns/{campaign_id}/sourcing/find-save-fansly-creators',
25582
25602
  method: HTTP_METHODS.POST
25583
25603
  },
25604
+ sendOnboarding: { url: '/campaigns/{campaign_id}/influencers/{user_id}/onboarding', method: HTTP_METHODS.POST },
25605
+ crossPromote: { url: '/campaigns/{campaign_id}/cross-promote', method: HTTP_METHODS.POST },
25584
25606
  };
25585
25607
  return CampaignsRoute;
25586
25608
  }());
@@ -26485,6 +26507,18 @@ var Campaigns = /** @class */ (function () {
26485
26507
  Campaigns.sourcingFindAndSaveFanslyCreators = function (campaign_id, data) {
26486
26508
  return Requests.processRoute(CampaignsRoute.routes.sourcingFindAndSaveFanslyCreators, data, { campaign_id: campaign_id });
26487
26509
  };
26510
+ Campaigns.sendOnboarding = function (campaign_id, user_id, data) {
26511
+ return Requests.processRoute(CampaignsRoute.routes.sendOnboarding, data, { campaign_id: campaign_id, user_id: user_id });
26512
+ };
26513
+ /**
26514
+ * Bulk invite influencers from a previous campaign into the current one.
26515
+ *
26516
+ * @param campaign_id The UUID of the target campaign.
26517
+ * @param data { source_campaign_id: string, only_successful: boolean }
26518
+ */
26519
+ Campaigns.crossPromote = function (campaign_id, data) {
26520
+ return Requests.processRoute(CampaignsRoute.routes.crossPromote, data, { campaign_id: campaign_id });
26521
+ };
26488
26522
  return Campaigns;
26489
26523
  }());
26490
26524