glitch-javascript-sdk 2.4.6 → 2.4.7
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 +76 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Titles.d.ts +46 -0
- package/dist/esm/index.js +76 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +46 -0
- package/package.json +1 -1
- package/src/api/Titles.ts +74 -0
- package/src/routes/TitlesRoute.ts +15 -0
package/dist/cjs/index.js
CHANGED
|
@@ -24685,6 +24685,18 @@ var TitlesRoute = /** @class */ (function () {
|
|
|
24685
24685
|
generateLandingPageAiContent: { url: '/landing-pages/{landing_page_id}/generate-ai-content', method: HTTP_METHODS.POST },
|
|
24686
24686
|
saveLandingPageTranslation: { url: '/landing-pages/{landing_page_id}/translations', method: HTTP_METHODS.POST },
|
|
24687
24687
|
cohorts: { url: '/titles/{title_id}/installs/cohorts', method: HTTP_METHODS.GET },
|
|
24688
|
+
geoReport: { url: '/titles/{title_id}/installs/geo-report', method: HTTP_METHODS.GET },
|
|
24689
|
+
// Game Events (Behavioral Telemetry)
|
|
24690
|
+
listEvents: { url: '/titles/{title_id}/events', method: HTTP_METHODS.GET },
|
|
24691
|
+
createEvent: { url: '/titles/{title_id}/events', method: HTTP_METHODS.POST },
|
|
24692
|
+
bulkCreateEvents: { url: '/titles/{title_id}/events/bulk', method: HTTP_METHODS.POST },
|
|
24693
|
+
eventSummary: { url: '/titles/{title_id}/events/summary', method: HTTP_METHODS.GET },
|
|
24694
|
+
eventDistinctKeys: { url: '/titles/{title_id}/events/distinct-keys', method: HTTP_METHODS.GET },
|
|
24695
|
+
// Behavioral Funnels
|
|
24696
|
+
listBehavioralFunnels: { url: '/titles/{title_id}/behavioral-funnels', method: HTTP_METHODS.GET },
|
|
24697
|
+
createBehavioralFunnel: { url: '/titles/{title_id}/behavioral-funnels', method: HTTP_METHODS.POST },
|
|
24698
|
+
behavioralFunnelReport: { url: '/titles/{title_id}/behavioral-funnels/{funnel_id}/report', method: HTTP_METHODS.GET },
|
|
24699
|
+
deleteBehavioralFunnel: { url: '/titles/{title_id}/behavioral-funnels/{funnel_id}', method: HTTP_METHODS.DELETE },
|
|
24688
24700
|
};
|
|
24689
24701
|
return TitlesRoute;
|
|
24690
24702
|
}());
|
|
@@ -25240,6 +25252,70 @@ var Titles = /** @class */ (function () {
|
|
|
25240
25252
|
Titles.getAdConversionEventsReport = function (title_id, params) {
|
|
25241
25253
|
return Requests.processRoute(TitlesRoute.routes.getAdConversionEventsReport, {}, { title_id: title_id }, params);
|
|
25242
25254
|
};
|
|
25255
|
+
/**
|
|
25256
|
+
* Get a geographical distribution report for installs.
|
|
25257
|
+
* @param params e.g., { group_by: 'country_code', start_date: '2025-01-01' }
|
|
25258
|
+
*/
|
|
25259
|
+
Titles.geoReport = function (title_id, params) {
|
|
25260
|
+
return Requests.processRoute(TitlesRoute.routes.geoReport, {}, { title_id: title_id }, params);
|
|
25261
|
+
};
|
|
25262
|
+
/**
|
|
25263
|
+
* List and filter raw game events (telemetry).
|
|
25264
|
+
*/
|
|
25265
|
+
Titles.listEvents = function (title_id, params) {
|
|
25266
|
+
return Requests.processRoute(TitlesRoute.routes.listEvents, {}, { title_id: title_id }, params);
|
|
25267
|
+
};
|
|
25268
|
+
/**
|
|
25269
|
+
* Record a single in-game action.
|
|
25270
|
+
*/
|
|
25271
|
+
Titles.createEvent = function (title_id, data) {
|
|
25272
|
+
return Requests.processRoute(TitlesRoute.routes.createEvent, data, { title_id: title_id });
|
|
25273
|
+
};
|
|
25274
|
+
/**
|
|
25275
|
+
* Record multiple events in one request (Batching).
|
|
25276
|
+
* @param data { events: Array<{game_install_id, step_key, action_key, metadata?}> }
|
|
25277
|
+
*/
|
|
25278
|
+
Titles.bulkCreateEvents = function (title_id, data) {
|
|
25279
|
+
return Requests.processRoute(TitlesRoute.routes.bulkCreateEvents, data, { title_id: title_id });
|
|
25280
|
+
};
|
|
25281
|
+
/**
|
|
25282
|
+
* Get a summary of actions per step.
|
|
25283
|
+
*/
|
|
25284
|
+
Titles.eventSummary = function (title_id, params) {
|
|
25285
|
+
return Requests.processRoute(TitlesRoute.routes.eventSummary, {}, { title_id: title_id }, params);
|
|
25286
|
+
};
|
|
25287
|
+
/**
|
|
25288
|
+
* Get all unique step and action keys used in this title.
|
|
25289
|
+
*/
|
|
25290
|
+
Titles.eventDistinctKeys = function (title_id) {
|
|
25291
|
+
return Requests.processRoute(TitlesRoute.routes.eventDistinctKeys, {}, { title_id: title_id });
|
|
25292
|
+
};
|
|
25293
|
+
/**
|
|
25294
|
+
* List all saved behavioral funnel definitions.
|
|
25295
|
+
*/
|
|
25296
|
+
Titles.listBehavioralFunnels = function (title_id) {
|
|
25297
|
+
return Requests.processRoute(TitlesRoute.routes.listBehavioralFunnels, {}, { title_id: title_id });
|
|
25298
|
+
};
|
|
25299
|
+
/**
|
|
25300
|
+
* Create and save a new behavioral funnel definition.
|
|
25301
|
+
* @param data { name: string, description?: string, steps: string[] }
|
|
25302
|
+
*/
|
|
25303
|
+
Titles.createBehavioralFunnel = function (title_id, data) {
|
|
25304
|
+
return Requests.processRoute(TitlesRoute.routes.createBehavioralFunnel, data, { title_id: title_id });
|
|
25305
|
+
};
|
|
25306
|
+
/**
|
|
25307
|
+
* Generate the drop-off report for a specific behavioral funnel.
|
|
25308
|
+
* @param params { start_date?: string, end_date?: string }
|
|
25309
|
+
*/
|
|
25310
|
+
Titles.behavioralFunnelReport = function (title_id, funnel_id, params) {
|
|
25311
|
+
return Requests.processRoute(TitlesRoute.routes.behavioralFunnelReport, {}, { title_id: title_id, funnel_id: funnel_id }, params);
|
|
25312
|
+
};
|
|
25313
|
+
/**
|
|
25314
|
+
* Delete a saved behavioral funnel definition.
|
|
25315
|
+
*/
|
|
25316
|
+
Titles.deleteBehavioralFunnel = function (title_id, funnel_id) {
|
|
25317
|
+
return Requests.processRoute(TitlesRoute.routes.deleteBehavioralFunnel, {}, { title_id: title_id, funnel_id: funnel_id });
|
|
25318
|
+
};
|
|
25243
25319
|
return Titles;
|
|
25244
25320
|
}());
|
|
25245
25321
|
|