Skip to content

Commit

Permalink
Merge pull request #189 from samchon/features/dependencies
Browse files Browse the repository at this point in the history
Upgrade `nestia` dependencies.
  • Loading branch information
samchon authored Feb 15, 2024
2 parents 150c261 + 042e946 commit 42dd62f
Show file tree
Hide file tree
Showing 35 changed files with 8,998 additions and 162 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.5",
"version": "6.0.6",
"description": "Collection of Payment system of Samchon",
"scripts": {
"package:latest": "node deploy latest",
Expand Down
5 changes: 4 additions & 1 deletion packages/fake-iamport-server/nestia.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type { INestiaConfig } from "@nestia/sdk";
import { NestFactory } from "@nestjs/core";
import { FastifyAdapter } from "@nestjs/platform-fastify";

import { FakeIamportModule } from "./src/FakeIamportModule";

const NESTIA_CONFIG: INestiaConfig = {
input: () => NestFactory.create(FakeIamportModule),
input: () => NestFactory.create(FakeIamportModule, new FastifyAdapter()),
output: "src/api",
distribute: "../iamport-server-api",
swagger: {
Expand All @@ -31,6 +32,8 @@ const NESTIA_CONFIG: INestiaConfig = {
in: "header",
},
},
beautify: true,
},
primitive: false,
};
export default NESTIA_CONFIG;
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.5",
"version": "6.0.6",
"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.5.1",
"@nestia/sdk": "^2.5.8",
"@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.5.1",
"@nestia/core": "^2.5.8",
"@nestia/e2e": "^0.4.1",
"@nestia/fetcher": "^2.5.1",
"@nestia/fetcher": "^2.5.8",
"@nestjs/common": "^10.2.8",
"@nestjs/core": "^10.2.8",
"@nestjs/platform-fastify": "^10.2.8",
Expand All @@ -70,7 +70,7 @@
"source-map-support": "^0.5.19",
"tstl": "^2.5.13",
"typescript-transform-paths": "^3.4.6",
"typia": "^5.4.1",
"typia": "^5.4.9",
"uuid": "^9.0.0"
},
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import type { IConnection, Primitive } from "@nestia/fetcher";
import type { IConnection } from "@nestia/fetcher";
import { PlainFetcher } from "@nestia/fetcher/lib/PlainFetcher";

import type { IIamportCertification } from "../../structures/IIamportCertification";
Expand Down Expand Up @@ -41,7 +41,7 @@ export async function at(
});
}
export namespace at {
export type Output = Primitive<IIamportResponse<IIamportCertification>>;
export type Output = IIamportResponse<IIamportCertification>;

export const METADATA = {
method: "GET",
Expand Down Expand Up @@ -80,7 +80,7 @@ export async function erase(
});
}
export namespace erase {
export type Output = Primitive<IIamportResponse<IIamportCertification>>;
export type Output = IIamportResponse<IIamportCertification>;

export const METADATA = {
method: "DELETE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import type { IConnection, Primitive } from "@nestia/fetcher";
import type { IConnection } from "@nestia/fetcher";
import { PlainFetcher } from "@nestia/fetcher/lib/PlainFetcher";

import type { IIamportCertification } from "../../../structures/IIamportCertification";
Expand Down Expand Up @@ -34,7 +34,7 @@ import type { IIamportResponse } from "../../../structures/IIamportResponse";
*/
export async function request(
connection: IConnection,
input: request.Input,
input: IIamportCertification.ICreate,
): Promise<request.Output> {
return PlainFetcher.fetch(
{
Expand All @@ -52,10 +52,8 @@ export async function request(
);
}
export namespace request {
export type Input = Primitive<IIamportCertification.ICreate>;
export type Output = Primitive<
IIamportResponse<IIamportCertification.IAccessor>
>;
export type Input = IIamportCertification.ICreate;
export type Output = IIamportResponse<IIamportCertification.IAccessor>;

export const METADATA = {
method: "POST",
Expand Down Expand Up @@ -99,7 +97,7 @@ export namespace request {
export async function confirm(
connection: IConnection,
imp_uid: string,
input: confirm.Input,
input: IIamportCertification.IConfirm,
): Promise<confirm.Output> {
return PlainFetcher.fetch(
{
Expand All @@ -117,8 +115,8 @@ export async function confirm(
);
}
export namespace confirm {
export type Input = Primitive<IIamportCertification.IConfirm>;
export type Output = Primitive<IIamportResponse<IIamportCertification>>;
export type Input = IIamportCertification.IConfirm;
export type Output = IIamportResponse<IIamportCertification>;

export const METADATA = {
method: "POST",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import type { IConnection, Primitive } from "@nestia/fetcher";
import type { IConnection } from "@nestia/fetcher";
import { PlainFetcher } from "@nestia/fetcher/lib/PlainFetcher";

import type { IIamportPayment } from "../../structures/IIamportPayment";
Expand All @@ -30,7 +30,7 @@ import type { IIamportPayment } from "../../structures/IIamportPayment";
*/
export async function webhook(
connection: IConnection,
input: webhook.Input,
input: IIamportPayment.IWebhook,
): Promise<void> {
return PlainFetcher.fetch(
{
Expand All @@ -48,7 +48,7 @@ export async function webhook(
);
}
export namespace webhook {
export type Input = Primitive<IIamportPayment.IWebhook>;
export type Input = IIamportPayment.IWebhook;

export const METADATA = {
method: "POST",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import type { IConnection, Resolved, Primitive } from "@nestia/fetcher";
import type { IConnection } from "@nestia/fetcher";
import { PlainFetcher } from "@nestia/fetcher/lib/PlainFetcher";

import type { IIamportPayment } from "../../structures/IIamportPayment";
Expand All @@ -29,16 +29,16 @@ import type { IIamportResponse } from "../../structures/IIamportResponse";
export async function at(
connection: IConnection,
imp_uid: string,
query: at.Query,
query: IIamportPayment.IQuery,
): Promise<at.Output> {
return PlainFetcher.fetch(connection, {
...at.METADATA,
path: at.path(imp_uid, query),
});
}
export namespace at {
export type Query = Resolved<IIamportPayment.IQuery>;
export type Output = Primitive<IIamportResponse<IIamportPayment>>;
export type Query = IIamportPayment.IQuery;
export type Output = IIamportResponse<IIamportPayment>;

export const METADATA = {
method: "GET",
Expand Down Expand Up @@ -81,7 +81,7 @@ export namespace at {
*/
export async function cancel(
connection: IConnection,
input: cancel.Input,
input: IIamportPaymentCancel.ICreate,
): Promise<cancel.Output> {
return PlainFetcher.fetch(
{
Expand All @@ -99,8 +99,8 @@ export async function cancel(
);
}
export namespace cancel {
export type Input = Primitive<IIamportPaymentCancel.ICreate>;
export type Output = Primitive<IIamportResponse<IIamportPayment>>;
export type Input = IIamportPaymentCancel.ICreate;
export type Output = IIamportResponse<IIamportPayment>;

export const METADATA = {
method: "POST",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import type { IConnection, Primitive } from "@nestia/fetcher";
import type { IConnection } from "@nestia/fetcher";
import { PlainFetcher } from "@nestia/fetcher/lib/PlainFetcher";

import type { IIamportReceipt } from "../../structures/IIamportReceipt";
Expand Down Expand Up @@ -32,7 +32,7 @@ export async function at(
});
}
export namespace at {
export type Output = Primitive<IIamportResponse<IIamportReceipt>>;
export type Output = IIamportResponse<IIamportReceipt>;

export const METADATA = {
method: "GET",
Expand Down Expand Up @@ -65,7 +65,7 @@ export namespace at {
export async function create(
connection: IConnection,
imp_uid: string,
input: create.Input,
input: IIamportReceipt.ICreate,
): Promise<create.Output> {
return PlainFetcher.fetch(
{
Expand All @@ -83,8 +83,8 @@ export async function create(
);
}
export namespace create {
export type Input = Primitive<IIamportReceipt.ICreate>;
export type Output = Primitive<IIamportResponse<IIamportReceipt>>;
export type Input = IIamportReceipt.ICreate;
export type Output = IIamportResponse<IIamportReceipt>;

export const METADATA = {
method: "POST",
Expand Down Expand Up @@ -126,7 +126,7 @@ export async function erase(
});
}
export namespace erase {
export type Output = Primitive<IIamportResponse<IIamportReceipt>>;
export type Output = IIamportResponse<IIamportReceipt>;

export const METADATA = {
method: "DELETE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import type { IConnection, Primitive } from "@nestia/fetcher";
import type { IConnection } from "@nestia/fetcher";
import { PlainFetcher } from "@nestia/fetcher/lib/PlainFetcher";

import type { IIamportResponse } from "../../../structures/IIamportResponse";
Expand Down Expand Up @@ -36,7 +36,7 @@ export async function at(
});
}
export namespace at {
export type Output = Primitive<IIamportResponse<IIamportSubscription>>;
export type Output = IIamportResponse<IIamportSubscription>;

export const METADATA = {
method: "GET",
Expand Down Expand Up @@ -78,7 +78,7 @@ export namespace at {
export async function create(
connection: IConnection,
customer_uid: string,
input: create.Input,
input: IIamportSubscription.ICreate,
): Promise<create.Output> {
return PlainFetcher.fetch(
{
Expand All @@ -96,8 +96,8 @@ export async function create(
);
}
export namespace create {
export type Input = Primitive<IIamportSubscription.ICreate>;
export type Output = Primitive<IIamportResponse<IIamportSubscription>>;
export type Input = IIamportSubscription.ICreate;
export type Output = IIamportResponse<IIamportSubscription>;

export const METADATA = {
method: "POST",
Expand Down Expand Up @@ -141,7 +141,7 @@ export async function erase(
});
}
export namespace erase {
export type Output = Primitive<IIamportResponse<IIamportSubscription>>;
export type Output = IIamportResponse<IIamportSubscription>;

export const METADATA = {
method: "DELETE",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import type { IConnection, Primitive } from "@nestia/fetcher";
import type { IConnection } from "@nestia/fetcher";
import { PlainFetcher } from "@nestia/fetcher/lib/PlainFetcher";

import type { IIamportCardPayment } from "../../../structures/IIamportCardPayment";
Expand Down Expand Up @@ -41,7 +41,7 @@ import type { IIamportSubscription } from "../../../structures/IIamportSubscript
*/
export async function onetime(
connection: IConnection,
input: onetime.Input,
input: IIamportSubscription.IOnetime,
): Promise<onetime.Output> {
return PlainFetcher.fetch(
{
Expand All @@ -59,8 +59,8 @@ export async function onetime(
);
}
export namespace onetime {
export type Input = Primitive<IIamportSubscription.IOnetime>;
export type Output = Primitive<IIamportResponse<IIamportCardPayment>>;
export type Input = IIamportSubscription.IOnetime;
export type Output = IIamportResponse<IIamportCardPayment>;

export const METADATA = {
method: "POST",
Expand Down Expand Up @@ -103,7 +103,7 @@ export namespace onetime {
*/
export async function again(
connection: IConnection,
input: again.Input,
input: IIamportSubscription.IAgain,
): Promise<again.Output> {
return PlainFetcher.fetch(
{
Expand All @@ -121,8 +121,8 @@ export async function again(
);
}
export namespace again {
export type Input = Primitive<IIamportSubscription.IAgain>;
export type Output = Primitive<IIamportResponse<IIamportCardPayment>>;
export type Input = IIamportSubscription.IAgain;
export type Output = IIamportResponse<IIamportCardPayment>;

export const METADATA = {
method: "POST",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* @nestia Generated by Nestia - https://github.com/samchon/nestia
*/
//================================================================
import type { IConnection, Primitive } from "@nestia/fetcher";
import type { IConnection } from "@nestia/fetcher";
import { PlainFetcher } from "@nestia/fetcher/lib/PlainFetcher";

import type { IIamportResponse } from "../../structures/IIamportResponse";
Expand All @@ -30,7 +30,7 @@ import type { IIamportUser } from "../../structures/IIamportUser";
*/
export async function getToken(
connection: IConnection,
input: getToken.Input,
input: IIamportUser.IAccessor,
): Promise<getToken.Output> {
return PlainFetcher.fetch(
{
Expand All @@ -48,8 +48,8 @@ export async function getToken(
);
}
export namespace getToken {
export type Input = Primitive<IIamportUser.IAccessor>;
export type Output = Primitive<IIamportResponse<IIamportUser>>;
export type Input = IIamportUser.IAccessor;
export type Output = IIamportResponse<IIamportUser>;

export const METADATA = {
method: "POST",
Expand Down
Loading

0 comments on commit 42dd62f

Please sign in to comment.