Add method for getting individual application

This commit is contained in:
SleeplessOne1917 2024-08-02 19:37:01 -04:00
parent a1568d3d90
commit 92b654d7cf
3 changed files with 278 additions and 303 deletions

View file

@ -19,20 +19,20 @@
"url": "git+https://github.com/LemmyNet/lemmy-js-client.git" "url": "git+https://github.com/LemmyNet/lemmy-js-client.git"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.11.19", "@types/node": "^22.1.0",
"@typescript-eslint/eslint-plugin": "^8.0.0", "@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0", "@typescript-eslint/parser": "^8.0.0",
"eslint": "^9.0.0", "eslint": "^9.8.0",
"eslint-plugin-prettier": "^5.1.3", "eslint-plugin-prettier": "^5.2.1",
"husky": "^9.0.11", "husky": "^9.1.4",
"lint-staged": "^15.2.2", "lint-staged": "^15.2.7",
"prettier": "^3.2.5", "prettier": "^3.3.3",
"prettier-plugin-import-sort": "^0.0.7", "prettier-plugin-import-sort": "^0.0.7",
"prettier-plugin-organize-imports": "^4.0.0", "prettier-plugin-organize-imports": "^4.0.0",
"prettier-plugin-packagejson": "^2.4.11", "prettier-plugin-packagejson": "^2.5.1",
"sortpack": "^2.4.0", "sortpack": "^2.4.0",
"typedoc": "^0.26.0", "typedoc": "^0.26.5",
"typescript": "^5.3.3", "typescript": "^5.5.4",
"typescript-eslint": "^8.0.0" "typescript-eslint": "^8.0.0"
}, },
"packageManager": "pnpm@9.6.0", "packageManager": "pnpm@9.6.0",

File diff suppressed because it is too large Load diff

View file

@ -139,6 +139,7 @@ import { ListCommentLikesResponse } from "./types/ListCommentLikesResponse";
import { HidePost } from "./types/HidePost"; import { HidePost } from "./types/HidePost";
import { ListMedia } from "./types/ListMedia"; import { ListMedia } from "./types/ListMedia";
import { ListMediaResponse } from "./types/ListMediaResponse"; import { ListMediaResponse } from "./types/ListMediaResponse";
import { GetRegistrationApplication } from "./types/GetRegistrationApplication";
enum HttpType { enum HttpType {
Get = "GET", Get = "GET",
@ -1330,6 +1331,18 @@ export class LemmyHttp {
>(HttpType.Put, "/admin/registration_application/approve", form); >(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. * Purge / Delete a person from the database.
* *