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.
@@ -756,5 +756,18 @@ declare class Campaigns {
756
756
  query?: string;
757
757
  pages?: number;
758
758
  }): AxiosPromise<Response<T>>;
759
+ static sendOnboarding<T>(campaign_id: string, user_id: string, data?: {
760
+ template_id?: string;
761
+ }): AxiosPromise<Response<T>>;
762
+ /**
763
+ * Bulk invite influencers from a previous campaign into the current one.
764
+ *
765
+ * @param campaign_id The UUID of the target campaign.
766
+ * @param data { source_campaign_id: string, only_successful: boolean }
767
+ */
768
+ static crossPromote<T>(campaign_id: string, data: {
769
+ source_campaign_id: string;
770
+ only_successful?: boolean;
771
+ }): AxiosPromise<Response<T>>;
759
772
  }
760
773
  export default Campaigns;
@@ -664,5 +664,19 @@ declare class Communities {
664
664
  * List all Stripe invoices for the community.
665
665
  */
666
666
  static listInvoices<T>(community_id: string): AxiosPromise<Response<T>>;
667
+ /**
668
+ * List influencers saved to the community's private talent pool.
669
+ *
670
+ * @param community_id The UUID of the community.
671
+ * @param params Optional filters like 'list_name'.
672
+ */
673
+ static listSavedInfluencers<T>(community_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
674
+ /**
675
+ * Save an influencer to the community's talent pool (Shortlist).
676
+ *
677
+ * @param community_id The UUID of the community.
678
+ * @param data { influencer_id: string, list_name?: string, tags?: string[] }
679
+ */
680
+ static saveInfluencerToPool<T>(community_id: string, data: object): AxiosPromise<Response<T>>;
667
681
  }
668
682
  export default Communities;
package/dist/esm/index.js CHANGED
@@ -7885,6 +7885,8 @@ var CommunitiesRoute = /** @class */ (function () {
7885
7885
  url: '/communities/{community_id}/payment/statement',
7886
7886
  method: HTTP_METHODS.GET
7887
7887
  },
7888
+ listSavedInfluencers: { url: '/communities/{community_id}/influencers', method: HTTP_METHODS.GET },
7889
+ saveInfluencerToPool: { url: '/communities/{community_id}/influencers', method: HTTP_METHODS.POST }
7888
7890
  };
7889
7891
  return CommunitiesRoute;
7890
7892
  }());
@@ -8711,6 +8713,24 @@ var Communities = /** @class */ (function () {
8711
8713
  Communities.listInvoices = function (community_id) {
8712
8714
  return Requests.processRoute(CommunitiesRoute.routes.listInvoices, undefined, { community_id: community_id });
8713
8715
  };
8716
+ /**
8717
+ * List influencers saved to the community's private talent pool.
8718
+ *
8719
+ * @param community_id The UUID of the community.
8720
+ * @param params Optional filters like 'list_name'.
8721
+ */
8722
+ Communities.listSavedInfluencers = function (community_id, params) {
8723
+ return Requests.processRoute(CommunitiesRoute.routes.listSavedInfluencers, undefined, { community_id: community_id }, params);
8724
+ };
8725
+ /**
8726
+ * Save an influencer to the community's talent pool (Shortlist).
8727
+ *
8728
+ * @param community_id The UUID of the community.
8729
+ * @param data { influencer_id: string, list_name?: string, tags?: string[] }
8730
+ */
8731
+ Communities.saveInfluencerToPool = function (community_id, data) {
8732
+ return Requests.processRoute(CommunitiesRoute.routes.saveInfluencerToPool, data, { community_id: community_id });
8733
+ };
8714
8734
  return Communities;
8715
8735
  }());
8716
8736
 
@@ -12397,6 +12417,8 @@ var CampaignsRoute = /** @class */ (function () {
12397
12417
  url: '/campaigns/{campaign_id}/sourcing/find-save-fansly-creators',
12398
12418
  method: HTTP_METHODS.POST
12399
12419
  },
12420
+ sendOnboarding: { url: '/campaigns/{campaign_id}/influencers/{user_id}/onboarding', method: HTTP_METHODS.POST },
12421
+ crossPromote: { url: '/campaigns/{campaign_id}/cross-promote', method: HTTP_METHODS.POST },
12400
12422
  };
12401
12423
  return CampaignsRoute;
12402
12424
  }());
@@ -13301,6 +13323,18 @@ var Campaigns = /** @class */ (function () {
13301
13323
  Campaigns.sourcingFindAndSaveFanslyCreators = function (campaign_id, data) {
13302
13324
  return Requests.processRoute(CampaignsRoute.routes.sourcingFindAndSaveFanslyCreators, data, { campaign_id: campaign_id });
13303
13325
  };
13326
+ Campaigns.sendOnboarding = function (campaign_id, user_id, data) {
13327
+ return Requests.processRoute(CampaignsRoute.routes.sendOnboarding, data, { campaign_id: campaign_id, user_id: user_id });
13328
+ };
13329
+ /**
13330
+ * Bulk invite influencers from a previous campaign into the current one.
13331
+ *
13332
+ * @param campaign_id The UUID of the target campaign.
13333
+ * @param data { source_campaign_id: string, only_successful: boolean }
13334
+ */
13335
+ Campaigns.crossPromote = function (campaign_id, data) {
13336
+ return Requests.processRoute(CampaignsRoute.routes.crossPromote, data, { campaign_id: campaign_id });
13337
+ };
13304
13338
  return Campaigns;
13305
13339
  }());
13306
13340