glitch-javascript-sdk 1.8.6 → 1.8.8

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.
@@ -268,5 +268,26 @@ declare class Ads {
268
268
  * @returns The synced AdGroup resource
269
269
  */
270
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>>;
278
+ static listTwitterAdPosts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
279
+ static createTwitterAdPost<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
280
+ static viewTwitterAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
281
+ static updateTwitterAdPost<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
282
+ static deleteTwitterAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
283
+ static listFacebookAdPosts<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
284
+ static createFacebookAdPost<T>(data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
285
+ static viewFacebookAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
286
+ static updateFacebookAdPost<T>(post_id: string, data?: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
287
+ static deleteFacebookAdPost<T>(post_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
288
+ static tiktokUploadImage<T>(data: FormData, params?: Record<string, any>): AxiosPromise<Response<T>>;
289
+ static tiktokUploadVideo<T>(data: FormData, params?: Record<string, any>): AxiosPromise<Response<T>>;
290
+ static tiktokUploadMusic<T>(data: FormData, params?: Record<string, any>): AxiosPromise<Response<T>>;
291
+ static tiktokGetMediaInfo<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
271
292
  }
272
293
  export default Ads;
package/dist/esm/index.js CHANGED
@@ -6730,6 +6730,78 @@ var AdsRoute = /** @class */ (function () {
6730
6730
  url: "/ads/campaigns/{campaign_id}/groups/{group_id}/sync",
6731
6731
  method: HTTP_METHODS.POST,
6732
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
+ },
6749
+ getTwitterAdPosts: {
6750
+ url: "/ads/posts/twitter",
6751
+ method: HTTP_METHODS.GET,
6752
+ },
6753
+ createTwitterAdPost: {
6754
+ url: "/ads/posts/twitter",
6755
+ method: HTTP_METHODS.POST,
6756
+ },
6757
+ retrieveTwitterAdPost: {
6758
+ url: "/ads/posts/twitter/{post_id}",
6759
+ method: HTTP_METHODS.GET,
6760
+ },
6761
+ updateTwitterAdPost: {
6762
+ url: "/ads/posts/twitter/{post_id}",
6763
+ method: HTTP_METHODS.PUT,
6764
+ },
6765
+ deleteTwitterAdPost: {
6766
+ url: "/ads/posts/twitter/{post_id}",
6767
+ method: HTTP_METHODS.DELETE,
6768
+ },
6769
+ getFacebookAdPosts: {
6770
+ url: "/ads/posts/facebook",
6771
+ method: HTTP_METHODS.GET,
6772
+ },
6773
+ createFacebookAdPost: {
6774
+ url: "/ads/posts/facebook",
6775
+ method: HTTP_METHODS.POST,
6776
+ },
6777
+ retrieveFacebookAdPost: {
6778
+ url: "/ads/posts/facebook/{post_id}",
6779
+ method: HTTP_METHODS.GET,
6780
+ },
6781
+ updateFacebookAdPost: {
6782
+ url: "/ads/posts/facebook/{post_id}",
6783
+ method: HTTP_METHODS.PUT,
6784
+ },
6785
+ deleteFacebookAdPost: {
6786
+ url: "/ads/posts/facebook/{post_id}",
6787
+ method: HTTP_METHODS.DELETE,
6788
+ },
6789
+ tiktokUploadImage: {
6790
+ url: "/ads/posts/tiktok/upload/image",
6791
+ method: HTTP_METHODS.POST,
6792
+ },
6793
+ tiktokUploadVideo: {
6794
+ url: "/ads/posts/tiktok/upload/video",
6795
+ method: HTTP_METHODS.POST,
6796
+ },
6797
+ tiktokUploadMusic: {
6798
+ url: "/ads/posts/tiktok/upload/music",
6799
+ method: HTTP_METHODS.POST,
6800
+ },
6801
+ tiktokGetMediaInfo: {
6802
+ url: "/ads/posts/tiktok/media/info",
6803
+ method: HTTP_METHODS.GET,
6804
+ },
6733
6805
  };
6734
6806
  return AdsRoute;
6735
6807
  }());
@@ -7083,6 +7155,63 @@ var Ads = /** @class */ (function () {
7083
7155
  Ads.syncGroup = function (campaign_id, group_id, params) {
7084
7156
  return Requests.processRoute(AdsRoute.routes.syncGroup, undefined, { campaign_id: campaign_id, group_id: group_id }, params);
7085
7157
  };
7158
+ Ads.listRedditAdPosts = function (params) {
7159
+ return Requests.processRoute(AdsRoute.routes.getRedditAdPosts, undefined, undefined, params);
7160
+ };
7161
+ /** Create a Reddit ad-style social-media post */
7162
+ Ads.createRedditAdPost = function (data, params) {
7163
+ return Requests.processRoute(AdsRoute.routes.createRedditAdPost, data, {}, params);
7164
+ };
7165
+ /** Retrieve a single Reddit ad-style social-media post */
7166
+ Ads.viewRedditAdPost = function (post_id, params) {
7167
+ return Requests.processRoute(AdsRoute.routes.retrieveRedditAdPost, {}, { post_id: post_id }, params);
7168
+ };
7169
+ /** Update a Reddit ad-style social-media post */
7170
+ Ads.updateRedditAdPost = function (post_id, data, params) {
7171
+ return Requests.processRoute(AdsRoute.routes.updateRedditAdPost, data, { post_id: post_id }, params);
7172
+ };
7173
+ Ads.listTwitterAdPosts = function (params) {
7174
+ return Requests.processRoute(AdsRoute.routes.getTwitterAdPosts, undefined, undefined, params);
7175
+ };
7176
+ Ads.createTwitterAdPost = function (data, params) {
7177
+ return Requests.processRoute(AdsRoute.routes.createTwitterAdPost, data, {}, params);
7178
+ };
7179
+ Ads.viewTwitterAdPost = function (post_id, params) {
7180
+ return Requests.processRoute(AdsRoute.routes.retrieveTwitterAdPost, {}, { post_id: post_id }, params);
7181
+ };
7182
+ Ads.updateTwitterAdPost = function (post_id, data, params) {
7183
+ return Requests.processRoute(AdsRoute.routes.updateTwitterAdPost, data, { post_id: post_id }, params);
7184
+ };
7185
+ Ads.deleteTwitterAdPost = function (post_id, params) {
7186
+ return Requests.processRoute(AdsRoute.routes.deleteTwitterAdPost, {}, { post_id: post_id }, params);
7187
+ };
7188
+ Ads.listFacebookAdPosts = function (params) {
7189
+ return Requests.processRoute(AdsRoute.routes.getFacebookAdPosts, undefined, undefined, params);
7190
+ };
7191
+ Ads.createFacebookAdPost = function (data, params) {
7192
+ return Requests.processRoute(AdsRoute.routes.createFacebookAdPost, data, {}, params);
7193
+ };
7194
+ Ads.viewFacebookAdPost = function (post_id, params) {
7195
+ return Requests.processRoute(AdsRoute.routes.retrieveFacebookAdPost, {}, { post_id: post_id }, params);
7196
+ };
7197
+ Ads.updateFacebookAdPost = function (post_id, data, params) {
7198
+ return Requests.processRoute(AdsRoute.routes.updateFacebookAdPost, data, { post_id: post_id }, params);
7199
+ };
7200
+ Ads.deleteFacebookAdPost = function (post_id, params) {
7201
+ return Requests.processRoute(AdsRoute.routes.deleteFacebookAdPost, {}, { post_id: post_id }, params);
7202
+ };
7203
+ Ads.tiktokUploadImage = function (data, params) {
7204
+ return Requests.processRoute(AdsRoute.routes.tiktokUploadImage, data, {}, params);
7205
+ };
7206
+ Ads.tiktokUploadVideo = function (data, params) {
7207
+ return Requests.processRoute(AdsRoute.routes.tiktokUploadVideo, data, {}, params);
7208
+ };
7209
+ Ads.tiktokUploadMusic = function (data, params) {
7210
+ return Requests.processRoute(AdsRoute.routes.tiktokUploadMusic, data, {}, params);
7211
+ };
7212
+ Ads.tiktokGetMediaInfo = function (params) {
7213
+ return Requests.processRoute(AdsRoute.routes.tiktokGetMediaInfo, undefined, undefined, params);
7214
+ };
7086
7215
  return Ads;
7087
7216
  }());
7088
7217