glitch-javascript-sdk 3.3.5 → 3.3.6

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 CHANGED
@@ -32657,6 +32657,11 @@ var AdminUsersRoute = /** @class */ (function () {
32657
32657
  url: '/admin/users',
32658
32658
  method: HTTP_METHODS.GET
32659
32659
  },
32660
+ // Aggregated user analytics for charts on the admin directory.
32661
+ analytics: {
32662
+ url: '/admin/users/analytics',
32663
+ method: HTTP_METHODS.GET
32664
+ },
32660
32665
  // Full profile for a single user (site admin only).
32661
32666
  view: {
32662
32667
  url: '/admin/users/{user_id}',
@@ -32694,6 +32699,19 @@ var AdminUsers = /** @class */ (function () {
32694
32699
  AdminUsers.list = function (params) {
32695
32700
  return Requests.processRoute(AdminUsersRoute.routes.list, undefined, undefined, params);
32696
32701
  };
32702
+ /**
32703
+ * Retrieve aggregated user analytics for the admin directory.
32704
+ *
32705
+ * Supported params include `search`, `is_site_admin`, `is_verified`,
32706
+ * `user_type`, `start_date`, `end_date`, `period`, `sort_by`, and
32707
+ * `sort_order`.
32708
+ *
32709
+ * @param params Optional query parameters.
32710
+ * @returns promise
32711
+ */
32712
+ AdminUsers.analytics = function (params) {
32713
+ return Requests.processRoute(AdminUsersRoute.routes.analytics, undefined, undefined, params);
32714
+ };
32697
32715
  /**
32698
32716
  * Retrieve a comprehensive profile for a single user, including communities,
32699
32717
  * administered titles, games played, roles, billing status, social presence,