glitch-javascript-sdk 2.1.9 → 2.2.1

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
@@ -24529,6 +24529,20 @@ var TitlesRoute = /** @class */ (function () {
24529
24529
  url: "/titles/{title_id}/purchases/reports/item-type-stats",
24530
24530
  method: HTTP_METHODS.GET,
24531
24531
  },
24532
+ listAdConversionEvents: {
24533
+ url: '/titles/{title_id}/ad-conversion-events',
24534
+ method: HTTP_METHODS.GET
24535
+ },
24536
+ retryAdConversionEvent: {
24537
+ url: '/titles/{title_id}/ad-conversion-events/{event_id}/retry',
24538
+ method: HTTP_METHODS.POST
24539
+ },
24540
+ listLandingPages: { url: '/titles/{title_id}/landing-pages', method: HTTP_METHODS.GET },
24541
+ createLandingPage: { url: '/titles/{title_id}/landing-pages', method: HTTP_METHODS.POST },
24542
+ viewLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.GET },
24543
+ updateLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.PUT },
24544
+ deleteLandingPage: { url: '/landing-pages/{landing_page_id}', method: HTTP_METHODS.DELETE },
24545
+ translateLandingPage: { url: '/landing-pages/{landing_page_id}/translate', method: HTTP_METHODS.POST },
24532
24546
  };
24533
24547
  return TitlesRoute;
24534
24548
  }());
@@ -25001,6 +25015,64 @@ var Titles = /** @class */ (function () {
25001
25015
  Titles.updateAdministrator = function (title_id, user_id, data, params) {
25002
25016
  return Requests.processRoute(TitlesRoute.routes.updateAdministrator, data, { title_id: title_id, user_id: user_id }, params);
25003
25017
  };
25018
+ /**
25019
+ * List ad conversion events for a title with filtering
25020
+ */
25021
+ Titles.listAdConversionEvents = function (title_id, params) {
25022
+ return Requests.processRoute(TitlesRoute.routes.listAdConversionEvents, {}, { title_id: title_id }, params);
25023
+ };
25024
+ /**
25025
+ * Retry a failed or pending ad conversion event
25026
+ */
25027
+ Titles.retryAdConversionEvent = function (title_id, event_id) {
25028
+ return Requests.processRoute(TitlesRoute.routes.retryAdConversionEvent, {}, { title_id: title_id, event_id: event_id });
25029
+ };
25030
+ /**
25031
+ * List all landing pages for a specific title.
25032
+ * @param title_id The UUID of the title.
25033
+ * @param params Optional query parameters for pagination.
25034
+ */
25035
+ Titles.listLandingPages = function (title_id, params) {
25036
+ return Requests.processRoute(TitlesRoute.routes.listLandingPages, {}, { title_id: title_id }, params);
25037
+ };
25038
+ /**
25039
+ * Create a new landing page for a title.
25040
+ * @param title_id The UUID of the title.
25041
+ * @param data The data for the new landing page.
25042
+ */
25043
+ Titles.createLandingPage = function (title_id, data, params) {
25044
+ return Requests.processRoute(TitlesRoute.routes.createLandingPage, data, { title_id: title_id }, params);
25045
+ };
25046
+ /**
25047
+ * View a specific landing page by its ID.
25048
+ * @param landing_page_id The UUID of the landing page.
25049
+ */
25050
+ Titles.viewLandingPage = function (landing_page_id, params) {
25051
+ return Requests.processRoute(TitlesRoute.routes.viewLandingPage, {}, { landing_page_id: landing_page_id }, params);
25052
+ };
25053
+ /**
25054
+ * Update an existing landing page.
25055
+ * @param landing_page_id The UUID of the landing page to update.
25056
+ * @param data The new data for the landing page.
25057
+ */
25058
+ Titles.updateLandingPage = function (landing_page_id, data, params) {
25059
+ return Requests.processRoute(TitlesRoute.routes.updateLandingPage, data, { landing_page_id: landing_page_id }, params);
25060
+ };
25061
+ /**
25062
+ * Delete a landing page.
25063
+ * @param landing_page_id The UUID of the landing page to delete.
25064
+ */
25065
+ Titles.deleteLandingPage = function (landing_page_id, params) {
25066
+ return Requests.processRoute(TitlesRoute.routes.deleteLandingPage, {}, { landing_page_id: landing_page_id }, params);
25067
+ };
25068
+ /**
25069
+ * Trigger an AI translation for a landing page.
25070
+ * @param landing_page_id The UUID of the landing page.
25071
+ * @param data An object containing the target language code, e.g., { language_code: 'es' }.
25072
+ */
25073
+ Titles.translateLandingPage = function (landing_page_id, data, params) {
25074
+ return Requests.processRoute(TitlesRoute.routes.translateLandingPage, data, { landing_page_id: landing_page_id }, params);
25075
+ };
25004
25076
  return Titles;
25005
25077
  }());
25006
25078
 
@@ -25080,6 +25152,7 @@ var CampaignsRoute = /** @class */ (function () {
25080
25152
  exportSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/export', method: HTTP_METHODS.GET },
25081
25153
  sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
25082
25154
  sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
25155
+ updateAutoInviteCriteria: { url: '/campaigns/{campaign_id}/sourcing/auto-invite-criteria', method: HTTP_METHODS.PUT },
25083
25156
  };
25084
25157
  return CampaignsRoute;
25085
25158
  }());
@@ -25894,6 +25967,16 @@ var Campaigns = /** @class */ (function () {
25894
25967
  Campaigns.sourcingGetGamesByIds = function (campaign_id, data) {
25895
25968
  return Requests.processRoute(CampaignsRoute.routes.sourcingGetGamesByIds, data, { campaign_id: campaign_id });
25896
25969
  };
25970
+ /**
25971
+ * Get full game details from a list of IGDB IDs.
25972
+ * @param campaign_id The UUID of the campaign.
25973
+ * @param data An object containing the array of IGDB IDs.
25974
+ * @param data.igdb_ids An array of IGDB game IDs.
25975
+ * @returns promise
25976
+ */
25977
+ Campaigns.updateAutoInviteCriteria = function (campaign_id, data) {
25978
+ return Requests.processRoute(CampaignsRoute.routes.updateAutoInviteCriteria, data, { campaign_id: campaign_id });
25979
+ };
25897
25980
  return Campaigns;
25898
25981
  }());
25899
25982