All files / sdk/functional/users/me index.ts

0% Statements 0/18
0% Branches 0/4
0% Functions 0/6
0% Lines 0/18

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91                                                                                                                                                                                     
/**
 * @packageDocumentation
 * @module api.functional.users.me
 * @nestia Generated by Nestia - https://github.com/samchon/nestia 
 */
//================================================================
import { Fetcher } from "@nestia/fetcher";
import type { IConnection } from "@nestia/fetcher";
 
import type { IUserAggregate } from "./../../../../interface/user/domain/index";
 
export * as role from "./role";
 
/**
 * 내 프로필 보기 API
 * 
 * @tag users
 * @returns 계정 정보와 사용자 권한 정보 등을 전달
 * @throw 401 로그인이 필요합니다.
 * 
 * @controller UserController.me()
 * @path GET /users/me
 * @nestia Generated by Nestia - https://github.com/samchon/nestia
 */
export function me
    (
        connection: IConnection
    ): Promise<me.Output>
{
    return Fetcher.fetch
    (
        connection,
        me.ENCRYPTED,
        me.METHOD,
        me.path()
    );
}
export namespace me
{
    export type Output = IUserAggregate.Public;
 
    export const METHOD = "GET" as const;
    export const PATH: string = "/users/me";
    export const ENCRYPTED: Fetcher.IEncrypted = {
        request: false,
        response: false,
    };
 
    export function path(): string
    {
        return `/users/me`;
    }
}
 
/**
 * user delete API
 * 
 * @tag users
 * 
 * @controller UserController.remove()
 * @path DELETE /users/me
 * @nestia Generated by Nestia - https://github.com/samchon/nestia
 */
export function remove
    (
        connection: IConnection
    ): Promise<void>
{
    return Fetcher.fetch
    (
        connection,
        remove.ENCRYPTED,
        remove.METHOD,
        remove.path()
    );
}
export namespace remove
{
 
    export const METHOD = "DELETE" as const;
    export const PATH: string = "/users/me";
    export const ENCRYPTED: Fetcher.IEncrypted = {
        request: false,
        response: false,
    };
 
    export function path(): string
    {
        return `/users/me`;
    }
}