glitch-javascript-sdk 2.2.4 → 2.2.6
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 +27 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +12 -0
- package/dist/esm/api/Scheduler.d.ts +14 -0
- package/dist/esm/index.js +27 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +26 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +13 -0
- package/src/api/Scheduler.ts +14 -0
- package/src/routes/CampaignsRoute.ts +2 -0
- package/src/routes/SchedulerRoute.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -4705,6 +4705,18 @@ declare class Campaigns {
|
|
|
4705
4705
|
static updateCustomRanking<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4706
4706
|
static updateCreatorBucket<T>(campaign_id: string, creator_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4707
4707
|
static reRankSourcedCreators<T>(campaign_id: string, data: object): AxiosPromise<Response<T>>;
|
|
4708
|
+
/**
|
|
4709
|
+
* Queue multiple sourced creators for profile enrichment.
|
|
4710
|
+
* This dispatches a background job for each creator to find their social media profiles and contact information.
|
|
4711
|
+
*
|
|
4712
|
+
* @param campaign_id The UUID of the campaign.
|
|
4713
|
+
* @param data An object containing the array of SourcedCreator IDs to enrich.
|
|
4714
|
+
* @param data.creator_ids An array of SourcedCreator UUIDs.
|
|
4715
|
+
* @returns A promise that resolves with a confirmation message and the count of queued jobs.
|
|
4716
|
+
*/
|
|
4717
|
+
static bulkEnrichSourcedCreators<T>(campaign_id: string, data: {
|
|
4718
|
+
creator_ids: string[];
|
|
4719
|
+
}): AxiosPromise<Response<T>>;
|
|
4708
4720
|
}
|
|
4709
4721
|
|
|
4710
4722
|
declare class Subscriptions {
|
|
@@ -5997,6 +6009,20 @@ declare class Scheduler {
|
|
|
5997
6009
|
* @returns promise
|
|
5998
6010
|
*/
|
|
5999
6011
|
static syncAllSchedulerComments<T>(scheduler_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
6012
|
+
/**
|
|
6013
|
+
* Get ad conversion actions for a specific platform linked to the scheduler.
|
|
6014
|
+
*
|
|
6015
|
+
* @see https://api.glitch.fun/api/documentation#/Scheduler/getSchedulerConversionActions
|
|
6016
|
+
*
|
|
6017
|
+
* @param scheduler_id The ID of the promotion schedule.
|
|
6018
|
+
* @param params Query parameters, including 'platform' (required) and 'account_id' (optional).
|
|
6019
|
+
*
|
|
6020
|
+
* @returns promise
|
|
6021
|
+
*/
|
|
6022
|
+
static getConversionActions<T>(scheduler_id: string, params: {
|
|
6023
|
+
platform: string;
|
|
6024
|
+
account_id?: string;
|
|
6025
|
+
}): AxiosPromise<Response<T>>;
|
|
6000
6026
|
}
|
|
6001
6027
|
|
|
6002
6028
|
declare class Funnel {
|
package/package.json
CHANGED
package/src/api/Campaigns.ts
CHANGED
|
@@ -960,6 +960,19 @@ class Campaigns {
|
|
|
960
960
|
return Requests.processRoute(CampaignsRoute.routes.reRankSourcedCreators, data, { campaign_id });
|
|
961
961
|
}
|
|
962
962
|
|
|
963
|
+
/**
|
|
964
|
+
* Queue multiple sourced creators for profile enrichment.
|
|
965
|
+
* This dispatches a background job for each creator to find their social media profiles and contact information.
|
|
966
|
+
*
|
|
967
|
+
* @param campaign_id The UUID of the campaign.
|
|
968
|
+
* @param data An object containing the array of SourcedCreator IDs to enrich.
|
|
969
|
+
* @param data.creator_ids An array of SourcedCreator UUIDs.
|
|
970
|
+
* @returns A promise that resolves with a confirmation message and the count of queued jobs.
|
|
971
|
+
*/
|
|
972
|
+
public static bulkEnrichSourcedCreators<T>(campaign_id: string, data: { creator_ids: string[] }): AxiosPromise<Response<T>> {
|
|
973
|
+
return Requests.processRoute(CampaignsRoute.routes.bulkEnrichSourcedCreators, data, { campaign_id });
|
|
974
|
+
}
|
|
975
|
+
|
|
963
976
|
|
|
964
977
|
}
|
|
965
978
|
|
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;
|
|
@@ -80,6 +80,8 @@ class CampaignsRoute {
|
|
|
80
80
|
updateCustomRanking: { url: '/campaigns/{campaign_id}/sourcing/custom-ranking', method: HTTP_METHODS.PUT },
|
|
81
81
|
updateCreatorBucket: { url: '/campaigns/{campaign_id}/sourcing/creators/{creator_id}/bucket', method: HTTP_METHODS.PUT },
|
|
82
82
|
reRankSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/re-rank', method: HTTP_METHODS.POST },
|
|
83
|
+
bulkEnrichSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/bulk-enrich', method: HTTP_METHODS.POST },
|
|
84
|
+
|
|
83
85
|
|
|
84
86
|
};
|
|
85
87
|
|
|
@@ -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
|
|