Skip to content

Commit

Permalink
Merge pull request #188 from samchon/features/sdk
Browse files Browse the repository at this point in the history
Upgrade nestia and build prettiered SDK
  • Loading branch information
samchon authored Feb 1, 2024
2 parents 4dd2781 + 520b53e commit 150c261
Show file tree
Hide file tree
Showing 41 changed files with 1,485 additions and 1,597 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@samchon/payments",
"version": "6.0.4",
"version": "6.0.5",
"description": "Collection of Payment system of Samchon",
"scripts": {
"package:latest": "node deploy latest",
Expand Down
10 changes: 5 additions & 5 deletions packages/fake-iamport-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fake-iamport-server",
"version": "6.0.4",
"version": "6.0.5",
"description": "Fake iamport server for testing",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"homepage": "https://github.com/samchon/fake-iamport-server",
"devDependencies": {
"@nestia/sdk": "^2.4.5",
"@nestia/sdk": "^2.5.1",
"@types/atob": "^2.1.2",
"@types/btoa": "^1.2.3",
"@types/cli": "^0.11.19",
Expand All @@ -57,9 +57,9 @@
"typescript": "^5.3.2"
},
"dependencies": {
"@nestia/core": "^2.4.5",
"@nestia/e2e": "^0.4.0",
"@nestia/fetcher": "^2.4.5",
"@nestia/core": "^2.5.1",
"@nestia/e2e": "^0.4.1",
"@nestia/fetcher": "^2.5.1",
"@nestjs/common": "^10.2.8",
"@nestjs/core": "^10.2.8",
"@nestjs/platform-fastify": "^10.2.8",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @packageDocumentation
* @module api.functional.certifications
* @nestia Generated by Nestia - https://github.com/samchon/nestia
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import type { IConnection, Primitive } from "@nestia/fetcher";
Expand All @@ -14,93 +14,85 @@ export * as otp from "./otp";

/**
* 본인인증 정보 열람하기.
*
*
* `certiciations.at` 은 본인인증 정보를 열람할 때 사용하는 API 함수이다.
*
*
* 다만 이 API 함수를 통하여 열람한 본인인증 정보 {@link IIamportCertification } 이
* 곧 OTP 인증까지 마쳐 본인인증을 모두 마친 레코드라는 보장은 없다. 본인인증의 완결
* 여부는 오직, {@link IIamportCertification.certified } 값을 직접 검사해봐야만 알
* 수 있기 때문이다.
*
*
* @param imp_uid 대상 본인인증 정보의 {@link IIamportCertification.imp_uid}
* @returns 본인인증 정보
* @security bearer
* @author Samchon
*
*
* @controller FakeIamportCertificationsController.at
* @path GET /certifications/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
export async function at(
connection: IConnection,
imp_uid: string,
connection: IConnection,
imp_uid: string,
): Promise<at.Output> {
return PlainFetcher.fetch(
connection,
{
...at.METADATA,
path: at.path(imp_uid),
} as const,
);
return PlainFetcher.fetch(connection, {
...at.METADATA,
path: at.path(imp_uid),
});
}
export namespace at {
export type Output = Primitive<IIamportResponse<IIamportCertification>>;
export type Output = Primitive<IIamportResponse<IIamportCertification>>;

export const METADATA = {
method: "GET",
path: "/certifications/:imp_uid",
request: null,
response: {
type: "application/json",
encrypted: false,
},
status: null,
} as const;
export const METADATA = {
method: "GET",
path: "/certifications/:imp_uid",
request: null,
response: {
type: "application/json",
encrypted: false,
},
status: null,
} as const;

export const path = (imp_uid: string): string => {
return `/certifications/${encodeURIComponent(imp_uid ?? "null")}`;
}
export const path = (imp_uid: string) =>
`/certifications/${encodeURIComponent(imp_uid ?? "null")}`;
}

/**
* 본인인증 정보 삭제하기.
*
*
* @param imp_uid 대상 본인인증 정보의 {@link IIamportCertification.imp_uid}
* @returns 삭제된 본인인증 정보
* @security bearer
* @author Samchon
*
*
* @controller FakeIamportCertificationsController.erase
* @path DELETE /certifications/:imp_uid
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
export async function erase(
connection: IConnection,
imp_uid: string,
connection: IConnection,
imp_uid: string,
): Promise<erase.Output> {
return PlainFetcher.fetch(
connection,
{
...erase.METADATA,
path: erase.path(imp_uid),
} as const,
);
return PlainFetcher.fetch(connection, {
...erase.METADATA,
path: erase.path(imp_uid),
});
}
export namespace erase {
export type Output = Primitive<IIamportResponse<IIamportCertification>>;
export type Output = Primitive<IIamportResponse<IIamportCertification>>;

export const METADATA = {
method: "DELETE",
path: "/certifications/:imp_uid",
request: null,
response: {
type: "application/json",
encrypted: false,
},
status: null,
} as const;
export const METADATA = {
method: "DELETE",
path: "/certifications/:imp_uid",
request: null,
response: {
type: "application/json",
encrypted: false,
},
status: null,
} as const;

export const path = (imp_uid: string): string => {
return `/certifications/${encodeURIComponent(imp_uid ?? "null")}`;
}
}
export const path = (imp_uid: string) =>
`/certifications/${encodeURIComponent(imp_uid ?? "null")}`;
}
Loading

0 comments on commit 150c261

Please sign in to comment.