glitch-javascript-sdk 3.8.9 → 3.8.10

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
@@ -7809,6 +7809,15 @@ var Ads = /** @class */ (function () {
7809
7809
  Ads.lookupTwitterTargeting = function (resource, params) {
7810
7810
  return Requests.processRoute(AdsRoute.routes.twitterTargetingDiscovery, undefined, { resource: resource }, params);
7811
7811
  };
7812
+ /**
7813
+ * Look up Twitter location targeting options.
7814
+ *
7815
+ * Kept as a named convenience method for frontend compatibility while the
7816
+ * generic lookupTwitterTargeting method remains the canonical route helper.
7817
+ */
7818
+ Ads.listTwitterTargetingLocations = function (params) {
7819
+ return this.lookupTwitterTargeting('locations', params);
7820
+ };
7812
7821
  Ads.twitterTargetingSuggestions = function (params) {
7813
7822
  return Requests.processRoute(AdsRoute.routes.twitterTargetingSuggestions, undefined, undefined, params);
7814
7823
  };
@@ -8330,6 +8339,10 @@ var Communities = /** @class */ (function () {
8330
8339
  Communities.updatetUser = function (community_id, user_id, data, params) {
8331
8340
  return Requests.processRoute(CommunitiesRoute.routes.updateUser, data, { community_id: community_id, user_id: user_id }, params);
8332
8341
  };
8342
+ /** Correctly-spelled alias retained alongside the legacy method name. */
8343
+ Communities.updateUser = function (community_id, user_id, data, params) {
8344
+ return this.updatetUser(community_id, user_id, data, params);
8345
+ };
8333
8346
  /**
8334
8347
  * Removes a user from a community.
8335
8348
  *
@@ -13095,6 +13108,10 @@ var Titles = /** @class */ (function () {
13095
13108
  Titles.getProgressionPlayerAchievements = function (title_id, install_id) {
13096
13109
  return Requests.processRoute(TitlesRoute.routes.progressionPlayerAchievements, undefined, { title_id: title_id, install_id: install_id });
13097
13110
  };
13111
+ /** Compatibility alias matching the list-style naming used by the frontend. */
13112
+ Titles.listProgressionPlayerAchievements = function (title_id, install_id) {
13113
+ return this.getProgressionPlayerAchievements(title_id, install_id);
13114
+ };
13098
13115
  /**
13099
13116
  * View leaderboard rankings.
13100
13117
  * @param params Optional filters like { around_me: true, install_id: 'uuid', season_id: 'uuid' }
@@ -13936,6 +13953,10 @@ var Campaigns = /** @class */ (function () {
13936
13953
  Campaigns.widthdrawInfluencerInvite = function (campaign_id, influencer_id, data, params) {
13937
13954
  return Requests.processRoute(CampaignsRoute.routes.widthdrawInfluencerInvite, data, { campaign_id: campaign_id, influencer_id: influencer_id }, params);
13938
13955
  };
13956
+ /** Correctly-spelled alias retained alongside the legacy method name. */
13957
+ Campaigns.withdrawInfluencerInvite = function (campaign_id, influencer_id, data, params) {
13958
+ return this.widthdrawInfluencerInvite(campaign_id, influencer_id, data, params);
13959
+ };
13939
13960
  /**
13940
13961
  * The route to mark an influencer reachout and finished, and it will no longer send reachouts.
13941
13962
  *
@@ -19093,8 +19114,20 @@ var Education = /** @class */ (function () {
19093
19114
  return Requests.processRoute(EducationRoute.routes.downloadCertificate, undefined, { uuid: uuid });
19094
19115
  };
19095
19116
  // --- 10. TEMPLATES & UPLOADS ---
19096
- Education.listTemplates = function () {
19097
- return Requests.processRoute(EducationRoute.routes.listTemplates);
19117
+ Education.listTemplates = function (params) {
19118
+ return Requests.processRoute(EducationRoute.routes.listTemplates, undefined, undefined, params);
19119
+ };
19120
+ Education.createTemplate = function (data) {
19121
+ return Requests.processRoute(EducationRoute.routes.createTemplate, data);
19122
+ };
19123
+ Education.viewTemplate = function (uuid, params) {
19124
+ return Requests.processRoute(EducationRoute.routes.viewTemplate, undefined, { uuid: uuid }, params);
19125
+ };
19126
+ Education.updateTemplate = function (uuid, data) {
19127
+ return Requests.processRoute(EducationRoute.routes.updateTemplate, data, { uuid: uuid });
19128
+ };
19129
+ Education.deleteTemplate = function (uuid) {
19130
+ return Requests.processRoute(EducationRoute.routes.deleteTemplate, undefined, { uuid: uuid });
19098
19131
  };
19099
19132
  Education.uploadTemplateSignature = function (uuid, file) {
19100
19133
  var url = EducationRoute.routes.uploadTemplateSignature.url.replace('{uuid}', uuid);