glitch-javascript-sdk 2.2.4 → 2.2.6

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.
@@ -685,5 +685,17 @@ declare class Campaigns {
685
685
  static updateCustomRanking<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
686
686
  static updateCreatorBucket<T>(campaign_id: string, creator_id: string, data: object): AxiosPromise<Response<T>>;
687
687
  static reRankSourcedCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
688
+ /**
689
+ * Queue multiple sourced creators for profile enrichment.
690
+ * This dispatches a background job for each creator to find their social media profiles and contact information.
691
+ *
692
+ * @param campaign_id The UUID of the campaign.
693
+ * @param data An object containing the array of SourcedCreator IDs to enrich.
694
+ * @param data.creator_ids An array of SourcedCreator UUIDs.
695
+ * @returns A promise that resolves with a confirmation message and the count of queued jobs.
696
+ */
697
+ static bulkEnrichSourcedCreators<T>(campaign_id: string, data: {
698
+ creator_ids: string[];
699
+ }): AxiosPromise<Response<T>>;
688
700
  }
689
701
  export default Campaigns;
@@ -512,5 +512,19 @@ declare class Scheduler {
512
512
  * @returns promise
513
513
  */
514
514
  static syncAllSchedulerComments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
515
+ /**
516
+ * Get ad conversion actions for a specific platform linked to the scheduler.
517
+ *
518
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
519
+ *
520
+ * @param scheduler_id The ID of the promotion schedule.
521
+ * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
522
+ *
523
+ * @returns promise
524
+ */
525
+ static getConversionActions<T>(scheduler_id: string, params: {
526
+ platform: string;
527
+ account_id?: string;
528
+ }): AxiosPromise<Response<T>>;
515
529
  }
516
530
  export default Scheduler;
package/dist/esm/index.js CHANGED
@@ -12000,6 +12000,7 @@ var CampaignsRoute = /** @class */ (function () {
12000
12000
  updateCustomRanking: { url: '/campaigns/{campaign_id}/sourcing/custom-ranking', method: HTTP_METHODS.PUT },
12001
12001
  updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
12002
12002
  reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
12003
+ bulkEnrichSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/bulk-enrich', method: HTTP_METHODS.POST },
12003
12004
  };
12004
12005
  return CampaignsRoute;
12005
12006
  }());
@@ -12833,6 +12834,18 @@ var Campaigns = /** @class */ (function () {
12833
12834
  Campaigns.reRankSourcedCreators = function (campaign_id, data) {
12834
12835
  return Requests.processRoute(CampaignsRoute.routes.reRankSourcedCreators, data, { campaign_id: campaign_id });
12835
12836
  };
12837
+ /**
12838
+ * Queue multiple sourced creators for profile enrichment.
12839
+ * This dispatches a background job for each creator to find their social media profiles and contact information.
12840
+ *
12841
+ * @param campaign_id The UUID of the campaign.
12842
+ * @param data An object containing the array of SourcedCreator IDs to enrich.
12843
+ * @param data.creator_ids An array of SourcedCreator UUIDs.
12844
+ * @returns A promise that resolves with a confirmation message and the count of queued jobs.
12845
+ */
12846
+ Campaigns.bulkEnrichSourcedCreators = function (campaign_id, data) {
12847
+ return Requests.processRoute(CampaignsRoute.routes.bulkEnrichSourcedCreators, data, { campaign_id: campaign_id });
12848
+ };
12836
12849
  return Campaigns;
12837
12850
  }());
12838
12851
 
@@ -14043,6 +14056,7 @@ var SchedulerRoute = /** @class */ (function () {
14043
14056
  deleteDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.DELETE },
14044
14057
  getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
14045
14058
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
14059
+ getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
14046
14060
  };
14047
14061
  return SchedulerRoute;
14048
14062
  }());
@@ -14696,6 +14710,19 @@ var Scheduler = /** @class */ (function () {
14696
14710
  Scheduler.syncAllSchedulerComments = function (scheduler_id, params) {
14697
14711
  return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id: scheduler_id }, params);
14698
14712
  };
14713
+ /**
14714
+ * Get ad conversion actions for a specific platform linked to the scheduler.
14715
+ *
14716
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
14717
+ *
14718
+ * @param scheduler_id The ID of the promotion schedule.
14719
+ * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
14720
+ *
14721
+ * @returns promise
14722
+ */
14723
+ Scheduler.getConversionActions = function (scheduler_id, params) {
14724
+ return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
14725
+ };
14699
14726
  return Scheduler;
14700
14727
  }());
14701
14728