glitch-javascript-sdk 2.2.2 → 2.2.3

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.
@@ -419,5 +419,14 @@ declare class Titles {
419
419
  * @param translationData The full translation object to be saved.
420
420
  */
421
421
  static saveLandingPageTranslation<T>(landing_page_id: string, translationData: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
422
+ /**
423
+ * Get an aggregated report of ad conversion events for charting.
424
+ */
425
+ static getAdConversionEventsReport<T>(title_id: string, params: {
426
+ start_date: string;
427
+ end_date: string;
428
+ group_by: 'platform' | 'status' | 'event_type';
429
+ unique_clicks?: boolean;
430
+ }): AxiosPromise<Response<T>>;
422
431
  }
423
432
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -11353,6 +11353,10 @@ var TitlesRoute = /** @class */ (function () {
11353
11353
  url: '/titles/{title_id}/ad-conversion-events/{event_id}/retry',
11354
11354
  method: HTTP_METHODS.POST
11355
11355
  },
11356
+ getAdConversionEventsReport: {
11357
+ url: '/titles/{title_id}/ad-conversion-events/report',
11358
+ method: HTTP_METHODS.GET
11359
+ },
11356
11360
  listLandingPages: { url: '/titles/{title_id}/landing-pages', method: HTTP_METHODS.GET },
11357
11361
  createLandingPage: { url: '/titles/{title_id}/landing-pages', method: HTTP_METHODS.POST },
11358
11362
  viewLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.GET },
@@ -11907,6 +11911,12 @@ var Titles = /** @class */ (function () {
11907
11911
  Titles.saveLandingPageTranslation = function (landing_page_id, translationData, params) {
11908
11912
  return Requests.processRoute(TitlesRoute.routes.saveLandingPageTranslation, translationData, { landing_page_id: landing_page_id }, params);
11909
11913
  };
11914
+ /**
11915
+ * Get an aggregated report of ad conversion events for charting.
11916
+ */
11917
+ Titles.getAdConversionEventsReport = function (title_id, params) {
11918
+ return Requests.processRoute(TitlesRoute.routes.getAdConversionEventsReport, {}, { title_id: title_id }, params);
11919
+ };
11910
11920
  return Titles;
11911
11921
  }());
11912
11922