glitch-javascript-sdk 1.6.1 → 1.6.2
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 +11 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Users.d.ts +8 -0
- package/dist/esm/index.js +11 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/package.json +1 -1
- package/src/api/Users.ts +12 -0
- package/src/routes/UserRoutes.ts +2 -0
package/dist/index.d.ts
CHANGED
|
@@ -1583,6 +1583,14 @@ declare class Users {
|
|
|
1583
1583
|
* @returns Promise resolving to the list of flairs
|
|
1584
1584
|
*/
|
|
1585
1585
|
static getSubredditFlairs<T>(subreddit: string, params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1586
|
+
/**
|
|
1587
|
+
* Search all the users with advanced meilisearch options
|
|
1588
|
+
*
|
|
1589
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/userSearch
|
|
1590
|
+
*
|
|
1591
|
+
* @returns promise
|
|
1592
|
+
*/
|
|
1593
|
+
static search<T>(params?: Record<string, any>): AxiosPromise<Response<T>>;
|
|
1586
1594
|
}
|
|
1587
1595
|
|
|
1588
1596
|
declare class Events {
|
package/package.json
CHANGED
package/src/api/Users.ts
CHANGED
|
@@ -517,6 +517,18 @@ class Users {
|
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
|
|
520
|
+
/**
|
|
521
|
+
* Search all the users with advanced meilisearch options
|
|
522
|
+
*
|
|
523
|
+
* @see https://api.glitch.fun/api/documentation#/Users%20Route/userSearch
|
|
524
|
+
*
|
|
525
|
+
* @returns promise
|
|
526
|
+
*/
|
|
527
|
+
public static search<T>(params?: Record<string, any>): AxiosPromise<Response<T>> {
|
|
528
|
+
return Requests.processRoute(UserRoutes.routes.search, undefined, undefined, params);
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
|
|
520
532
|
|
|
521
533
|
|
|
522
534
|
|
package/src/routes/UserRoutes.ts
CHANGED
|
@@ -44,6 +44,8 @@ class UserRoutes {
|
|
|
44
44
|
getSubreddits: { url: "/users/reddit/subreddits", method: HTTP_METHODS.GET },
|
|
45
45
|
getSubredditFlairs: { url: "/users/reddit/redditflairs/{subreddit}", method: HTTP_METHODS.GET },
|
|
46
46
|
|
|
47
|
+
search: { url: '/users/search', method: HTTP_METHODS.GET },
|
|
48
|
+
|
|
47
49
|
};
|
|
48
50
|
|
|
49
51
|
}
|