From a4e3438b3def16b6cf04cefbaafc82aff036feb4 Mon Sep 17 00:00:00 2001 From: kiwiyou Date: Mon, 26 Aug 2024 15:08:45 +0900 Subject: [PATCH] fix: schema not built for dist --- .changeset/chilly-eagles-listen.md | 5 +++++ biome.json | 2 +- packages/server-sdk/{ => src}/__generated__/schema.d.ts | 0 packages/server-sdk/src/api.ts | 2 +- packages/server-sdk/src/billing-keys.ts | 2 +- packages/server-sdk/src/cash-receipts.ts | 2 +- packages/server-sdk/src/client.ts | 2 +- packages/server-sdk/src/errors.ts | 2 +- packages/server-sdk/src/identity-verifications.ts | 2 +- packages/server-sdk/src/index.ts | 2 +- packages/server-sdk/src/payment-scheuldes.ts | 2 +- packages/server-sdk/src/payments.ts | 2 +- 12 files changed, 15 insertions(+), 10 deletions(-) create mode 100644 .changeset/chilly-eagles-listen.md rename packages/server-sdk/{ => src}/__generated__/schema.d.ts (100%) diff --git a/.changeset/chilly-eagles-listen.md b/.changeset/chilly-eagles-listen.md new file mode 100644 index 0000000..ec65414 --- /dev/null +++ b/.changeset/chilly-eagles-listen.md @@ -0,0 +1,5 @@ +--- +"@portone/server-sdk": patch +--- + +schema.d.ts가 배포되도록 수정 diff --git a/biome.json b/biome.json index 599341d..ec71c3f 100644 --- a/biome.json +++ b/biome.json @@ -16,7 +16,7 @@ }, "files": { "ignore": [ - "packages/server-sdk/__generated__", + "packages/server-sdk/src/__generated__", "package.json", ".changeset" ] diff --git a/packages/server-sdk/__generated__/schema.d.ts b/packages/server-sdk/src/__generated__/schema.d.ts similarity index 100% rename from packages/server-sdk/__generated__/schema.d.ts rename to packages/server-sdk/src/__generated__/schema.d.ts diff --git a/packages/server-sdk/src/api.ts b/packages/server-sdk/src/api.ts index 63d3383..0938d4a 100644 --- a/packages/server-sdk/src/api.ts +++ b/packages/server-sdk/src/api.ts @@ -1,4 +1,4 @@ -import type { Paths } from "../__generated__/schema"; +import type { Paths } from "./__generated__/schema"; export type MethodType = { [Path in keyof Paths]: Paths[Path][keyof Paths[Path]]; diff --git a/packages/server-sdk/src/billing-keys.ts b/packages/server-sdk/src/billing-keys.ts index 6771026..8609585 100644 --- a/packages/server-sdk/src/billing-keys.ts +++ b/packages/server-sdk/src/billing-keys.ts @@ -3,7 +3,7 @@ import type { BillingKeySortInput, InstantBillingKeyPaymentMethodInput, IssueBillingKeyBody, -} from "../__generated__/schema"; +} from "./__generated__/schema"; import type { ApiClient } from "./client"; import { BillingKeyAlreadyDeletedError, diff --git a/packages/server-sdk/src/cash-receipts.ts b/packages/server-sdk/src/cash-receipts.ts index d808975..4fb4e26 100644 --- a/packages/server-sdk/src/cash-receipts.ts +++ b/packages/server-sdk/src/cash-receipts.ts @@ -1,4 +1,4 @@ -import type { IssueCashReceiptBody } from "../__generated__/schema"; +import type { IssueCashReceiptBody } from "./__generated__/schema"; import type { ApiClient } from "./client"; import { CashReceiptAlreadyIssuedError, diff --git a/packages/server-sdk/src/client.ts b/packages/server-sdk/src/client.ts index 768a67c..3e983dc 100644 --- a/packages/server-sdk/src/client.ts +++ b/packages/server-sdk/src/client.ts @@ -1,4 +1,4 @@ -import type { Paths } from "../__generated__/schema"; +import type { Paths } from "./__generated__/schema"; import type { MethodType } from "./api"; export type ApiRequestClientInit = { diff --git a/packages/server-sdk/src/errors.ts b/packages/server-sdk/src/errors.ts index 3514194..5b44384 100644 --- a/packages/server-sdk/src/errors.ts +++ b/packages/server-sdk/src/errors.ts @@ -1,4 +1,4 @@ -import type Schema from "../__generated__/schema"; +import type Schema from "./__generated__/schema"; import type { WebhookVerificationFailureReason } from "./webhook"; /** diff --git a/packages/server-sdk/src/identity-verifications.ts b/packages/server-sdk/src/identity-verifications.ts index 2fc11cf..819ac95 100644 --- a/packages/server-sdk/src/identity-verifications.ts +++ b/packages/server-sdk/src/identity-verifications.ts @@ -1,4 +1,4 @@ -import type { SendIdentityVerificationBody } from "../__generated__/schema"; +import type { SendIdentityVerificationBody } from "./__generated__/schema"; import type { ApiClient } from "./client"; import { ChannelNotFoundError, diff --git a/packages/server-sdk/src/index.ts b/packages/server-sdk/src/index.ts index b4b622e..3648964 100644 --- a/packages/server-sdk/src/index.ts +++ b/packages/server-sdk/src/index.ts @@ -5,7 +5,7 @@ import { IdentityVerificationApi } from "./identity-verifications"; import { PaymentScheduleApi } from "./payment-scheuldes"; import { PaymentApi } from "./payments"; import { PgProviderApi } from "./pg-providers"; -export type * as Schema from "../__generated__/schema.js"; +export type * as Schema from "./__generated__/schema.js"; export { type ApiRequestClientInit } from "./client"; export * as Errors from "./errors"; export * as Webhook from "./webhook"; diff --git a/packages/server-sdk/src/payment-scheuldes.ts b/packages/server-sdk/src/payment-scheuldes.ts index 8732b16..c5564b7 100644 --- a/packages/server-sdk/src/payment-scheuldes.ts +++ b/packages/server-sdk/src/payment-scheuldes.ts @@ -3,7 +3,7 @@ import type { PaymentScheduleFilterInput, PaymentScheduleSortInput, RevokePaymentSchedulesBody, -} from "../__generated__/schema"; +} from "./__generated__/schema"; import type { ApiClient } from "./client"; import { AlreadyPaidOrWaitingError, diff --git a/packages/server-sdk/src/payments.ts b/packages/server-sdk/src/payments.ts index 9e46e19..4e1a71f 100644 --- a/packages/server-sdk/src/payments.ts +++ b/packages/server-sdk/src/payments.ts @@ -7,7 +7,7 @@ import type { PreRegisterPaymentBody, RegisterEscrowLogisticsBody, RegisterStoreReceiptBodyItem, -} from "../__generated__/schema"; +} from "./__generated__/schema"; import type { ApiClient } from "./client"; import { AlreadyPaidError,