glitch-javascript-sdk 2.2.4 → 2.2.5
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/Scheduler.d.ts +14 -0
- package/dist/esm/index.js +14 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +14 -0
- package/package.json +1 -1
- package/src/api/Scheduler.ts +14 -0
- package/src/routes/SchedulerRoute.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -5997,6 +5997,20 @@ declare class Scheduler {
|
|
|
5997
5997
|
* @returns promise
|
|
5998
5998
|
*/
|
|
5999
5999
|
static syncAllSchedulerComments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6000
|
+
/**
|
|
6001
|
+
* Get ad conversion actions for a specific platform linked to the scheduler.
|
|
6002
|
+
*
|
|
6003
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
|
|
6004
|
+
*
|
|
6005
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
6006
|
+
* @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
|
|
6007
|
+
*
|
|
6008
|
+
* @returns promise
|
|
6009
|
+
*/
|
|
6010
|
+
static getConversionActions<T>(scheduler_id: string, params: {
|
|
6011
|
+
platform: string;
|
|
6012
|
+
account_id?: string;
|
|
6013
|
+
}): AxiosPromise<Response<T>>;
|
|
6000
6014
|
}
|
|
6001
6015
|
|
|
6002
6016
|
declare class Funnel {
|
package/package.json
CHANGED
package/src/api/Scheduler.ts
CHANGED
|
@@ -799,6 +799,20 @@ class Scheduler {
|
|
|
799
799
|
return Requests.processRoute(SchedulerRoute.routes.syncAllSchedulerComments, {}, { scheduler_id }, params);
|
|
800
800
|
}
|
|
801
801
|
|
|
802
|
+
/**
|
|
803
|
+
* Get ad conversion actions for a specific platform linked to the scheduler.
|
|
804
|
+
*
|
|
805
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
|
|
806
|
+
*
|
|
807
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
808
|
+
* @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
|
|
809
|
+
*
|
|
810
|
+
* @returns promise
|
|
811
|
+
*/
|
|
812
|
+
public static getConversionActions<T>(scheduler_id: string, params: { platform: string; account_id?: string }): AxiosPromise<Response<T>> {
|
|
813
|
+
return Requests.processRoute(SchedulerRoute.routes.getConversionActions, {}, { scheduler_id }, params);
|
|
814
|
+
}
|
|
815
|
+
|
|
802
816
|
}
|
|
803
817
|
|
|
804
818
|
export default Scheduler;
|
|
@@ -122,6 +122,8 @@ class SchedulerRoute {
|
|
|
122
122
|
getSchedulerPostsWithComments: { url: '/schedulers/{scheduler_id}/posts-with-comments', method: HTTP_METHODS.GET },
|
|
123
123
|
syncAllSchedulerComments: { url: '/schedulers/{scheduler_id}/sync-all-comments', method: HTTP_METHODS.POST },
|
|
124
124
|
|
|
125
|
+
getConversionActions: { url: '/schedulers/{scheduler_id}/conversion-actions', method: HTTP_METHODS.GET },
|
|
126
|
+
|
|
125
127
|
};
|
|
126
128
|
}
|
|
127
129
|
|