mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-25 05:41:12 +00:00
Add method for getting individual application
This commit is contained in:
parent
a1568d3d90
commit
92b654d7cf
3 changed files with 278 additions and 303 deletions
18
package.json
18
package.json
|
@ -19,20 +19,20 @@
|
|||
"url": "git+https://github.com/LemmyNet/lemmy-js-client.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.11.19",
|
||||
"@types/node": "^22.1.0",
|
||||
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
||||
"@typescript-eslint/parser": "^8.0.0",
|
||||
"eslint": "^9.0.0",
|
||||
"eslint-plugin-prettier": "^5.1.3",
|
||||
"husky": "^9.0.11",
|
||||
"lint-staged": "^15.2.2",
|
||||
"prettier": "^3.2.5",
|
||||
"eslint": "^9.8.0",
|
||||
"eslint-plugin-prettier": "^5.2.1",
|
||||
"husky": "^9.1.4",
|
||||
"lint-staged": "^15.2.7",
|
||||
"prettier": "^3.3.3",
|
||||
"prettier-plugin-import-sort": "^0.0.7",
|
||||
"prettier-plugin-organize-imports": "^4.0.0",
|
||||
"prettier-plugin-packagejson": "^2.4.11",
|
||||
"prettier-plugin-packagejson": "^2.5.1",
|
||||
"sortpack": "^2.4.0",
|
||||
"typedoc": "^0.26.0",
|
||||
"typescript": "^5.3.3",
|
||||
"typedoc": "^0.26.5",
|
||||
"typescript": "^5.5.4",
|
||||
"typescript-eslint": "^8.0.0"
|
||||
},
|
||||
"packageManager": "pnpm@9.6.0",
|
||||
|
|
550
pnpm-lock.yaml
550
pnpm-lock.yaml
File diff suppressed because it is too large
Load diff
13
src/http.ts
13
src/http.ts
|
@ -139,6 +139,7 @@ import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
|
|||
import { HidePost } from "./types/HidePost";
|
||||
import { ListMedia } from "./types/ListMedia";
|
||||
import { ListMediaResponse } from "./types/ListMediaResponse";
|
||||
import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
|
||||
|
||||
enum HttpType {
|
||||
Get = "GET",
|
||||
|
@ -1330,6 +1331,18 @@ export class LemmyHttp {
|
|||
>(HttpType.Put, "/admin/registration_application/approve", form);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the application a user submitted when they first registered their account
|
||||
*
|
||||
* `HTTP.GET /admin/registration_application`
|
||||
*/
|
||||
getRegistrationApplication(form: GetRegistrationApplication) {
|
||||
return this.#wrapper<
|
||||
GetRegistrationApplication,
|
||||
RegistrationApplicationResponse
|
||||
>(HttpType.Get, "/admin/registration_application", form);
|
||||
}
|
||||
|
||||
/**
|
||||
* Purge / Delete a person from the database.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue