glitch-javascript-sdk 2.4.1 → 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 +41 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +10 -0
- package/dist/esm/api/Funnel.d.ts +14 -0
- package/dist/esm/api/SocialPosts.d.ts +4 -0
- package/dist/esm/api/Titles.d.ts +1 -0
- package/dist/esm/index.js +41 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +29 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +10 -0
- package/src/api/Funnel.ts +17 -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/FunnelRoutes.ts +1 -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;
|
package/dist/esm/api/Funnel.d.ts
CHANGED
|
@@ -71,5 +71,19 @@ declare class Funnel {
|
|
|
71
71
|
* @returns Promise with the gamified funnel data
|
|
72
72
|
*/
|
|
73
73
|
static gamify<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
74
|
+
/**
|
|
75
|
+
* Get comprehensive funnel diagnostic report.
|
|
76
|
+
*
|
|
77
|
+
* @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
|
|
78
|
+
*
|
|
79
|
+
* @param params Query parameters:
|
|
80
|
+
* - title_id (string): Required
|
|
81
|
+
* - start_date (string): Required (YYYY-MM-DD)
|
|
82
|
+
* - end_date (string): Required (YYYY-MM-DD)
|
|
83
|
+
* - group_by (string): Optional ('none', 'platform', 'utm_source')
|
|
84
|
+
*
|
|
85
|
+
* @returns Promise with diagnostic data including conversion rates, costs, and health indicators
|
|
86
|
+
*/
|
|
87
|
+
static diagnostic<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
74
88
|
}
|
|
75
89
|
export default Funnel;
|
|
@@ -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
|
|
|
@@ -14893,6 +14917,7 @@ var FunnelRoutes = /** @class */ (function () {
|
|
|
14893
14917
|
monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
|
|
14894
14918
|
yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
|
|
14895
14919
|
gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
|
|
14920
|
+
diagnostic: { url: '/funnels/diagnostic', method: HTTP_METHODS.GET },
|
|
14896
14921
|
};
|
|
14897
14922
|
return FunnelRoutes;
|
|
14898
14923
|
}());
|
|
@@ -14987,6 +15012,22 @@ var Funnel = /** @class */ (function () {
|
|
|
14987
15012
|
Funnel.gamify = function (params) {
|
|
14988
15013
|
return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
|
|
14989
15014
|
};
|
|
15015
|
+
/**
|
|
15016
|
+
* Get comprehensive funnel diagnostic report.
|
|
15017
|
+
*
|
|
15018
|
+
* @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
|
|
15019
|
+
*
|
|
15020
|
+
* @param params Query parameters:
|
|
15021
|
+
* - title_id (string): Required
|
|
15022
|
+
* - start_date (string): Required (YYYY-MM-DD)
|
|
15023
|
+
* - end_date (string): Required (YYYY-MM-DD)
|
|
15024
|
+
* - group_by (string): Optional ('none', 'platform', 'utm_source')
|
|
15025
|
+
*
|
|
15026
|
+
* @returns Promise with diagnostic data including conversion rates, costs, and health indicators
|
|
15027
|
+
*/
|
|
15028
|
+
Funnel.diagnostic = function (params) {
|
|
15029
|
+
return Requests.processRoute(FunnelRoutes.routes.diagnostic, undefined, undefined, params);
|
|
15030
|
+
};
|
|
14990
15031
|
return Funnel;
|
|
14991
15032
|
}());
|
|
14992
15033
|
|