glitch-javascript-sdk 3.2.8 → 3.2.9

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.
@@ -585,6 +585,14 @@ declare class Scheduler {
585
585
  platform: string;
586
586
  account_id?: string;
587
587
  }): AxiosPromise<Response<T>>;
588
+ /**
589
+ * Send a platform test conversion event through the backend scheduler route.
590
+ *
591
+ * @param scheduler_id The ID of the promotion schedule.
592
+ * @param platform Platform key, e.g. reddit, tiktok, facebook, google.
593
+ * @param params Query parameters such as Reddit test_id or Meta test_event_code.
594
+ */
595
+ static sendTestConversionEvent<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
588
596
  /**
589
597
  * Trigger a historical sync for a specific platform on a scheduler.
590
598
  *
package/dist/esm/index.js CHANGED
@@ -15701,6 +15701,7 @@ var SchedulerRoute = /** @class */ (function () {
15701
15701
  getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
15702
15702
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
15703
15703
  getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
15704
+ sendTestConversionEvent: { url: '/schedulers/{scheduler_id}/test-event/{platform}', method: HTTP_METHODS.GET },
15704
15705
  syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
15705
15706
  generateHashtags: {
15706
15707
  url: '/schedulers/{scheduler_id}/generateHashtags',
@@ -16459,6 +16460,16 @@ var Scheduler = /** @class */ (function () {
16459
16460
  Scheduler.getConversionActions = function (scheduler_id, params) {
16460
16461
  return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
16461
16462
  };
16463
+ /**
16464
+ * Send a platform test conversion event through the backend scheduler route.
16465
+ *
16466
+ * @param scheduler_id The ID of the promotion schedule.
16467
+ * @param platform Platform key, e.g. reddit, tiktok, facebook, google.
16468
+ * @param params Query parameters such as Reddit test_id or Meta test_event_code.
16469
+ */
16470
+ Scheduler.sendTestConversionEvent = function (scheduler_id, platform, params) {
16471
+ return Requests.processRoute(SchedulerRoute.routes.sendTestConversionEvent, {}, { scheduler_id: scheduler_id, platform: platform }, params);
16472
+ };
16462
16473
  /**
16463
16474
  * Trigger a historical sync for a specific platform on a scheduler.
16464
16475
  *