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.
package/dist/cjs/index.js CHANGED
@@ -27699,6 +27699,7 @@ var SchedulerRoute = /** @class */ (function () {
27699
27699
  getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
27700
27700
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
27701
27701
  getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
27702
+ sendTestConversionEvent: { url: '/schedulers/{scheduler_id}/test-event/{platform}', method: HTTP_METHODS.GET },
27702
27703
  syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
27703
27704
  generateHashtags: {
27704
27705
  url: '/schedulers/{scheduler_id}/generateHashtags',
@@ -28457,6 +28458,16 @@ var Scheduler = /** @class */ (function () {
28457
28458
  Scheduler.getConversionActions = function (scheduler_id, params) {
28458
28459
  return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id: scheduler_id }, params);
28459
28460
  };
28461
+ /**
28462
+ * Send a platform test conversion event through the backend scheduler route.
28463
+ *
28464
+ * @param scheduler_id The ID of the promotion schedule.
28465
+ * @param platform Platform key, e.g. reddit, tiktok, facebook, google.
28466
+ * @param params Query parameters such as Reddit test_id or Meta test_event_code.
28467
+ */
28468
+ Scheduler.sendTestConversionEvent = function (scheduler_id, platform, params) {
28469
+ return Requests.processRoute(SchedulerRoute.routes.sendTestConversionEvent, {}, { scheduler_id: scheduler_id, platform: platform }, params);
28470
+ };
28460
28471
  /**
28461
28472
  * Trigger a historical sync for a specific platform on a scheduler.
28462
28473
  *