glitch-javascript-sdk 1.8.8 → 1.8.9
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 +14 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +8 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +19 -0
- package/src/routes/AdsRoute.ts +4 -0
package/dist/esm/api/Ads.d.ts
CHANGED
|
@@ -289,5 +289,13 @@ declare class Ads {
|
|
|
289
289
|
static tiktokUploadVideo<T>(data: FormData, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
290
290
|
static tiktokUploadMusic<T>(data: FormData, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
291
291
|
static tiktokGetMediaInfo<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
292
|
+
/**
|
|
293
|
+
* Sync an Ad with the remote platform.
|
|
294
|
+
*
|
|
295
|
+
* @param ad_id UUID of the ad to sync
|
|
296
|
+
* @param params Optional query parameters
|
|
297
|
+
* @returns The synced Ad resource
|
|
298
|
+
*/
|
|
299
|
+
static syncAd<T>(ad_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
292
300
|
}
|
|
293
301
|
export default Ads;
|
package/dist/esm/index.js
CHANGED
|
@@ -6802,6 +6802,10 @@ var AdsRoute = /** @class */ (function () {
|
|
|
6802
6802
|
url: "/ads/posts/tiktok/media/info",
|
|
6803
6803
|
method: HTTP_METHODS.GET,
|
|
6804
6804
|
},
|
|
6805
|
+
syncAd: {
|
|
6806
|
+
url: "/ads/creatives/{ad_id}/sync",
|
|
6807
|
+
method: HTTP_METHODS.POST,
|
|
6808
|
+
},
|
|
6805
6809
|
};
|
|
6806
6810
|
return AdsRoute;
|
|
6807
6811
|
}());
|
|
@@ -7212,6 +7216,16 @@ var Ads = /** @class */ (function () {
|
|
|
7212
7216
|
Ads.tiktokGetMediaInfo = function (params) {
|
|
7213
7217
|
return Requests.processRoute(AdsRoute.routes.tiktokGetMediaInfo, undefined, undefined, params);
|
|
7214
7218
|
};
|
|
7219
|
+
/**
|
|
7220
|
+
* Sync an Ad with the remote platform.
|
|
7221
|
+
*
|
|
7222
|
+
* @param ad_id UUID of the ad to sync
|
|
7223
|
+
* @param params Optional query parameters
|
|
7224
|
+
* @returns The synced Ad resource
|
|
7225
|
+
*/
|
|
7226
|
+
Ads.syncAd = function (ad_id, params) {
|
|
7227
|
+
return Requests.processRoute(AdsRoute.routes.syncAd, undefined, { ad_id: ad_id }, params);
|
|
7228
|
+
};
|
|
7215
7229
|
return Ads;
|
|
7216
7230
|
}());
|
|
7217
7231
|
|