glitch-javascript-sdk 2.2.1 → 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.
@@ -403,5 +403,30 @@ declare class Titles {
403
403
  static translateLandingPage<T>(landing_page_id: string, data: {
404
404
  language_code: string;
405
405
  }, params?: Record<string, any>): AxiosPromise<Response<T>>;
406
+ /**
407
+ * Generate or regenerate AI-powered HTML content for a landing page.
408
+ * @param landing_page_id The UUID of the landing page.
409
+ * @param data An object containing the prompt, language_code, and privacy_mode.
410
+ */
411
+ static generateLandingPageAiContent<T>(landing_page_id: string, data: {
412
+ prompt: string;
413
+ language_code: string;
414
+ privacy_mode: string;
415
+ }, params?: Record<string, any>): AxiosPromise<Response<T>>;
416
+ /**
417
+ * Create or update a specific translation for a landing page.
418
+ * @param landing_page_id The UUID of the landing page.
419
+ * @param translationData The full translation object to be saved.
420
+ */
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>>;
406
431
  }
407
432
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -11353,12 +11353,18 @@ 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 },
11359
11363
  updateLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.PUT },
11360
11364
  deleteLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.DELETE },
11361
11365
  translateLandingPage: { url: '/landing-pages/{landing_page_id}/translate', method: HTTP_METHODS.POST },
11366
+ generateLandingPageAiContent: { url: '/landing-pages/{landing_page_id}/generate-ai-content', method: HTTP_METHODS.POST },
11367
+ saveLandingPageTranslation: { url: '/landing-pages/{landing_page_id}/translations', method: HTTP_METHODS.POST },
11362
11368
  };
11363
11369
  return TitlesRoute;
11364
11370
  }());
@@ -11889,6 +11895,28 @@ var Titles = /** @class */ (function () {
11889
11895
  Titles.translateLandingPage = function (landing_page_id, data, params) {
11890
11896
  return Requests.processRoute(TitlesRoute.routes.translateLandingPage, data, { landing_page_id: landing_page_id }, params);
11891
11897
  };
11898
+ /**
11899
+ * Generate or regenerate AI-powered HTML content for a landing page.
11900
+ * @param landing_page_id The UUID of the landing page.
11901
+ * @param data An object containing the prompt, language_code, and privacy_mode.
11902
+ */
11903
+ Titles.generateLandingPageAiContent = function (landing_page_id, data, params) {
11904
+ return Requests.processRoute(TitlesRoute.routes.generateLandingPageAiContent, data, { landing_page_id: landing_page_id }, params);
11905
+ };
11906
+ /**
11907
+ * Create or update a specific translation for a landing page.
11908
+ * @param landing_page_id The UUID of the landing page.
11909
+ * @param translationData The full translation object to be saved.
11910
+ */
11911
+ Titles.saveLandingPageTranslation = function (landing_page_id, translationData, params) {
11912
+ return Requests.processRoute(TitlesRoute.routes.saveLandingPageTranslation, translationData, { landing_page_id: landing_page_id }, params);
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
+ };
11892
11920
  return Titles;
11893
11921
  }());
11894
11922