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 +18 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/AdminUsers.d.ts +11 -0
- package/dist/esm/index.js +18 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/api/AdminUsers.ts +14 -0
- package/src/routes/AdminUsersRoute.ts +5 -0
|
@@ -19,6 +19,17 @@ declare class AdminUsers {
|
|
|
19
19
|
* @returns promise
|
|
20
20
|
*/
|
|
21
21
|
static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
22
|
+
/**
|
|
23
|
+
* Retrieve aggregated user analytics for the admin directory.
|
|
24
|
+
*
|
|
25
|
+
* Supported params include `search`, `is_site_admin`, `is_verified`,
|
|
26
|
+
* `user_type`, `start_date`, `end_date`, `period`, `sort_by`, and
|
|
27
|
+
* `sort_order`.
|
|
28
|
+
*
|
|
29
|
+
* @param params Optional query parameters.
|
|
30
|
+
* @returns promise
|
|
31
|
+
*/
|
|
32
|
+
static analytics<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
22
33
|
/**
|
|
23
34
|
* Retrieve a comprehensive profile for a single user, including communities,
|
|
24
35
|
* administered titles, games played, roles, billing status, social presence,
|
package/dist/esm/index.js
CHANGED
|
@@ -20659,6 +20659,11 @@ var AdminUsersRoute = /** @class */ (function () {
|
|
|
20659
20659
|
url: '/admin/users',
|
|
20660
20660
|
method: HTTP_METHODS.GET
|
|
20661
20661
|
},
|
|
20662
|
+
// Aggregated user analytics for charts on the admin directory.
|
|
20663
|
+
analytics: {
|
|
20664
|
+
url: '/admin/users/analytics',
|
|
20665
|
+
method: HTTP_METHODS.GET
|
|
20666
|
+
},
|
|
20662
20667
|
// Full profile for a single user (site admin only).
|
|
20663
20668
|
view: {
|
|
20664
20669
|
url: '/admin/users/{user_id}',
|
|
@@ -20696,6 +20701,19 @@ var AdminUsers = /** @class */ (function () {
|
|
|
20696
20701
|
AdminUsers.list = function (params) {
|
|
20697
20702
|
return Requests.processRoute(AdminUsersRoute.routes.list, undefined, undefined, params);
|
|
20698
20703
|
};
|
|
20704
|
+
/**
|
|
20705
|
+
* Retrieve aggregated user analytics for the admin directory.
|
|
20706
|
+
*
|
|
20707
|
+
* Supported params include `search`, `is_site_admin`, `is_verified`,
|
|
20708
|
+
* `user_type`, `start_date`, `end_date`, `period`, `sort_by`, and
|
|
20709
|
+
* `sort_order`.
|
|
20710
|
+
*
|
|
20711
|
+
* @param params Optional query parameters.
|
|
20712
|
+
* @returns promise
|
|
20713
|
+
*/
|
|
20714
|
+
AdminUsers.analytics = function (params) {
|
|
20715
|
+
return Requests.processRoute(AdminUsersRoute.routes.analytics, undefined, undefined, params);
|
|
20716
|
+
};
|
|
20699
20717
|
/**
|
|
20700
20718
|
* Retrieve a comprehensive profile for a single user, including communities,
|
|
20701
20719
|
* administered titles, games played, roles, billing status, social presence,
|