glitch-javascript-sdk 2.3.8 → 2.3.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 +15 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Scheduler.d.ts +9 -0
- package/dist/esm/index.js +15 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +9 -0
- package/package.json +1 -1
- package/src/api/Scheduler.ts +29 -17
- package/src/routes/SchedulerRoute.ts +7 -2
|
@@ -537,5 +537,14 @@ declare class Scheduler {
|
|
|
537
537
|
* @returns promise
|
|
538
538
|
*/
|
|
539
539
|
static syncHistory<T>(scheduler_id: string, platform: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
540
|
+
/**
|
|
541
|
+
* Generate hashtags for content based on scheduler settings.
|
|
542
|
+
*
|
|
543
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
544
|
+
* @param data { content: string, platform?: string }
|
|
545
|
+
*
|
|
546
|
+
* @returns promise
|
|
547
|
+
*/
|
|
548
|
+
static generateHashtags<T>(scheduler_id: string, data: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
540
549
|
}
|
|
541
550
|
export default Scheduler;
|
package/dist/esm/index.js
CHANGED
|
@@ -14124,6 +14124,10 @@ var SchedulerRoute = /** @class */ (function () {
|
|
|
14124
14124
|
syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
|
|
14125
14125
|
getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
|
|
14126
14126
|
syncHistory: { url: '/schedulers/{scheduler_id}/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
14127
|
+
generateHashtags: {
|
|
14128
|
+
url: '/schedulers/{scheduler_id}/generateHashtags',
|
|
14129
|
+
method: HTTP_METHODS.POST
|
|
14130
|
+
},
|
|
14127
14131
|
};
|
|
14128
14132
|
return SchedulerRoute;
|
|
14129
14133
|
}());
|
|
@@ -14803,6 +14807,17 @@ var Scheduler = /** @class */ (function () {
|
|
|
14803
14807
|
Scheduler.syncHistory = function (scheduler_id, platform, params) {
|
|
14804
14808
|
return Requests.processRoute(SchedulerRoute.routes.syncHistory, {}, { scheduler_id: scheduler_id, platform: platform }, params);
|
|
14805
14809
|
};
|
|
14810
|
+
/**
|
|
14811
|
+
* Generate hashtags for content based on scheduler settings.
|
|
14812
|
+
*
|
|
14813
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
14814
|
+
* @param data { content: string, platform?: string }
|
|
14815
|
+
*
|
|
14816
|
+
* @returns promise
|
|
14817
|
+
*/
|
|
14818
|
+
Scheduler.generateHashtags = function (scheduler_id, data, params) {
|
|
14819
|
+
return Requests.processRoute(SchedulerRoute.routes.generateHashtags, data, { scheduler_id: scheduler_id }, params);
|
|
14820
|
+
};
|
|
14806
14821
|
return Scheduler;
|
|
14807
14822
|
}());
|
|
14808
14823
|
|