glitch-javascript-sdk 1.8.5 → 1.8.7

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
@@ -19906,6 +19906,30 @@ var AdsRoute = /** @class */ (function () {
19906
19906
  url: "/ads/reddit/targeting/third_party_audiences",
19907
19907
  method: HTTP_METHODS.GET,
19908
19908
  },
19909
+ syncCampaign: {
19910
+ url: "/ads/campaigns/{campaign_id}/sync",
19911
+ method: HTTP_METHODS.POST,
19912
+ },
19913
+ syncGroup: {
19914
+ url: "/ads/campaigns/{campaign_id}/groups/{group_id}/sync",
19915
+ method: HTTP_METHODS.POST,
19916
+ },
19917
+ getRedditAdPosts: {
19918
+ url: "/ads/posts/reddit",
19919
+ method: HTTP_METHODS.GET,
19920
+ },
19921
+ createRedditAdPost: {
19922
+ url: "/ads/posts/reddit",
19923
+ method: HTTP_METHODS.POST,
19924
+ },
19925
+ retrieveRedditAdPost: {
19926
+ url: "/ads/posts/reddit/{post_id}",
19927
+ method: HTTP_METHODS.GET,
19928
+ },
19929
+ updateRedditAdPost: {
19930
+ url: "/ads/posts/reddit/{post_id}",
19931
+ method: HTTP_METHODS.PUT,
19932
+ },
19909
19933
  };
19910
19934
  return AdsRoute;
19911
19935
  }());
@@ -20238,6 +20262,42 @@ var Ads = /** @class */ (function () {
20238
20262
  Ads.listRedditThirdPartyAudiences = function (params) {
20239
20263
  return Requests.processRoute(AdsRoute.routes.getRedditThirdPartyAudiences, undefined, undefined, params);
20240
20264
  };
20265
+ /**
20266
+ * Sync an Ad Campaign with the remote platform
20267
+ *
20268
+ * @param campaign_id The UUID of the campaign to sync
20269
+ * @param params Optional query parameters
20270
+ * @returns The synced AdCampaign resource
20271
+ */
20272
+ Ads.syncCampaign = function (campaign_id, params) {
20273
+ return Requests.processRoute(AdsRoute.routes.syncCampaign, undefined, { campaign_id: campaign_id }, params);
20274
+ };
20275
+ /**
20276
+ * Sync an Ad Group with the remote platform
20277
+ *
20278
+ * @param campaign_id The UUID of the parent campaign
20279
+ * @param group_id The UUID of the ad group to sync
20280
+ * @param params Optional query parameters
20281
+ * @returns The synced AdGroup resource
20282
+ */
20283
+ Ads.syncGroup = function (campaign_id, group_id, params) {
20284
+ return Requests.processRoute(AdsRoute.routes.syncGroup, undefined, { campaign_id: campaign_id, group_id: group_id }, params);
20285
+ };
20286
+ Ads.listRedditAdPosts = function (params) {
20287
+ return Requests.processRoute(AdsRoute.routes.getRedditAdPosts, undefined, undefined, params);
20288
+ };
20289
+ /** Create a Reddit ad-style social-media post */
20290
+ Ads.createRedditAdPost = function (data, params) {
20291
+ return Requests.processRoute(AdsRoute.routes.createRedditAdPost, data, {}, params);
20292
+ };
20293
+ /** Retrieve a single Reddit ad-style social-media post */
20294
+ Ads.viewRedditAdPost = function (post_id, params) {
20295
+ return Requests.processRoute(AdsRoute.routes.retrieveRedditAdPost, {}, { post_id: post_id }, params);
20296
+ };
20297
+ /** Update a Reddit ad-style social-media post */
20298
+ Ads.updateRedditAdPost = function (post_id, data, params) {
20299
+ return Requests.processRoute(AdsRoute.routes.updateRedditAdPost, data, { post_id: post_id }, params);
20300
+ };
20241
20301
  return Ads;
20242
20302
  }());
20243
20303