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
package/dist/cjs/index.js
CHANGED
|
@@ -24137,6 +24137,7 @@ var SocialPostsRoute = /** @class */ (function () {
|
|
|
24137
24137
|
syncHistory: { url: '/social/sync-history/{platform}', method: HTTP_METHODS.POST },
|
|
24138
24138
|
performAction: { url: '/socialposts/{post_id}/action', method: HTTP_METHODS.POST },
|
|
24139
24139
|
performCommentAction: { url: '/socialposts/comments/{comment_id}/action', method: HTTP_METHODS.POST },
|
|
24140
|
+
creativePerformance: { url: '/socialposts/creative-performance', method: HTTP_METHODS.GET },
|
|
24140
24141
|
};
|
|
24141
24142
|
return SocialPostsRoute;
|
|
24142
24143
|
}());
|
|
@@ -24462,6 +24463,12 @@ var SocialPosts = /** @class */ (function () {
|
|
|
24462
24463
|
SocialPosts.performCommentAction = function (comment_id, action) {
|
|
24463
24464
|
return Requests.processRoute(SocialPostsRoute.routes.performCommentAction, { action: action }, { comment_id: comment_id });
|
|
24464
24465
|
};
|
|
24466
|
+
/**
|
|
24467
|
+
* Get ad creative performance matrix.
|
|
24468
|
+
*/
|
|
24469
|
+
SocialPosts.creativePerformance = function (params) {
|
|
24470
|
+
return Requests.processRoute(SocialPostsRoute.routes.creativePerformance, {}, {}, params);
|
|
24471
|
+
};
|
|
24465
24472
|
return SocialPosts;
|
|
24466
24473
|
}());
|
|
24467
24474
|
|
|
@@ -24615,6 +24622,7 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24615
24622
|
translateLandingPage: { url: '/landing-pages/{landing_page_id}/translate', method: HTTP_METHODS.POST },
|
|
24616
24623
|
generateLandingPageAiContent: { url: '/landing-pages/{landing_page_id}/generate-ai-content', method: HTTP_METHODS.POST },
|
|
24617
24624
|
saveLandingPageTranslation: { url: '/landing-pages/{landing_page_id}/translations', method: HTTP_METHODS.POST },
|
|
24625
|
+
cohorts: { url: '/titles/{title_id}/installs/cohorts', method: HTTP_METHODS.GET },
|
|
24618
24626
|
};
|
|
24619
24627
|
return TitlesRoute;
|
|
24620
24628
|
}());
|
|
@@ -25161,6 +25169,9 @@ var Titles = /** @class */ (function () {
|
|
|
25161
25169
|
Titles.saveLandingPageTranslation = function (landing_page_id, translationData, params) {
|
|
25162
25170
|
return Requests.processRoute(TitlesRoute.routes.saveLandingPageTranslation, translationData, { landing_page_id: landing_page_id }, params);
|
|
25163
25171
|
};
|
|
25172
|
+
Titles.cohorts = function (title_id, params) {
|
|
25173
|
+
return Requests.processRoute(TitlesRoute.routes.cohorts, {}, { title_id: title_id }, params);
|
|
25174
|
+
};
|
|
25164
25175
|
/**
|
|
25165
25176
|
* Get an aggregated report of ad conversion events for charting.
|
|
25166
25177
|
*/
|
|
@@ -25264,6 +25275,10 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
25264
25275
|
url: '/campaigns/{campaign_id}/influencers/{user_id}/landing-page',
|
|
25265
25276
|
method: HTTP_METHODS.PUT
|
|
25266
25277
|
},
|
|
25278
|
+
exportInfluencerInvites: {
|
|
25279
|
+
url: '/campaigns/{campaign_id}/influencers/invites/export',
|
|
25280
|
+
method: HTTP_METHODS.POST
|
|
25281
|
+
},
|
|
25267
25282
|
};
|
|
25268
25283
|
return CampaignsRoute;
|
|
25269
25284
|
}());
|
|
@@ -26145,6 +26160,15 @@ var Campaigns = /** @class */ (function () {
|
|
|
26145
26160
|
Campaigns.updateInfluencerLandingPage = function (campaign_id, user_id, data) {
|
|
26146
26161
|
return Requests.processRoute(CampaignsRoute.routes.updateInfluencerLandingPage, data, { campaign_id: campaign_id, user_id: user_id });
|
|
26147
26162
|
};
|
|
26163
|
+
/**
|
|
26164
|
+
* Export influencer invites to CSV.
|
|
26165
|
+
*
|
|
26166
|
+
* @param campaign_id The UUID of the campaign.
|
|
26167
|
+
* @param data Filters for the export (stages, status).
|
|
26168
|
+
*/
|
|
26169
|
+
Campaigns.exportInfluencerInvites = function (campaign_id, data) {
|
|
26170
|
+
return Requests.processRoute(CampaignsRoute.routes.exportInfluencerInvites, data, { campaign_id: campaign_id });
|
|
26171
|
+
};
|
|
26148
26172
|
return Campaigns;
|
|
26149
26173
|
}());
|
|
26150
26174
|
|
|
@@ -28077,6 +28101,7 @@ var FunnelRoutes = /** @class */ (function () {
|
|
|
28077
28101
|
monthly: { url: '/funnels/monthly', method: HTTP_METHODS.GET },
|
|
28078
28102
|
yearly: { url: '/funnels/yearly', method: HTTP_METHODS.GET },
|
|
28079
28103
|
gamify: { url: '/funnels/gamify', method: HTTP_METHODS.GET },
|
|
28104
|
+
diagnostic: { url: '/funnels/diagnostic', method: HTTP_METHODS.GET },
|
|
28080
28105
|
};
|
|
28081
28106
|
return FunnelRoutes;
|
|
28082
28107
|
}());
|
|
@@ -28171,6 +28196,22 @@ var Funnel = /** @class */ (function () {
|
|
|
28171
28196
|
Funnel.gamify = function (params) {
|
|
28172
28197
|
return Requests.processRoute(FunnelRoutes.routes.gamify, undefined, undefined, params);
|
|
28173
28198
|
};
|
|
28199
|
+
/**
|
|
28200
|
+
* Get comprehensive funnel diagnostic report.
|
|
28201
|
+
*
|
|
28202
|
+
* @see https://api.glitch.fun/api/documentation#/Funnel%20Metrics/get_funnels_diagnostic
|
|
28203
|
+
*
|
|
28204
|
+
* @param params Query parameters:
|
|
28205
|
+
* - title_id (string): Required
|
|
28206
|
+
* - start_date (string): Required (YYYY-MM-DD)
|
|
28207
|
+
* - end_date (string): Required (YYYY-MM-DD)
|
|
28208
|
+
* - group_by (string): Optional ('none', 'platform', 'utm_source')
|
|
28209
|
+
*
|
|
28210
|
+
* @returns Promise with diagnostic data including conversion rates, costs, and health indicators
|
|
28211
|
+
*/
|
|
28212
|
+
Funnel.diagnostic = function (params) {
|
|
28213
|
+
return Requests.processRoute(FunnelRoutes.routes.diagnostic, undefined, undefined, params);
|
|
28214
|
+
};
|
|
28174
28215
|
return Funnel;
|
|
28175
28216
|
}());
|
|
28176
28217
|
|