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
package/dist/index.d.ts
CHANGED
|
@@ -10910,6 +10910,17 @@ declare class AdminUsers {
|
|
|
10910
10910
|
* @returns promise
|
|
10911
10911
|
*/
|
|
10912
10912
|
static list<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
10913
|
+
/**
|
|
10914
|
+
* Retrieve aggregated user analytics for the admin directory.
|
|
10915
|
+
*
|
|
10916
|
+
* Supported params include `search`, `is_site_admin`, `is_verified`,
|
|
10917
|
+
* `user_type`, `start_date`, `end_date`, `period`, `sort_by`, and
|
|
10918
|
+
* `sort_order`.
|
|
10919
|
+
*
|
|
10920
|
+
* @param params Optional query parameters.
|
|
10921
|
+
* @returns promise
|
|
10922
|
+
*/
|
|
10923
|
+
static analytics<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
10913
10924
|
/**
|
|
10914
10925
|
* Retrieve a comprehensive profile for a single user, including communities,
|
|
10915
10926
|
* administered titles, games played, roles, billing status, social presence,
|
package/package.json
CHANGED
package/src/api/AdminUsers.ts
CHANGED
|
@@ -25,6 +25,20 @@ class AdminUsers {
|
|
|
25
25
|
return Requests.processRoute(AdminUsersRoute.routes.list, undefined, undefined, params);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/**
|
|
29
|
+
* Retrieve aggregated user analytics for the admin directory.
|
|
30
|
+
*
|
|
31
|
+
* Supported params include `search`, `is_site_admin`, `is_verified`,
|
|
32
|
+
* `user_type`, `start_date`, `end_date`, `period`, `sort_by`, and
|
|
33
|
+
* `sort_order`.
|
|
34
|
+
*
|
|
35
|
+
* @param params Optional query parameters.
|
|
36
|
+
* @returns promise
|
|
37
|
+
*/
|
|
38
|
+
public static analytics<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
39
|
+
return Requests.processRoute(AdminUsersRoute.routes.analytics, undefined, undefined, params);
|
|
40
|
+
}
|
|
41
|
+
|
|
28
42
|
/**
|
|
29
43
|
* Retrieve a comprehensive profile for a single user, including communities,
|
|
30
44
|
* administered titles, games played, roles, billing status, social presence,
|
|
@@ -8,6 +8,11 @@ class AdminUsersRoute {
|
|
|
8
8
|
url: '/admin/users',
|
|
9
9
|
method: HTTP_METHODS.GET
|
|
10
10
|
},
|
|
11
|
+
// Aggregated user analytics for charts on the admin directory.
|
|
12
|
+
analytics: {
|
|
13
|
+
url: '/admin/users/analytics',
|
|
14
|
+
method: HTTP_METHODS.GET
|
|
15
|
+
},
|
|
11
16
|
// Full profile for a single user (site admin only).
|
|
12
17
|
view: {
|
|
13
18
|
url: '/admin/users/{user_id}',
|