glitch-javascript-sdk 3.8.2 → 3.8.4
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 +20 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Scheduler.d.ts +8 -0
- package/dist/esm/api/Titles.d.ts +20 -4
- package/dist/esm/index.js +20 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +28 -4
- package/package.json +1 -1
- package/src/api/Scheduler.ts +8 -0
- package/src/api/Titles.ts +20 -4
package/dist/cjs/index.js
CHANGED
|
@@ -24481,7 +24481,13 @@ var Titles = /** @class */ (function () {
|
|
|
24481
24481
|
return Requests.processRoute(TitlesRoute.routes.viewInstall, {}, { title_id: title_id, install_id: install_id }, params);
|
|
24482
24482
|
};
|
|
24483
24483
|
/**
|
|
24484
|
-
* Create a
|
|
24484
|
+
* Create or update a game install record.
|
|
24485
|
+
*
|
|
24486
|
+
* `user_install_id` is required. `game_build_id` is optional: send the
|
|
24487
|
+
* exact Glitch build UUID returned as `build_id` by a play session when it
|
|
24488
|
+
* is available, and omit it for external/legacy/unknown builds. Do not
|
|
24489
|
+
* guess a build id. `game_version`, `build_type`, `device_id`, platform,
|
|
24490
|
+
* device type, and operating system may be sent independently.
|
|
24485
24491
|
*/
|
|
24486
24492
|
Titles.createInstall = function (title_id, data, params) {
|
|
24487
24493
|
return Requests.processRoute(TitlesRoute.routes.createInstall, data, { title_id: title_id }, params);
|
|
@@ -24498,25 +24504,31 @@ var Titles = /** @class */ (function () {
|
|
|
24498
24504
|
Titles.retentionSummary = function (title_id, params) {
|
|
24499
24505
|
return Requests.processRoute(TitlesRoute.routes.retentionSummary, {}, { title_id: title_id }, params);
|
|
24500
24506
|
};
|
|
24507
|
+
/** Filter/group by platform, device_type, operating_system, game_version, optional game_build_id, or optional device_id. */
|
|
24501
24508
|
Titles.activeRetentions = function (title_id, params) {
|
|
24502
24509
|
return Requests.processRoute(TitlesRoute.routes.activeRetentions, {}, { title_id: title_id }, params);
|
|
24503
24510
|
};
|
|
24504
24511
|
Titles.retentionAnalysis = function (title_id, params) {
|
|
24505
24512
|
return Requests.processRoute(TitlesRoute.routes.retentionAnalysis, {}, { title_id: title_id }, params);
|
|
24506
24513
|
};
|
|
24514
|
+
/** Returns string dimensions plus labeled `builds` and `devices` options for report filters. */
|
|
24507
24515
|
Titles.distinctDimensions = function (title_id, params) {
|
|
24508
24516
|
return Requests.processRoute(TitlesRoute.routes.distinctDimensions, {}, { title_id: title_id }, params);
|
|
24509
24517
|
};
|
|
24510
24518
|
/**
|
|
24511
24519
|
* List sessions for a specific title, with optional filters and pagination.
|
|
24512
|
-
* Returns a paginated list of sessions with start/end times, session_length,
|
|
24520
|
+
* Returns a paginated list of sessions with start/end times, session_length,
|
|
24521
|
+
* build/version/device snapshots, and user info. `game_build_id` and
|
|
24522
|
+
* `device_id` filters are optional; unattributed/unknown options are exposed
|
|
24523
|
+
* by distinctDimensions.
|
|
24513
24524
|
*/
|
|
24514
24525
|
Titles.listSessions = function (title_id, params) {
|
|
24515
24526
|
return Requests.processRoute(TitlesRoute.routes.listSessions, {}, { title_id: title_id }, params);
|
|
24516
24527
|
};
|
|
24517
24528
|
/**
|
|
24518
24529
|
* Get aggregated average session length data (daily/weekly/monthly) for a title.
|
|
24519
|
-
* Optionally filter by platform
|
|
24530
|
+
* Optionally filter/group by platform, device type, OS, version, exact
|
|
24531
|
+
* build id, or device id.
|
|
24520
24532
|
*/
|
|
24521
24533
|
Titles.sessionsAverage = function (title_id, params) {
|
|
24522
24534
|
return Requests.processRoute(TitlesRoute.routes.sessionsAverage, {}, { title_id: title_id }, params);
|
|
@@ -24788,13 +24800,17 @@ var Titles = /** @class */ (function () {
|
|
|
24788
24800
|
};
|
|
24789
24801
|
/**
|
|
24790
24802
|
* Record a single in-game action.
|
|
24803
|
+
*
|
|
24804
|
+
* Keep step_key and action_key stable. Optional step_label,
|
|
24805
|
+
* step_description, event_label, and event_description fields are
|
|
24806
|
+
* canonical display text for those keys within the title.
|
|
24791
24807
|
*/
|
|
24792
24808
|
Titles.createEvent = function (title_id, data) {
|
|
24793
24809
|
return Requests.processRoute(TitlesRoute.routes.createEvent, data, { title_id: title_id });
|
|
24794
24810
|
};
|
|
24795
24811
|
/**
|
|
24796
24812
|
* Record multiple events in one request (Batching).
|
|
24797
|
-
* @param data { events: Array<{game_install_id, step_key, action_key, metadata?}> }
|
|
24813
|
+
* @param data { events: Array<{game_install_id, step_key, step_label?, step_description?, action_key, event_label?, event_description?, previous_step_key?, metadata?, event_timestamp?}> }
|
|
24798
24814
|
*/
|
|
24799
24815
|
Titles.bulkCreateEvents = function (title_id, data) {
|
|
24800
24816
|
return Requests.processRoute(TitlesRoute.routes.bulkCreateEvents, data, { title_id: title_id });
|