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.
@@ -251,5 +251,29 @@ declare class Ads {
251
251
  * GET /ads/reddit/targeting/third_party_audiences
252
252
  */
253
253
  static listRedditThirdPartyAudiences<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
254
+ /**
255
+ * Sync an Ad Campaign with the remote platform
256
+ *
257
+ * @param campaign_id The UUID of the campaign to sync
258
+ * @param params Optional query parameters
259
+ * @returns The synced AdCampaign resource
260
+ */
261
+ static syncCampaign<T>(campaign_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
262
+ /**
263
+ * Sync an Ad Group with the remote platform
264
+ *
265
+ * @param campaign_id The UUID of the parent campaign
266
+ * @param group_id The UUID of the ad group to sync
267
+ * @param params Optional query parameters
268
+ * @returns The synced AdGroup resource
269
+ */
270
+ static syncGroup<T>(campaign_id: string, group_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
271
+ static listRedditAdPosts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
272
+ /** Create a Reddit ad-style social-media post */
273
+ static createRedditAdPost<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
274
+ /** Retrieve a single Reddit ad-style social-media post */
275
+ static viewRedditAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
276
+ /** Update a Reddit ad-style social-media post */
277
+ static updateRedditAdPost<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
254
278
  }
255
279
  export default Ads;
package/dist/esm/index.js CHANGED
@@ -6722,6 +6722,30 @@ var AdsRoute = /** @class */ (function () {
6722
6722
  url: "/ads/reddit/targeting/third_party_audiences",
6723
6723
  method: HTTP_METHODS.GET,
6724
6724
  },
6725
+ syncCampaign: {
6726
+ url: "/ads/campaigns/{campaign_id}/sync",
6727
+ method: HTTP_METHODS.POST,
6728
+ },
6729
+ syncGroup: {
6730
+ url: "/ads/campaigns/{campaign_id}/groups/{group_id}/sync",
6731
+ method: HTTP_METHODS.POST,
6732
+ },
6733
+ getRedditAdPosts: {
6734
+ url: "/ads/posts/reddit",
6735
+ method: HTTP_METHODS.GET,
6736
+ },
6737
+ createRedditAdPost: {
6738
+ url: "/ads/posts/reddit",
6739
+ method: HTTP_METHODS.POST,
6740
+ },
6741
+ retrieveRedditAdPost: {
6742
+ url: "/ads/posts/reddit/{post_id}",
6743
+ method: HTTP_METHODS.GET,
6744
+ },
6745
+ updateRedditAdPost: {
6746
+ url: "/ads/posts/reddit/{post_id}",
6747
+ method: HTTP_METHODS.PUT,
6748
+ },
6725
6749
  };
6726
6750
  return AdsRoute;
6727
6751
  }());
@@ -7054,6 +7078,42 @@ var Ads = /** @class */ (function () {
7054
7078
  Ads.listRedditThirdPartyAudiences = function (params) {
7055
7079
  return Requests.processRoute(AdsRoute.routes.getRedditThirdPartyAudiences, undefined, undefined, params);
7056
7080
  };
7081
+ /**
7082
+ * Sync an Ad Campaign with the remote platform
7083
+ *
7084
+ * @param campaign_id The UUID of the campaign to sync
7085
+ * @param params Optional query parameters
7086
+ * @returns The synced AdCampaign resource
7087
+ */
7088
+ Ads.syncCampaign = function (campaign_id, params) {
7089
+ return Requests.processRoute(AdsRoute.routes.syncCampaign, undefined, { campaign_id: campaign_id }, params);
7090
+ };
7091
+ /**
7092
+ * Sync an Ad Group with the remote platform
7093
+ *
7094
+ * @param campaign_id The UUID of the parent campaign
7095
+ * @param group_id The UUID of the ad group to sync
7096
+ * @param params Optional query parameters
7097
+ * @returns The synced AdGroup resource
7098
+ */
7099
+ Ads.syncGroup = function (campaign_id, group_id, params) {
7100
+ return Requests.processRoute(AdsRoute.routes.syncGroup, undefined, { campaign_id: campaign_id, group_id: group_id }, params);
7101
+ };
7102
+ Ads.listRedditAdPosts = function (params) {
7103
+ return Requests.processRoute(AdsRoute.routes.getRedditAdPosts, undefined, undefined, params);
7104
+ };
7105
+ /** Create a Reddit ad-style social-media post */
7106
+ Ads.createRedditAdPost = function (data, params) {
7107
+ return Requests.processRoute(AdsRoute.routes.createRedditAdPost, data, {}, params);
7108
+ };
7109
+ /** Retrieve a single Reddit ad-style social-media post */
7110
+ Ads.viewRedditAdPost = function (post_id, params) {
7111
+ return Requests.processRoute(AdsRoute.routes.retrieveRedditAdPost, {}, { post_id: post_id }, params);
7112
+ };
7113
+ /** Update a Reddit ad-style social-media post */
7114
+ Ads.updateRedditAdPost = function (post_id, data, params) {
7115
+ return Requests.processRoute(AdsRoute.routes.updateRedditAdPost, data, { post_id: post_id }, params);
7116
+ };
7057
7117
  return Ads;
7058
7118
  }());
7059
7119