glitch-javascript-sdk 1.8.0 → 1.8.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
@@ -19877,6 +19877,35 @@ var AdsRoute = /** @class */ (function () {
19877
19877
  url: "/ads/campaigns/{campaign_id}/groups/{group_id}/triggers/{trigger_id}",
19878
19878
  method: HTTP_METHODS.DELETE,
19879
19879
  },
19880
+ // REDDIT TARGETING routes
19881
+ getRedditCarriers: {
19882
+ url: "/ads/reddit/targeting/carriers",
19883
+ method: HTTP_METHODS.GET,
19884
+ },
19885
+ getRedditCommunities: {
19886
+ url: "/ads/reddit/targeting/communities",
19887
+ method: HTTP_METHODS.GET,
19888
+ },
19889
+ searchRedditCommunities: {
19890
+ url: "/ads/reddit/targeting/communities/search",
19891
+ method: HTTP_METHODS.GET,
19892
+ },
19893
+ getRedditDevices: {
19894
+ url: "/ads/reddit/targeting/devices",
19895
+ method: HTTP_METHODS.GET,
19896
+ },
19897
+ getRedditGeolocations: {
19898
+ url: "/ads/reddit/targeting/geolocations",
19899
+ method: HTTP_METHODS.GET,
19900
+ },
19901
+ getRedditInterests: {
19902
+ url: "/ads/reddit/targeting/interests",
19903
+ method: HTTP_METHODS.GET,
19904
+ },
19905
+ getRedditThirdPartyAudiences: {
19906
+ url: "/ads/reddit/targeting/third_party_audiences",
19907
+ method: HTTP_METHODS.GET,
19908
+ },
19880
19909
  };
19881
19910
  return AdsRoute;
19882
19911
  }());
@@ -20164,6 +20193,51 @@ var Ads = /** @class */ (function () {
20164
20193
  Ads.listCampaignFundingInstruments = function (campaign_id, params) {
20165
20194
  return Requests.processRoute(AdsRoute.routes.getCampaignFundingInstruments, undefined, { campaign_id: campaign_id }, params);
20166
20195
  };
20196
+ /**
20197
+ * GET /ads/reddit/targeting/carriers
20198
+ *
20199
+ * Example usage:
20200
+ * Ads.listRedditCarriers({ scheduler_id: 'uuid-of-scheduler', 'page.size': 50 })
20201
+ */
20202
+ Ads.listRedditCarriers = function (params) {
20203
+ return Requests.processRoute(AdsRoute.routes.getRedditCarriers, undefined, undefined, params);
20204
+ };
20205
+ /**
20206
+ * GET /ads/reddit/targeting/communities?names=sub1,sub2
20207
+ */
20208
+ Ads.listRedditCommunities = function (params) {
20209
+ return Requests.processRoute(AdsRoute.routes.getRedditCommunities, undefined, undefined, params);
20210
+ };
20211
+ /**
20212
+ * GET /ads/reddit/targeting/communities/search?query=xyz
20213
+ */
20214
+ Ads.searchRedditCommunities = function (params) {
20215
+ return Requests.processRoute(AdsRoute.routes.searchRedditCommunities, undefined, undefined, params);
20216
+ };
20217
+ /**
20218
+ * GET /ads/reddit/targeting/devices
20219
+ */
20220
+ Ads.listRedditDevices = function (params) {
20221
+ return Requests.processRoute(AdsRoute.routes.getRedditDevices, undefined, undefined, params);
20222
+ };
20223
+ /**
20224
+ * GET /ads/reddit/targeting/geolocations
20225
+ */
20226
+ Ads.listRedditGeolocations = function (params) {
20227
+ return Requests.processRoute(AdsRoute.routes.getRedditGeolocations, undefined, undefined, params);
20228
+ };
20229
+ /**
20230
+ * GET /ads/reddit/targeting/interests
20231
+ */
20232
+ Ads.listRedditInterests = function (params) {
20233
+ return Requests.processRoute(AdsRoute.routes.getRedditInterests, undefined, undefined, params);
20234
+ };
20235
+ /**
20236
+ * GET /ads/reddit/targeting/third_party_audiences
20237
+ */
20238
+ Ads.listRedditThirdPartyAudiences = function (params) {
20239
+ return Requests.processRoute(AdsRoute.routes.getRedditThirdPartyAudiences, undefined, undefined, params);
20240
+ };
20167
20241
  return Ads;
20168
20242
  }());
20169
20243
 
@@ -25295,6 +25369,7 @@ var SchedulerRoute = /** @class */ (function () {
25295
25369
  clearTwitchAuth: { url: '/schedulers/{scheduler_id}/clearTwitchAuth', method: HTTP_METHODS.DELETE },
25296
25370
  clearKickAuth: { url: '/schedulers/{scheduler_id}/clearKickAuth', method: HTTP_METHODS.DELETE },
25297
25371
  clearRedditAuth: { url: '/schedulers/{scheduler_id}/clearRedditAuth', method: HTTP_METHODS.DELETE },
25372
+ clearRedditAdsAuth: { url: '/schedulers/{scheduler_id}/clearRedditAdsAuth', method: HTTP_METHODS.DELETE },
25298
25373
  clearYouTubeAuth: { url: '/schedulers/{scheduler_id}/clearYouTubeAuth', method: HTTP_METHODS.DELETE },
25299
25374
  clearPatreonAuth: { url: '/schedulers/{scheduler_id}/clearPatreonAuth', method: HTTP_METHODS.DELETE },
25300
25375
  clearPinterestAuth: { url: '/schedulers/{scheduler_id}/clearPinterestAuth', method: HTTP_METHODS.DELETE },
@@ -25601,6 +25676,15 @@ var Scheduler = /** @class */ (function () {
25601
25676
  Scheduler.clearRedditAuth = function (scheduler_id, params) {
25602
25677
  return Requests.processRoute(SchedulerRoute.routes.clearRedditAuth, {}, { scheduler_id: scheduler_id }, params);
25603
25678
  };
25679
+ /**
25680
+ * Clear Reddit Ads OAuth credentials from a promotion schedule.
25681
+ *
25682
+ * @param scheduler_id The ID of the promotion schedule.
25683
+ * @returns promise
25684
+ */
25685
+ Scheduler.clearRedditAdsAuth = function (scheduler_id, params) {
25686
+ return Requests.processRoute(SchedulerRoute.routes.clearRedditAdsAuth, {}, { scheduler_id: scheduler_id }, params);
25687
+ };
25604
25688
  /**
25605
25689
  * Clear YouTube OAuth credentials from a promotion schedule.
25606
25690
  *