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/index.d.ts CHANGED
@@ -7219,6 +7219,14 @@ declare class Scheduler {
7219
7219
  platform: string;
7220
7220
  account_id?: string;
7221
7221
  }): AxiosPromise<Response<T>>;
7222
+ /**
7223
+ * Send a platform test conversion event through the backend scheduler route.
7224
+ *
7225
+ * @param scheduler_id The ID of the promotion schedule.
7226
+ * @param platform Platform key, e.g. reddit, tiktok, facebook, google.
7227
+ * @param params Query parameters such as Reddit test_id or Meta test_event_code.
7228
+ */
7229
+ static sendTestConversionEvent<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
7222
7230
  /**
7223
7231
  * Trigger a historical sync for a specific platform on a scheduler.
7224
7232
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "glitch-javascript-sdk",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "description": "Javascript SDK for Glitch",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -940,6 +940,17 @@ class Scheduler {
940
940
  return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id }, params);
941
941
  }
942
942
 
943
+ /**
944
+ * Send a platform test conversion event through the backend scheduler route.
945
+ *
946
+ * @param scheduler_id The ID of the promotion schedule.
947
+ * @param platform Platform key, e.g. reddit, tiktok, facebook, google.
948
+ * @param params Query parameters such as Reddit test_id or Meta test_event_code.
949
+ */
950
+ public static sendTestConversionEvent<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>> {
951
+ return Requests.processRoute(SchedulerRoute.routes.sendTestConversionEvent, {}, { scheduler_id, platform }, params);
952
+ }
953
+
943
954
  /**
944
955
  * Trigger a historical sync for a specific platform on a scheduler.
945
956
  *
@@ -150,6 +150,7 @@ class SchedulerRoute {
150
150
  syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
151
151
 
152
152
  getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
153
+ sendTestConversionEvent: { url: '/schedulers/{scheduler_id}/test-event/{platform}', method: HTTP_METHODS.GET },
153
154
 
154
155
  syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
155
156