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.
@@ -220,5 +220,36 @@ declare class Ads {
220
220
  * @returns A response object with data (funding instruments)
221
221
  */
222
222
  static listCampaignFundingInstruments<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
223
+ /**
224
+ * GET /ads/reddit/targeting/carriers
225
+ *
226
+ * Example usage:
227
+ * Ads.listRedditCarriers({ scheduler_id: 'uuid-of-scheduler', 'page.size': 50 })
228
+ */
229
+ static listRedditCarriers<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
230
+ /**
231
+ * GET /ads/reddit/targeting/communities?names=sub1,sub2
232
+ */
233
+ static listRedditCommunities<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
234
+ /**
235
+ * GET /ads/reddit/targeting/communities/search?query=xyz
236
+ */
237
+ static searchRedditCommunities<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
238
+ /**
239
+ * GET /ads/reddit/targeting/devices
240
+ */
241
+ static listRedditDevices<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
242
+ /**
243
+ * GET /ads/reddit/targeting/geolocations
244
+ */
245
+ static listRedditGeolocations<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
246
+ /**
247
+ * GET /ads/reddit/targeting/interests
248
+ */
249
+ static listRedditInterests<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
250
+ /**
251
+ * GET /ads/reddit/targeting/third_party_audiences
252
+ */
253
+ static listRedditThirdPartyAudiences<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
223
254
  }
224
255
  export default Ads;
@@ -194,6 +194,13 @@ declare class Scheduler {
194
194
  * @returns promise
195
195
  */
196
196
  static clearRedditAuth<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
197
+ /**
198
+ * Clear Reddit Ads OAuth credentials from a promotion schedule.
199
+ *
200
+ * @param scheduler_id The ID of the promotion schedule.
201
+ * @returns promise
202
+ */
203
+ static clearRedditAdsAuth<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
197
204
  /**
198
205
  * Clear YouTube OAuth credentials from a promotion schedule.
199
206
  *
package/dist/esm/index.js CHANGED
@@ -6693,6 +6693,35 @@ var AdsRoute = /** @class */ (function () {
6693
6693
  url: "/ads/campaigns/{campaign_id}/groups/{group_id}/triggers/{trigger_id}",
6694
6694
  method: HTTP_METHODS.DELETE,
6695
6695
  },
6696
+ // REDDIT TARGETING routes
6697
+ getRedditCarriers: {
6698
+ url: "/ads/reddit/targeting/carriers",
6699
+ method: HTTP_METHODS.GET,
6700
+ },
6701
+ getRedditCommunities: {
6702
+ url: "/ads/reddit/targeting/communities",
6703
+ method: HTTP_METHODS.GET,
6704
+ },
6705
+ searchRedditCommunities: {
6706
+ url: "/ads/reddit/targeting/communities/search",
6707
+ method: HTTP_METHODS.GET,
6708
+ },
6709
+ getRedditDevices: {
6710
+ url: "/ads/reddit/targeting/devices",
6711
+ method: HTTP_METHODS.GET,
6712
+ },
6713
+ getRedditGeolocations: {
6714
+ url: "/ads/reddit/targeting/geolocations",
6715
+ method: HTTP_METHODS.GET,
6716
+ },
6717
+ getRedditInterests: {
6718
+ url: "/ads/reddit/targeting/interests",
6719
+ method: HTTP_METHODS.GET,
6720
+ },
6721
+ getRedditThirdPartyAudiences: {
6722
+ url: "/ads/reddit/targeting/third_party_audiences",
6723
+ method: HTTP_METHODS.GET,
6724
+ },
6696
6725
  };
6697
6726
  return AdsRoute;
6698
6727
  }());
@@ -6980,6 +7009,51 @@ var Ads = /** @class */ (function () {
6980
7009
  Ads.listCampaignFundingInstruments = function (campaign_id, params) {
6981
7010
  return Requests.processRoute(AdsRoute.routes.getCampaignFundingInstruments, undefined, { campaign_id: campaign_id }, params);
6982
7011
  };
7012
+ /**
7013
+ * GET /ads/reddit/targeting/carriers
7014
+ *
7015
+ * Example usage:
7016
+ * Ads.listRedditCarriers({ scheduler_id: 'uuid-of-scheduler', 'page.size': 50 })
7017
+ */
7018
+ Ads.listRedditCarriers = function (params) {
7019
+ return Requests.processRoute(AdsRoute.routes.getRedditCarriers, undefined, undefined, params);
7020
+ };
7021
+ /**
7022
+ * GET /ads/reddit/targeting/communities?names=sub1,sub2
7023
+ */
7024
+ Ads.listRedditCommunities = function (params) {
7025
+ return Requests.processRoute(AdsRoute.routes.getRedditCommunities, undefined, undefined, params);
7026
+ };
7027
+ /**
7028
+ * GET /ads/reddit/targeting/communities/search?query=xyz
7029
+ */
7030
+ Ads.searchRedditCommunities = function (params) {
7031
+ return Requests.processRoute(AdsRoute.routes.searchRedditCommunities, undefined, undefined, params);
7032
+ };
7033
+ /**
7034
+ * GET /ads/reddit/targeting/devices
7035
+ */
7036
+ Ads.listRedditDevices = function (params) {
7037
+ return Requests.processRoute(AdsRoute.routes.getRedditDevices, undefined, undefined, params);
7038
+ };
7039
+ /**
7040
+ * GET /ads/reddit/targeting/geolocations
7041
+ */
7042
+ Ads.listRedditGeolocations = function (params) {
7043
+ return Requests.processRoute(AdsRoute.routes.getRedditGeolocations, undefined, undefined, params);
7044
+ };
7045
+ /**
7046
+ * GET /ads/reddit/targeting/interests
7047
+ */
7048
+ Ads.listRedditInterests = function (params) {
7049
+ return Requests.processRoute(AdsRoute.routes.getRedditInterests, undefined, undefined, params);
7050
+ };
7051
+ /**
7052
+ * GET /ads/reddit/targeting/third_party_audiences
7053
+ */
7054
+ Ads.listRedditThirdPartyAudiences = function (params) {
7055
+ return Requests.processRoute(AdsRoute.routes.getRedditThirdPartyAudiences, undefined, undefined, params);
7056
+ };
6983
7057
  return Ads;
6984
7058
  }());
6985
7059
 
@@ -12111,6 +12185,7 @@ var SchedulerRoute = /** @class */ (function () {
12111
12185
  clearTwitchAuth: { url: '/schedulers/{scheduler_id}/clearTwitchAuth', method: HTTP_METHODS.DELETE },
12112
12186
  clearKickAuth: { url: '/schedulers/{scheduler_id}/clearKickAuth', method: HTTP_METHODS.DELETE },
12113
12187
  clearRedditAuth: { url: '/schedulers/{scheduler_id}/clearRedditAuth', method: HTTP_METHODS.DELETE },
12188
+ clearRedditAdsAuth: { url: '/schedulers/{scheduler_id}/clearRedditAdsAuth', method: HTTP_METHODS.DELETE },
12114
12189
  clearYouTubeAuth: { url: '/schedulers/{scheduler_id}/clearYouTubeAuth', method: HTTP_METHODS.DELETE },
12115
12190
  clearPatreonAuth: { url: '/schedulers/{scheduler_id}/clearPatreonAuth', method: HTTP_METHODS.DELETE },
12116
12191
  clearPinterestAuth: { url: '/schedulers/{scheduler_id}/clearPinterestAuth', method: HTTP_METHODS.DELETE },
@@ -12417,6 +12492,15 @@ var Scheduler = /** @class */ (function () {
12417
12492
  Scheduler.clearRedditAuth = function (scheduler_id, params) {
12418
12493
  return Requests.processRoute(SchedulerRoute.routes.clearRedditAuth, {}, { scheduler_id: scheduler_id }, params);
12419
12494
  };
12495
+ /**
12496
+ * Clear Reddit Ads OAuth credentials from a promotion schedule.
12497
+ *
12498
+ * @param scheduler_id The ID of the promotion schedule.
12499
+ * @returns promise
12500
+ */
12501
+ Scheduler.clearRedditAdsAuth = function (scheduler_id, params) {
12502
+ return Requests.processRoute(SchedulerRoute.routes.clearRedditAdsAuth, {}, { scheduler_id: scheduler_id }, params);
12503
+ };
12420
12504
  /**
12421
12505
  * Clear YouTube OAuth credentials from a promotion schedule.
12422
12506
  *