glitch-javascript-sdk 2.1.8 → 2.2.0

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.
@@ -674,5 +674,13 @@ declare class Campaigns {
674
674
  static sourcingGetGamesByIds<T>(campaign_id: string, data: {
675
675
  igdb_ids: number[];
676
676
  }): AxiosPromise<Response<T>>;
677
+ /**
678
+ * Get full game details from a list of IGDB IDs.
679
+ * @param campaign_id The UUID of the campaign.
680
+ * @param data An object containing the array of IGDB IDs.
681
+ * @param data.igdb_ids An array of IGDB game IDs.
682
+ * @returns promise
683
+ */
684
+ static updateAutoInviteCriteria<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
677
685
  }
678
686
  export default Campaigns;
@@ -347,5 +347,25 @@ declare class Titles {
347
347
  * @returns AxiosPromise
348
348
  */
349
349
  static importKeys<T>(title_id: string, file: File | Blob, data?: Record<string, any>, params?: Record<string, any>): AxiosPromise<Response<T>>;
350
+ /**
351
+ * Update administrator email preferences for a title.
352
+ *
353
+ * @see https://api.glitch.fun/api/documentation#/Titles/updateTitleAdministrator
354
+ *
355
+ * @param title_id The id of the title.
356
+ * @param user_id The id of the user/administrator.
357
+ * @param data The preference data to update (notify_promotion_schedule_reminder_email, notify_weekly_promotion_performance_email).
358
+ *
359
+ * @returns Promise
360
+ */
361
+ static updateAdministrator<T>(title_id: string, user_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
362
+ /**
363
+ * List ad conversion events for a title with filtering
364
+ */
365
+ static listAdConversionEvents<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
366
+ /**
367
+ * Retry a failed or pending ad conversion event
368
+ */
369
+ static retryAdConversionEvent<T>(title_id: string, event_id: string): AxiosPromise<Response<T>>;
350
370
  }
351
371
  export default Titles;
package/dist/esm/index.js CHANGED
@@ -11247,6 +11247,7 @@ var TitlesRoute = /** @class */ (function () {
11247
11247
  activeRetentions: { url: '/titles/{title_id}/retentions/active', method: HTTP_METHODS.GET },
11248
11248
  retentionAnalysis: { url: '/titles/{title_id}/retentions/analysis', method: HTTP_METHODS.GET },
11249
11249
  distinctDimensions: { url: '/titles/{title_id}/installs/distinctDimensions', method: HTTP_METHODS.GET },
11250
+ updateAdministrator: { url: '/titles/{title_id}/updateAdministrator/{user_id}', method: HTTP_METHODS.PUT },
11250
11251
  listSessions: {
11251
11252
  url: '/titles/{title_id}/installs/sessions',
11252
11253
  method: HTTP_METHODS.GET
@@ -11344,6 +11345,14 @@ var TitlesRoute = /** @class */ (function () {
11344
11345
  url: "/titles/{title_id}/purchases/reports/item-type-stats",
11345
11346
  method: HTTP_METHODS.GET,
11346
11347
  },
11348
+ listAdConversionEvents: {
11349
+ url: '/titles/{title_id}/ad-conversion-events',
11350
+ method: HTTP_METHODS.GET
11351
+ },
11352
+ retryAdConversionEvent: {
11353
+ url: '/titles/{title_id}/ad-conversion-events/{event_id}/retry',
11354
+ method: HTTP_METHODS.POST
11355
+ }
11347
11356
  };
11348
11357
  return TitlesRoute;
11349
11358
  }());
@@ -11802,6 +11811,32 @@ var Titles = /** @class */ (function () {
11802
11811
  var url = TitlesRoute.routes.importKeys.url.replace("{title_id}", title_id);
11803
11812
  return Requests.uploadFile(url, "file", file, data, params);
11804
11813
  };
11814
+ /**
11815
+ * Update administrator email preferences for a title.
11816
+ *
11817
+ * @see https://api.glitch.fun/api/documentation#/Titles/updateTitleAdministrator
11818
+ *
11819
+ * @param title_id The id of the title.
11820
+ * @param user_id The id of the user/administrator.
11821
+ * @param data The preference data to update (notify_promotion_schedule_reminder_email, notify_weekly_promotion_performance_email).
11822
+ *
11823
+ * @returns Promise
11824
+ */
11825
+ Titles.updateAdministrator = function (title_id, user_id, data, params) {
11826
+ return Requests.processRoute(TitlesRoute.routes.updateAdministrator, data, { title_id: title_id, user_id: user_id }, params);
11827
+ };
11828
+ /**
11829
+ * List ad conversion events for a title with filtering
11830
+ */
11831
+ Titles.listAdConversionEvents = function (title_id, params) {
11832
+ return Requests.processRoute(TitlesRoute.routes.listAdConversionEvents, {}, { title_id: title_id }, params);
11833
+ };
11834
+ /**
11835
+ * Retry a failed or pending ad conversion event
11836
+ */
11837
+ Titles.retryAdConversionEvent = function (title_id, event_id) {
11838
+ return Requests.processRoute(TitlesRoute.routes.retryAdConversionEvent, {}, { title_id: title_id, event_id: event_id });
11839
+ };
11805
11840
  return Titles;
11806
11841
  }());
11807
11842
 
@@ -11881,6 +11916,7 @@ var CampaignsRoute = /** @class */ (function () {
11881
11916
  exportSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/export', method: HTTP_METHODS.GET },
11882
11917
  sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
11883
11918
  sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
11919
+ updateAutoInviteCriteria: { url: '/campaigns/{campaign_id}/sourcing/auto-invite-criteria', method: HTTP_METHODS.PUT },
11884
11920
  };
11885
11921
  return CampaignsRoute;
11886
11922
  }());
@@ -12695,6 +12731,16 @@ var Campaigns = /** @class */ (function () {
12695
12731
  Campaigns.sourcingGetGamesByIds = function (campaign_id, data) {
12696
12732
  return Requests.processRoute(CampaignsRoute.routes.sourcingGetGamesByIds, data, { campaign_id: campaign_id });
12697
12733
  };
12734
+ /**
12735
+ * Get full game details from a list of IGDB IDs.
12736
+ * @param campaign_id The UUID of the campaign.
12737
+ * @param data An object containing the array of IGDB IDs.
12738
+ * @param data.igdb_ids An array of IGDB game IDs.
12739
+ * @returns promise
12740
+ */
12741
+ Campaigns.updateAutoInviteCriteria = function (campaign_id, data) {
12742
+ return Requests.processRoute(CampaignsRoute.routes.updateAutoInviteCriteria, data, { campaign_id: campaign_id });
12743
+ };
12698
12744
  return Campaigns;
12699
12745
  }());
12700
12746