glitch-javascript-sdk 2.2.4 → 2.2.5

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.
@@ -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
@@ -14043,6 +14043,7 @@ var SchedulerRoute = /** @class */ (function () {
14043
14043
  deleteDestination: { url: '/schedulers/{scheduler_id}/updates/{update_id}/destinations/{destination_id}', method: HTTP_METHODS.DELETE },
14044
14044
  getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
14045
14045
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
14046
+ getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
14046
14047
  };
14047
14048
  return SchedulerRoute;
14048
14049
  }());
@@ -14696,6 +14697,19 @@ var Scheduler = /** @class */ (function () {
14696
14697
  Scheduler.syncAllSchedulerComments = function (scheduler_id, params) {
14697
14698
  return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id: scheduler_id }, params);
14698
14699
  };
14700
+ /**
14701
+ * Get ad conversion actions for a specific platform linked to the scheduler.
14702
+ *
14703
+ * @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
14704
+ *
14705
+ * @param scheduler_id The ID of the promotion schedule.
14706
+ * @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
14707
+ *
14708
+ * @returns promise
14709
+ */
14710
+ Scheduler.getConversionActions = function (scheduler_id, params) {
14711
+ return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
14712
+ };
14699
14713
  return Scheduler;
14700
14714
  }());
14701
14715