glitch-javascript-sdk 2.4.3 → 2.4.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 +24 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +10 -0
- package/dist/esm/api/SocialPosts.d.ts +4 -0
- package/dist/esm/api/Titles.d.ts +1 -0
- package/dist/esm/index.js +24 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +15 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +10 -0
- package/src/api/SocialPosts.ts +7 -0
- package/src/api/Titles.ts +4 -0
- package/src/routes/CampaignsRoute.ts +4 -0
- package/src/routes/SocialPostsRoute.ts +3 -0
- package/src/routes/TitlesRoute.ts +2 -0
|
@@ -731,5 +731,15 @@ declare class Campaigns {
|
|
|
731
731
|
is_landing_page_active?: boolean;
|
|
732
732
|
landing_page_slug?: string;
|
|
733
733
|
}): AxiosPromise<Response<T>>;
|
|
734
|
+
/**
|
|
735
|
+
* Export influencer invites to CSV.
|
|
736
|
+
*
|
|
737
|
+
* @param campaign_id The UUID of the campaign.
|
|
738
|
+
* @param data Filters for the export (stages, status).
|
|
739
|
+
*/
|
|
740
|
+
static exportInfluencerInvites<T>(campaign_id: string, data: {
|
|
741
|
+
stages?: string[];
|
|
742
|
+
status?: string;
|
|
743
|
+
}): AxiosPromise<Response<T>>;
|
|
734
744
|
}
|
|
735
745
|
export default Campaigns;
|
|
@@ -259,5 +259,9 @@ declare class SocialPosts {
|
|
|
259
259
|
* @returns promise
|
|
260
260
|
*/
|
|
261
261
|
static performCommentAction<T>(comment_id: string, action: 'like' | 'unlike' | 'repost' | 'unrepost' | 'vote_up' | 'vote_down' | 'unvote'): AxiosPromise<Response<T>>;
|
|
262
|
+
/**
|
|
263
|
+
* Get ad creative performance matrix.
|
|
264
|
+
*/
|
|
265
|
+
static creativePerformance<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
262
266
|
}
|
|
263
267
|
export default SocialPosts;
|
package/dist/esm/api/Titles.d.ts
CHANGED
|
@@ -419,6 +419,7 @@ declare class Titles {
|
|
|
419
419
|
* @param translationData The full translation object to be saved.
|
|
420
420
|
*/
|
|
421
421
|
static saveLandingPageTranslation<T>(landing_page_id: string, translationData: object, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
422
|
+
static cohorts<T>(title_id: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
422
423
|
/**
|
|
423
424
|
* Get an aggregated report of ad conversion events for charting.
|
|
424
425
|
*/
|
package/dist/esm/index.js
CHANGED
|
@@ -10953,6 +10953,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
10953
10953
|
syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
10954
10954
|
performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
|
|
10955
10955
|
performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },
|
|
10956
|
+
creativePerformance: { url: '/socialposts/creative-performance', method: HTTP_METHODS.GET },
|
|
10956
10957
|
};
|
|
10957
10958
|
return SocialPostsRoute;
|
|
10958
10959
|
}());
|
|
@@ -11278,6 +11279,12 @@ var SocialPosts = /** @class */ (function () {
|
|
|
11278
11279
|
SocialPosts.performCommentAction = function (comment_id, action) {
|
|
11279
11280
|
return Requests.processRoute(SocialPostsRoute.routes.performCommentAction, { action: action }, { comment_id: comment_id });
|
|
11280
11281
|
};
|
|
11282
|
+
/**
|
|
11283
|
+
* Get ad creative performance matrix.
|
|
11284
|
+
*/
|
|
11285
|
+
SocialPosts.creativePerformance = function (params) {
|
|
11286
|
+
return Requests.processRoute(SocialPostsRoute.routes.creativePerformance, {}, {}, params);
|
|
11287
|
+
};
|
|
11281
11288
|
return SocialPosts;
|
|
11282
11289
|
}());
|
|
11283
11290
|
|
|
@@ -11431,6 +11438,7 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
11431
11438
|
translateLandingPage: { url: '/landing-pages/{landing_page_id}/translate', method: HTTP_METHODS.POST },
|
|
11432
11439
|
generateLandingPageAiContent: { url: '/landing-pages/{landing_page_id}/generate-ai-content', method: HTTP_METHODS.POST },
|
|
11433
11440
|
saveLandingPageTranslation: { url: '/landing-pages/{landing_page_id}/translations', method: HTTP_METHODS.POST },
|
|
11441
|
+
cohorts: { url: '/titles/{title_id}/installs/cohorts', method: HTTP_METHODS.GET },
|
|
11434
11442
|
};
|
|
11435
11443
|
return TitlesRoute;
|
|
11436
11444
|
}());
|
|
@@ -11977,6 +11985,9 @@ var Titles = /** @class */ (function () {
|
|
|
11977
11985
|
Titles.saveLandingPageTranslation = function (landing_page_id, translationData, params) {
|
|
11978
11986
|
return Requests.processRoute(TitlesRoute.routes.saveLandingPageTranslation, translationData, { landing_page_id: landing_page_id }, params);
|
|
11979
11987
|
};
|
|
11988
|
+
Titles.cohorts = function (title_id, params) {
|
|
11989
|
+
return Requests.processRoute(TitlesRoute.routes.cohorts, {}, { title_id: title_id }, params);
|
|
11990
|
+
};
|
|
11980
11991
|
/**
|
|
11981
11992
|
* Get an aggregated report of ad conversion events for charting.
|
|
11982
11993
|
*/
|
|
@@ -12080,6 +12091,10 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
12080
12091
|
url: '/campaigns/{campaign_id}/influencers/{user_id}/landing-page',
|
|
12081
12092
|
method: HTTP_METHODS.PUT
|
|
12082
12093
|
},
|
|
12094
|
+
exportInfluencerInvites: {
|
|
12095
|
+
url: '/campaigns/{campaign_id}/influencers/invites/export',
|
|
12096
|
+
method: HTTP_METHODS.POST
|
|
12097
|
+
},
|
|
12083
12098
|
};
|
|
12084
12099
|
return CampaignsRoute;
|
|
12085
12100
|
}());
|
|
@@ -12961,6 +12976,15 @@ var Campaigns = /** @class */ (function () {
|
|
|
12961
12976
|
Campaigns.updateInfluencerLandingPage = function (campaign_id, user_id, data) {
|
|
12962
12977
|
return Requests.processRoute(CampaignsRoute.routes.updateInfluencerLandingPage, data, { campaign_id: campaign_id, user_id: user_id });
|
|
12963
12978
|
};
|
|
12979
|
+
/**
|
|
12980
|
+
* Export influencer invites to CSV.
|
|
12981
|
+
*
|
|
12982
|
+
* @param campaign_id The UUID of the campaign.
|
|
12983
|
+
* @param data Filters for the export (stages, status).
|
|
12984
|
+
*/
|
|
12985
|
+
Campaigns.exportInfluencerInvites = function (campaign_id, data) {
|
|
12986
|
+
return Requests.processRoute(CampaignsRoute.routes.exportInfluencerInvites, data, { campaign_id: campaign_id });
|
|
12987
|
+
};
|
|
12964
12988
|
return Campaigns;
|
|
12965
12989
|
}());
|
|
12966
12990
|
|