From be75e9805090d922b2dc4eebb80a34870f97191b Mon Sep 17 00:00:00 2001 From: woody35545 Date: Thu, 13 Jun 2024 18:28:58 +0900 Subject: [PATCH] =?UTF-8?q?remove:=20=EC=82=AC=EC=9A=A9=EB=90=98=EC=A7=80?= =?UTF-8?q?=20=EC=95=8A=EB=8A=94=20=ED=8C=8C=EC=9D=BC=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- node_modules/.package-lock.json | 78 -- .../dist/SDKBridge/baseMessageData.d.ts | 3 - .../dist/SDKBridge/baseMessageData.js | 2 - .../dist/SDKBridge/commonParams.d.ts | 64 - .../dist/SDKBridge/commonParams.js | 2 - .../SDKBridge/event/RegisterRoutePath.d.ts | 11 - .../dist/SDKBridge/event/RegisterRoutePath.js | 4 - .../dist/SDKBridge/event/cancel.d.ts | 11 - .../dist/SDKBridge/event/cancel.js | 4 - .../dist/SDKBridge/event/commonParams.d.ts | 7 - .../dist/SDKBridge/event/commonParams.js | 4 - .../dist/SDKBridge/event/complete.d.ts | 5 - .../dist/SDKBridge/event/complete.js | 4 - .../dist/SDKBridge/event/customerToken.d.ts | 6 - .../dist/SDKBridge/event/customerToken.js | 4 - .../dist/SDKBridge/event/disposeBridge.d.ts | 5 - .../dist/SDKBridge/event/disposeBridge.js | 4 - .../dist/SDKBridge/event/invokedMethod.d.ts | 7 - .../dist/SDKBridge/event/invokedMethod.js | 4 - .../kt-alpha-shop/ktAlphaShopOCRScan.d.ts | 6 - .../event/kt-alpha-shop/ktAlphaShopOCRScan.js | 4 - .../dist/SDKBridge/event/mount.d.ts | 8 - .../dist/SDKBridge/event/mount.js | 4 - .../getShippingAddressWidgetEnabled.d.ts | 5 - .../getShippingAddressWidgetEnabled.js | 4 - .../syncShippingAddressToBrandpay.d.ts | 5 - .../syncShippingAddressToBrandpay.js | 4 - .../SDKBridge/event/paymentMethodType.d.ts | 7 - .../dist/SDKBridge/event/paymentMethodType.js | 4 - .../dist/SDKBridge/event/paymentMethods.d.ts | 7 - .../dist/SDKBridge/event/paymentMethods.js | 4 - .../dist/SDKBridge/event/paymentParams.d.ts | 7 - .../dist/SDKBridge/event/paymentParams.js | 4 - .../dist/SDKBridge/event/paymentResult.d.ts | 17 - .../dist/SDKBridge/event/paymentResult.js | 4 - .../dist/SDKBridge/event/registerResult.d.ts | 14 - .../dist/SDKBridge/event/registerResult.js | 4 - .../dist/SDKBridge/event/routePath.d.ts | 6 - .../dist/SDKBridge/event/routePath.js | 4 - .../dist/SDKBridge/event/safeArea.d.ts | 10 - .../dist/SDKBridge/event/safeArea.js | 4 - .../dist/SDKBridge/event/sdkConfig.d.ts | 7 - .../dist/SDKBridge/event/sdkConfig.js | 4 - .../dist/SDKBridge/event/serverUrl.d.ts | 6 - .../dist/SDKBridge/event/serverUrl.js | 4 - .../dist/SDKBridge/event/termScope.d.ts | 7 - .../dist/SDKBridge/event/termScope.js | 4 - .../dist/SDKBridge/event/viewport.d.ts | 12 - .../dist/SDKBridge/event/viewport.js | 4 - .../dist/SDKBridge/event/widget/mount.d.ts | 8 - .../dist/SDKBridge/event/widget/mount.js | 4 - .../event/widget/openAddPaymentMethod.d.ts | 7 - .../event/widget/openAddPaymentMethod.js | 4 - .../event/widget/openCashReceiptSetting.d.ts | 5 - .../event/widget/openCashReceiptSetting.js | 4 - .../SDKBridge/event/widget/openRegister.d.ts | 5 - .../SDKBridge/event/widget/openRegister.js | 4 - .../SDKBridge/event/widget/resizeWidget.d.ts | 6 - .../SDKBridge/event/widget/resizeWidget.js | 4 - .../SDKBridge/event/widget/syncState.d.ts | 7 - .../dist/SDKBridge/event/widget/syncState.js | 4 - .../SDKBridge/event/widget/updateAmount.d.ts | 6 - .../SDKBridge/event/widget/updateAmount.js | 4 - .../event/widget/updateCashReceipt.d.ts | 7 - .../event/widget/updateCashReceipt.js | 4 - .../event/widget/updatePaymentMethod.d.ts | 7 - .../event/widget/updatePaymentMethod.js | 4 - .../event/widget/updateWidgetParams.d.ts | 7 - .../event/widget/updateWidgetParams.js | 4 - .../SDKBridge/event/widget/widgetParams.d.ts | 7 - .../SDKBridge/event/widget/widgetParams.js | 4 - .../brandpay-types/dist/SDKBridge/index.d.ts | 11 - .../brandpay-types/dist/SDKBridge/index.js | 27 - .../dist/SDKBridge/invokedMethod.d.ts | 9 - .../dist/SDKBridge/invokedMethod.js | 7 - .../dist/SDKBridge/message.d.ts | 139 -- .../brandpay-types/dist/SDKBridge/message.js | 83 -- .../dist/SDKBridge/paymentMethodType.d.ts | 5 - .../dist/SDKBridge/paymentMethodType.js | 6 - .../dist/SDKBridge/paymentParams.d.ts | 36 - .../dist/SDKBridge/paymentParams.js | 2 - .../dist/SDKBridge/sdkConfigParams.d.ts | 3 - .../dist/SDKBridge/sdkConfigParams.js | 2 - .../dist/SDKBridge/widgetParams.d.ts | 30 - .../dist/SDKBridge/widgetParams.js | 2 - .../dist/SDKBridge/widgetPaymentParams.d.ts | 5 - .../dist/SDKBridge/widgetPaymentParams.js | 2 - .../dist/apiClient/cardPromotions/index.d.ts | 33 - .../dist/apiClient/cardPromotions/index.js | 2 - .../dist/apiClient/cashReceipt/index.d.ts | 16 - .../dist/apiClient/cashReceipt/index.js | 2 - .../dist/apiClient/identity/index.d.ts | 8 - .../dist/apiClient/identity/index.js | 2 - .../brandpay-types/dist/apiClient/index.d.ts | 8 - .../brandpay-types/dist/apiClient/index.js | 24 - .../dist/apiClient/methods/account.d.ts | 141 -- .../dist/apiClient/methods/account.js | 83 -- .../dist/apiClient/methods/card.d.ts | 10 - .../dist/apiClient/methods/card.js | 2 - .../dist/apiClient/methods/cardInfo.d.ts | 68 - .../dist/apiClient/methods/cardInfo.js | 48 - .../dist/apiClient/methods/index.d.ts | 4 - .../dist/apiClient/methods/index.js | 20 - .../dist/apiClient/methods/method.d.ts | 66 - .../dist/apiClient/methods/method.js | 2 - .../dist/apiClient/properties/index.d.ts | 4 - .../dist/apiClient/properties/index.js | 2 - .../brandpay-types/dist/index.d.ts | 4 - .../brandpay-types/dist/index.js | 20 - .../brandpay-types/dist/methods/index.d.ts | 1 - .../brandpay-types/dist/methods/index.js | 17 - .../dist/methods/requestPayments.d.ts | 25 - .../dist/methods/requestPayments.js | 2 - .../brandpay-types/dist/models/Carrier.d.ts | 9 - .../brandpay-types/dist/models/Carrier.js | 11 - .../brandpay-types/dist/models/Terms.d.ts | 7 - .../brandpay-types/dist/models/Terms.js | 9 - .../brandpay-types/dist/models/index.d.ts | 2 - .../brandpay-types/dist/models/index.js | 18 - .../esm/SDKBridge/baseMessageData.d.ts | 3 - .../esm/SDKBridge/baseMessageData.js | 1 - .../esm/SDKBridge/commonParams.d.ts | 64 - .../esm/SDKBridge/commonParams.js | 1 - .../SDKBridge/event/RegisterRoutePath.d.ts | 11 - .../esm/SDKBridge/event/RegisterRoutePath.js | 1 - .../esm/SDKBridge/event/cancel.d.ts | 11 - .../esm/SDKBridge/event/cancel.js | 1 - .../esm/SDKBridge/event/commonParams.d.ts | 7 - .../esm/SDKBridge/event/commonParams.js | 1 - .../esm/SDKBridge/event/complete.d.ts | 5 - .../esm/SDKBridge/event/complete.js | 1 - .../esm/SDKBridge/event/customerToken.d.ts | 6 - .../esm/SDKBridge/event/customerToken.js | 1 - .../esm/SDKBridge/event/disposeBridge.d.ts | 5 - .../esm/SDKBridge/event/disposeBridge.js | 1 - .../esm/SDKBridge/event/invokedMethod.d.ts | 7 - .../esm/SDKBridge/event/invokedMethod.js | 1 - .../kt-alpha-shop/ktAlphaShopOCRScan.d.ts | 6 - .../event/kt-alpha-shop/ktAlphaShopOCRScan.js | 1 - .../esm/SDKBridge/event/mount.d.ts | 8 - .../esm/SDKBridge/event/mount.js | 1 - .../getShippingAddressWidgetEnabled.d.ts | 5 - .../getShippingAddressWidgetEnabled.js | 1 - .../syncShippingAddressToBrandpay.d.ts | 5 - .../syncShippingAddressToBrandpay.js | 1 - .../SDKBridge/event/paymentMethodType.d.ts | 7 - .../esm/SDKBridge/event/paymentMethodType.js | 1 - .../esm/SDKBridge/event/paymentMethods.d.ts | 7 - .../esm/SDKBridge/event/paymentMethods.js | 1 - .../esm/SDKBridge/event/paymentParams.d.ts | 7 - .../esm/SDKBridge/event/paymentParams.js | 1 - .../esm/SDKBridge/event/paymentResult.d.ts | 17 - .../esm/SDKBridge/event/paymentResult.js | 1 - .../esm/SDKBridge/event/registerResult.d.ts | 14 - .../esm/SDKBridge/event/registerResult.js | 1 - .../esm/SDKBridge/event/routePath.d.ts | 6 - .../esm/SDKBridge/event/routePath.js | 1 - .../esm/SDKBridge/event/safeArea.d.ts | 10 - .../esm/SDKBridge/event/safeArea.js | 1 - .../esm/SDKBridge/event/sdkConfig.d.ts | 7 - .../esm/SDKBridge/event/sdkConfig.js | 1 - .../esm/SDKBridge/event/serverUrl.d.ts | 6 - .../esm/SDKBridge/event/serverUrl.js | 1 - .../esm/SDKBridge/event/termScope.d.ts | 7 - .../esm/SDKBridge/event/termScope.js | 1 - .../esm/SDKBridge/event/viewport.d.ts | 12 - .../esm/SDKBridge/event/viewport.js | 1 - .../esm/SDKBridge/event/widget/mount.d.ts | 8 - .../esm/SDKBridge/event/widget/mount.js | 1 - .../event/widget/openAddPaymentMethod.d.ts | 7 - .../event/widget/openAddPaymentMethod.js | 1 - .../event/widget/openCashReceiptSetting.d.ts | 5 - .../event/widget/openCashReceiptSetting.js | 1 - .../SDKBridge/event/widget/openRegister.d.ts | 5 - .../SDKBridge/event/widget/openRegister.js | 1 - .../SDKBridge/event/widget/resizeWidget.d.ts | 6 - .../SDKBridge/event/widget/resizeWidget.js | 1 - .../esm/SDKBridge/event/widget/syncState.d.ts | 7 - .../esm/SDKBridge/event/widget/syncState.js | 1 - .../SDKBridge/event/widget/updateAmount.d.ts | 6 - .../SDKBridge/event/widget/updateAmount.js | 1 - .../event/widget/updateCashReceipt.d.ts | 7 - .../event/widget/updateCashReceipt.js | 1 - .../event/widget/updatePaymentMethod.d.ts | 7 - .../event/widget/updatePaymentMethod.js | 1 - .../event/widget/updateWidgetParams.d.ts | 7 - .../event/widget/updateWidgetParams.js | 1 - .../SDKBridge/event/widget/widgetParams.d.ts | 7 - .../SDKBridge/event/widget/widgetParams.js | 1 - .../brandpay-types/esm/SDKBridge/index.d.ts | 11 - .../brandpay-types/esm/SDKBridge/index.js | 11 - .../esm/SDKBridge/invokedMethod.d.ts | 9 - .../esm/SDKBridge/invokedMethod.js | 6 - .../brandpay-types/esm/SDKBridge/message.d.ts | 139 -- .../brandpay-types/esm/SDKBridge/message.js | 80 -- .../esm/SDKBridge/paymentMethodType.d.ts | 5 - .../esm/SDKBridge/paymentMethodType.js | 5 - .../esm/SDKBridge/paymentParams.d.ts | 36 - .../esm/SDKBridge/paymentParams.js | 1 - .../esm/SDKBridge/sdkConfigParams.d.ts | 3 - .../esm/SDKBridge/sdkConfigParams.js | 1 - .../esm/SDKBridge/widgetParams.d.ts | 30 - .../esm/SDKBridge/widgetParams.js | 1 - .../esm/SDKBridge/widgetPaymentParams.d.ts | 5 - .../esm/SDKBridge/widgetPaymentParams.js | 1 - .../esm/apiClient/cardPromotions/index.d.ts | 33 - .../esm/apiClient/cardPromotions/index.js | 1 - .../esm/apiClient/cashReceipt/index.d.ts | 16 - .../esm/apiClient/cashReceipt/index.js | 1 - .../esm/apiClient/identity/index.d.ts | 8 - .../esm/apiClient/identity/index.js | 1 - .../brandpay-types/esm/apiClient/index.d.ts | 8 - .../brandpay-types/esm/apiClient/index.js | 8 - .../esm/apiClient/methods/account.d.ts | 141 -- .../esm/apiClient/methods/account.js | 80 -- .../esm/apiClient/methods/card.d.ts | 10 - .../esm/apiClient/methods/card.js | 1 - .../esm/apiClient/methods/cardInfo.d.ts | 68 - .../esm/apiClient/methods/cardInfo.js | 45 - .../esm/apiClient/methods/index.d.ts | 4 - .../esm/apiClient/methods/index.js | 4 - .../esm/apiClient/methods/method.d.ts | 66 - .../esm/apiClient/methods/method.js | 1 - .../esm/apiClient/properties/index.d.ts | 4 - .../esm/apiClient/properties/index.js | 1 - .../brandpay-types/esm/index.d.ts | 4 - .../@tosspayments/brandpay-types/esm/index.js | 4 - .../brandpay-types/esm/methods/index.d.ts | 1 - .../brandpay-types/esm/methods/index.js | 1 - .../esm/methods/requestPayments.d.ts | 25 - .../esm/methods/requestPayments.js | 1 - .../brandpay-types/esm/models/Carrier.d.ts | 9 - .../brandpay-types/esm/models/Carrier.js | 8 - .../brandpay-types/esm/models/Terms.d.ts | 7 - .../brandpay-types/esm/models/Terms.js | 6 - .../brandpay-types/esm/models/index.d.ts | 2 - .../brandpay-types/esm/models/index.js | 2 - .../@tosspayments/brandpay-types/package.json | 40 - .../payment-widget-sdk/CHANGELOG.md | 296 ----- .../@tosspayments/payment-widget-sdk/LICENSE | 7 - .../payment-widget-sdk/README.md | 7 - .../payment-widget-sdk/dist/index.cjs.js | 72 - .../payment-widget-sdk/dist/index.esm.js | 66 - .../payment-widget-sdk/package.json | 44 - .../types/clearPaymentWidget.d.ts | 1 - .../payment-widget-sdk/types/constants.d.ts | 1 - .../payment-widget-sdk/types/index.d.ts | 4 - .../types/loadPaymentWidget.d.ts | 6 - .../dist/AgreementStatus.d.ts | 12 - .../dist/AgreementStatus.js | 3 - .../dist/AgreementStatus.js.map | 1 - .../dist/PaymentWidgetOptions.d.ts | 5 - .../dist/PaymentWidgetOptions.js | 3 - .../dist/PaymentWidgetOptions.js.map | 1 - .../dist/WidgetPaymentRequest.d.ts | 2 - .../dist/WidgetPaymentRequest.js | 3 - .../dist/WidgetPaymentRequest.js.map | 1 - .../payment-widget-types/dist/index.d.ts | 3 - .../payment-widget-types/dist/index.js | 20 - .../payment-widget-types/dist/index.js.map | 1 - .../esm/AgreementStatus.d.ts | 12 - .../esm/AgreementStatus.js | 2 - .../esm/AgreementStatus.js.map | 1 - .../esm/PaymentWidgetOptions.d.ts | 5 - .../esm/PaymentWidgetOptions.js | 2 - .../esm/PaymentWidgetOptions.js.map | 1 - .../esm/WidgetPaymentRequest.d.ts | 2 - .../esm/WidgetPaymentRequest.js | 2 - .../esm/WidgetPaymentRequest.js.map | 1 - .../payment-widget-types/esm/index.d.ts | 3 - .../payment-widget-types/esm/index.js | 4 - .../payment-widget-types/esm/index.js.map | 1 - .../payment-widget-types/package.json | 40 - .../payment-widget__types/package.json | 19 - .../payment-widget__types/types/index.d.ts | 148 --- .../@tosspayments/payment__types/package.json | 17 - .../payment__types/types/PaymentStatus.d.ts | 12 - .../types/billing/BillingAuthRequest.d.ts | 8 - .../types/billing/createBillingAuth.d.ts | 10 - .../types/billing/requestBillingAuth.d.ts | 2 - .../billing/requestPaymentGatewayBilling.d.ts | 8 - .../types/client/PaymentGateway.d.ts | 2 - .../payment__types/types/index.d.ts | 5 - .../payment__types/types/models/Bank.d.ts | 32 - .../types/models/CardCompany.d.ts | 35 - .../payment__types/types/models/EasyPay.d.ts | 14 - .../payment__types/types/models/Error.d.ts | 7 - .../types/payment/PaymentRequest.d.ts | 150 --- .../types/payment/cancelPayment.d.ts | 1 - .../types/payment/createPayment.d.ts | 34 - .../types/payment/getStatus.d.ts | 2 - .../payment__types/types/payment/logger.d.ts | 11 - .../payment/openPaymentWindow/index.d.ts | 3 - .../openDirectPaymentWindow.d.ts | 2 - .../openPaymentWindow/openPaycoWindow.d.ts | 2 - .../openPaymentWindow/openPaymentWindow.d.ts | 14 - .../requestPayment/decideParameters.d.ts | 5 - .../types/payment/requestPayment/index.d.ts | 1 - .../requestPayment/requestCardPayment.d.ts | 2 - .../requestPayment/requestOtherPayment.d.ts | 2 - .../requestPayment/requestPXPayment.d.ts | 5 - .../requestPayment/requestPayment.d.ts | 5 - .../requestPaymentGatewayPayment.d.ts | 6 - .../payment__types/types/tosspayments.d.ts | 48 - .../types/utils/PaymentsHttpClient.d.ts | 6 - .../types/utils/PostMessageListener.d.ts | 13 - .../utils/checkValidTosspaymentsScript.d.ts | 1 - .../payment__types/types/utils/constants.d.ts | 4 - .../types/utils/createQueryString.d.ts | 3 - .../payment__types/types/utils/device.d.ts | 4 - .../payment__types/types/utils/dom.d.ts | 1 - .../types/utils/envVariables.d.ts | 7 - .../types/utils/frontendStorage.d.ts | 1 - .../types/utils/globalContext.d.ts | 1 - .../payment__types/types/utils/log.d.ts | 16 - .../types/utils/postMessage.d.ts | 1 - .../payment__types/types/utils/types.d.ts | 1 - .../sdk-constants/dist/Bank.d.ts | 32 - .../@tosspayments/sdk-constants/dist/Bank.js | 33 - .../sdk-constants/dist/Bank.js.map | 1 - .../sdk-constants/dist/CardCompany.d.ts | 33 - .../sdk-constants/dist/CardCompany.js | 34 - .../sdk-constants/dist/CardCompany.js.map | 1 - .../sdk-constants/dist/EasyPayProvider.d.ts | 13 - .../sdk-constants/dist/EasyPayProvider.js | 14 - .../sdk-constants/dist/EasyPayProvider.js.map | 1 - .../sdk-constants/dist/MobileCarrier.d.ts | 9 - .../sdk-constants/dist/MobileCarrier.js | 12 - .../sdk-constants/dist/MobileCarrier.js.map | 1 - .../sdk-constants/dist/index.d.ts | 4 - .../@tosspayments/sdk-constants/dist/index.js | 17 - .../sdk-constants/dist/index.js.map | 1 - .../@tosspayments/sdk-constants/esm/Bank.d.ts | 32 - .../@tosspayments/sdk-constants/esm/Bank.js | 30 - .../sdk-constants/esm/Bank.js.map | 1 - .../sdk-constants/esm/CardCompany.d.ts | 33 - .../sdk-constants/esm/CardCompany.js | 31 - .../sdk-constants/esm/CardCompany.js.map | 1 - .../sdk-constants/esm/EasyPayProvider.d.ts | 13 - .../sdk-constants/esm/EasyPayProvider.js | 11 - .../sdk-constants/esm/EasyPayProvider.js.map | 1 - .../sdk-constants/esm/MobileCarrier.d.ts | 9 - .../sdk-constants/esm/MobileCarrier.js | 9 - .../sdk-constants/esm/MobileCarrier.js.map | 1 - .../sdk-constants/esm/index.d.ts | 4 - .../@tosspayments/sdk-constants/esm/index.js | 5 - .../sdk-constants/esm/index.js.map | 1 - .../@tosspayments/sdk-constants/package.json | 29 - .../@tosspayments/sdk-constants/src/Bank.ts | 35 - .../sdk-constants/src/CardCompany.ts | 36 - .../sdk-constants/src/EasyPayProvider.ts | 16 - .../sdk-constants/src/MobileCarrier.ts | 10 - .../@tosspayments/sdk-constants/src/index.ts | 4 - .../sdk-constants/tsconfig.esm.json | 7 - .../@tosspayments/sdk-constants/tsconfig.json | 10 - node_modules/type-fest/index.d.ts | 95 -- node_modules/type-fest/package.json | 52 - node_modules/type-fest/readme.md | 905 ------------- .../type-fest/source/async-return-type.d.ts | 25 - node_modules/type-fest/source/asyncify.d.ts | 33 - node_modules/type-fest/source/basic.d.ts | 45 - node_modules/type-fest/source/camel-case.d.ts | 73 - .../source/camel-cased-properties-deep.d.ts | 54 - .../source/camel-cased-properties.d.ts | 36 - .../type-fest/source/conditional-except.d.ts | 45 - .../type-fest/source/conditional-keys.d.ts | 47 - .../type-fest/source/conditional-pick.d.ts | 44 - .../type-fest/source/delimiter-case.d.ts | 93 -- .../delimiter-cased-properties-deep.d.ts | 60 - .../source/delimiter-cased-properties.d.ts | 37 - node_modules/type-fest/source/entries.d.ts | 62 - node_modules/type-fest/source/entry.d.ts | 65 - node_modules/type-fest/source/exact.d.ts | 73 - node_modules/type-fest/source/except.d.ts | 57 - .../type-fest/source/fixed-length-array.d.ts | 43 - node_modules/type-fest/source/get.d.ts | 184 --- .../type-fest/source/has-optional-keys.d.ts | 21 - .../type-fest/source/has-required-keys.d.ts | 59 - node_modules/type-fest/source/includes.d.ts | 22 - node_modules/type-fest/source/internal.d.ts | 59 - .../type-fest/source/invariant-of.d.ts | 76 -- .../type-fest/source/iterable-element.d.ts | 54 - node_modules/type-fest/source/join.d.ts | 30 - node_modules/type-fest/source/jsonify.d.ts | 90 -- node_modules/type-fest/source/kebab-case.d.ts | 38 - .../source/kebab-cased-properties-deep.d.ts | 47 - .../source/kebab-cased-properties.d.ts | 30 - .../type-fest/source/last-array-element.d.ts | 28 - .../source/literal-to-primitive.d.ts | 36 - .../type-fest/source/literal-union.d.ts | 35 - .../type-fest/source/merge-exclusive.d.ts | 41 - node_modules/type-fest/source/merge.d.ts | 27 - .../source/multidimensional-array.d.ts | 43 - .../multidimensional-readonly-array.d.ts | 47 - node_modules/type-fest/source/mutable.d.ts | 5 - node_modules/type-fest/source/numeric.d.ts | 170 --- .../type-fest/source/observable-like.d.ts | 62 - node_modules/type-fest/source/opaque.d.ts | 107 -- .../type-fest/source/optional-keys-of.d.ts | 38 - .../type-fest/source/package-json.d.ts | 663 ---------- .../type-fest/source/partial-deep.d.ts | 113 -- .../source/partial-on-undefined-deep.d.ts | 70 - .../type-fest/source/pascal-case.d.ts | 38 - .../source/pascal-cased-properties-deep.d.ts | 54 - .../source/pascal-cased-properties.d.ts | 34 - node_modules/type-fest/source/primitive.d.ts | 13 - node_modules/type-fest/source/promisable.d.ts | 25 - .../type-fest/source/promise-value.d.ts | 29 - .../type-fest/source/readonly-deep.d.ts | 85 -- .../type-fest/source/readonly-tuple.d.ts | 41 - .../source/remove-index-signature.d.ts | 104 -- node_modules/type-fest/source/replace.d.ts | 67 - .../type-fest/source/require-all-or-none.d.ts | 36 - .../source/require-at-least-one.d.ts | 35 - .../type-fest/source/require-exactly-one.d.ts | 34 - .../type-fest/source/required-keys-of.d.ts | 29 - node_modules/type-fest/source/schema.d.ts | 72 - .../source/screaming-snake-case.d.ts | 33 - .../type-fest/source/set-non-nullable.d.ts | 35 - .../type-fest/source/set-optional.d.ts | 35 - .../type-fest/source/set-required.d.ts | 35 - .../type-fest/source/set-return-type.d.ts | 31 - node_modules/type-fest/source/simplify.d.ts | 83 -- node_modules/type-fest/source/snake-case.d.ts | 38 - .../source/snake-cased-properties-deep.d.ts | 47 - .../source/snake-cased-properties.d.ts | 30 - node_modules/type-fest/source/split.d.ts | 29 - node_modules/type-fest/source/spread.d.ts | 85 -- .../type-fest/source/string-key-of.d.ts | 25 - .../type-fest/source/stringified.d.ts | 23 - node_modules/type-fest/source/trim.d.ts | 25 - .../type-fest/source/tsconfig-json.d.ts | 1172 ----------------- .../type-fest/source/typed-array.d.ts | 17 - .../source/union-to-intersection.d.ts | 60 - node_modules/type-fest/source/value-of.d.ts | 42 - node_modules/type-fest/source/writable.d.ts | 40 - package-lock.json | 83 -- package.json | 5 - 438 files changed, 11522 deletions(-) delete mode 100644 node_modules/.package-lock.json delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/baseMessageData.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/baseMessageData.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/commonParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/commonParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/RegisterRoutePath.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/RegisterRoutePath.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/cancel.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/cancel.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/commonParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/commonParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/complete.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/complete.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/customerToken.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/customerToken.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/disposeBridge.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/disposeBridge.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/invokedMethod.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/invokedMethod.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/mount.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/mount.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethodType.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethodType.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethods.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethods.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentResult.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentResult.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/registerResult.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/registerResult.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/routePath.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/routePath.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/safeArea.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/safeArea.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/sdkConfig.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/sdkConfig.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/serverUrl.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/serverUrl.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/termScope.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/termScope.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/viewport.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/viewport.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/mount.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/mount.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openAddPaymentMethod.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openAddPaymentMethod.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openCashReceiptSetting.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openCashReceiptSetting.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openRegister.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openRegister.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/resizeWidget.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/resizeWidget.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/syncState.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/syncState.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateAmount.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateAmount.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateCashReceipt.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateCashReceipt.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updatePaymentMethod.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updatePaymentMethod.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateWidgetParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateWidgetParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/widgetParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/widgetParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/invokedMethod.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/invokedMethod.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/message.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/message.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentMethodType.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentMethodType.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/sdkConfigParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/sdkConfigParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetPaymentParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetPaymentParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/cardPromotions/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/cardPromotions/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/cashReceipt/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/cashReceipt/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/identity/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/identity/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/account.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/account.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/card.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/card.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/cardInfo.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/cardInfo.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/method.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/method.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/properties/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/apiClient/properties/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/methods/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/methods/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/methods/requestPayments.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/methods/requestPayments.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/models/Carrier.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/models/Carrier.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/models/Terms.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/models/Terms.js delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/models/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/dist/models/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/baseMessageData.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/baseMessageData.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/commonParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/commonParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/RegisterRoutePath.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/RegisterRoutePath.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/cancel.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/cancel.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/commonParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/commonParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/complete.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/complete.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/customerToken.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/customerToken.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/disposeBridge.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/disposeBridge.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/invokedMethod.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/invokedMethod.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/mount.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/mount.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethodType.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethodType.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethods.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethods.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentResult.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentResult.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/registerResult.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/registerResult.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/routePath.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/routePath.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/safeArea.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/safeArea.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/sdkConfig.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/sdkConfig.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/serverUrl.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/serverUrl.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/termScope.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/termScope.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/viewport.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/viewport.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/mount.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/mount.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openAddPaymentMethod.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openAddPaymentMethod.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openCashReceiptSetting.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openCashReceiptSetting.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openRegister.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openRegister.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/resizeWidget.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/resizeWidget.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/syncState.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/syncState.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateAmount.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateAmount.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateCashReceipt.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateCashReceipt.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updatePaymentMethod.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updatePaymentMethod.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateWidgetParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateWidgetParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/widgetParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/widgetParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/invokedMethod.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/invokedMethod.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/message.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/message.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentMethodType.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentMethodType.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/sdkConfigParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/sdkConfigParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetPaymentParams.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetPaymentParams.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/cardPromotions/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/cardPromotions/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/cashReceipt/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/cashReceipt/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/identity/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/identity/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/account.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/account.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/card.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/card.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/cardInfo.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/cardInfo.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/method.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/method.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/properties/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/apiClient/properties/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/methods/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/methods/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/methods/requestPayments.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/methods/requestPayments.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/models/Carrier.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/models/Carrier.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/models/Terms.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/models/Terms.js delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/models/index.d.ts delete mode 100644 node_modules/@tosspayments/brandpay-types/esm/models/index.js delete mode 100644 node_modules/@tosspayments/brandpay-types/package.json delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/CHANGELOG.md delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/LICENSE delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/README.md delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/dist/index.cjs.js delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/dist/index.esm.js delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/package.json delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/types/clearPaymentWidget.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/types/constants.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/types/index.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-sdk/types/loadPaymentWidget.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.js delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.js.map delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.js delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.js.map delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.js delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.js.map delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/index.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/index.js delete mode 100644 node_modules/@tosspayments/payment-widget-types/dist/index.js.map delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.js delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.js.map delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.js delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.js.map delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.js delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.js.map delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/index.d.ts delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/index.js delete mode 100644 node_modules/@tosspayments/payment-widget-types/esm/index.js.map delete mode 100644 node_modules/@tosspayments/payment-widget-types/package.json delete mode 100644 node_modules/@tosspayments/payment-widget__types/package.json delete mode 100644 node_modules/@tosspayments/payment-widget__types/types/index.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/package.json delete mode 100644 node_modules/@tosspayments/payment__types/types/PaymentStatus.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/billing/BillingAuthRequest.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/billing/createBillingAuth.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/billing/requestBillingAuth.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/billing/requestPaymentGatewayBilling.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/client/PaymentGateway.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/index.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/models/Bank.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/models/CardCompany.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/models/EasyPay.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/models/Error.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/PaymentRequest.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/cancelPayment.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/createPayment.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/getStatus.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/logger.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/index.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openDirectPaymentWindow.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openPaycoWindow.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openPaymentWindow.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/requestPayment/decideParameters.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/requestPayment/index.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestCardPayment.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestOtherPayment.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPXPayment.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPayment.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPaymentGatewayPayment.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/tosspayments.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/PaymentsHttpClient.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/PostMessageListener.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/checkValidTosspaymentsScript.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/constants.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/createQueryString.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/device.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/dom.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/envVariables.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/frontendStorage.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/globalContext.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/log.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/postMessage.d.ts delete mode 100644 node_modules/@tosspayments/payment__types/types/utils/types.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/Bank.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/Bank.js delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/Bank.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/CardCompany.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/CardCompany.js delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/CardCompany.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.js delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.js delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/index.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/index.js delete mode 100644 node_modules/@tosspayments/sdk-constants/dist/index.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/Bank.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/Bank.js delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/Bank.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/CardCompany.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/CardCompany.js delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/CardCompany.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.js delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.js delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/index.d.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/index.js delete mode 100644 node_modules/@tosspayments/sdk-constants/esm/index.js.map delete mode 100644 node_modules/@tosspayments/sdk-constants/package.json delete mode 100644 node_modules/@tosspayments/sdk-constants/src/Bank.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/src/CardCompany.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/src/EasyPayProvider.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/src/MobileCarrier.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/src/index.ts delete mode 100644 node_modules/@tosspayments/sdk-constants/tsconfig.esm.json delete mode 100644 node_modules/@tosspayments/sdk-constants/tsconfig.json delete mode 100644 node_modules/type-fest/index.d.ts delete mode 100644 node_modules/type-fest/package.json delete mode 100644 node_modules/type-fest/readme.md delete mode 100644 node_modules/type-fest/source/async-return-type.d.ts delete mode 100644 node_modules/type-fest/source/asyncify.d.ts delete mode 100644 node_modules/type-fest/source/basic.d.ts delete mode 100644 node_modules/type-fest/source/camel-case.d.ts delete mode 100644 node_modules/type-fest/source/camel-cased-properties-deep.d.ts delete mode 100644 node_modules/type-fest/source/camel-cased-properties.d.ts delete mode 100644 node_modules/type-fest/source/conditional-except.d.ts delete mode 100644 node_modules/type-fest/source/conditional-keys.d.ts delete mode 100644 node_modules/type-fest/source/conditional-pick.d.ts delete mode 100644 node_modules/type-fest/source/delimiter-case.d.ts delete mode 100644 node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts delete mode 100644 node_modules/type-fest/source/delimiter-cased-properties.d.ts delete mode 100644 node_modules/type-fest/source/entries.d.ts delete mode 100644 node_modules/type-fest/source/entry.d.ts delete mode 100644 node_modules/type-fest/source/exact.d.ts delete mode 100644 node_modules/type-fest/source/except.d.ts delete mode 100644 node_modules/type-fest/source/fixed-length-array.d.ts delete mode 100644 node_modules/type-fest/source/get.d.ts delete mode 100644 node_modules/type-fest/source/has-optional-keys.d.ts delete mode 100644 node_modules/type-fest/source/has-required-keys.d.ts delete mode 100644 node_modules/type-fest/source/includes.d.ts delete mode 100644 node_modules/type-fest/source/internal.d.ts delete mode 100644 node_modules/type-fest/source/invariant-of.d.ts delete mode 100644 node_modules/type-fest/source/iterable-element.d.ts delete mode 100644 node_modules/type-fest/source/join.d.ts delete mode 100644 node_modules/type-fest/source/jsonify.d.ts delete mode 100644 node_modules/type-fest/source/kebab-case.d.ts delete mode 100644 node_modules/type-fest/source/kebab-cased-properties-deep.d.ts delete mode 100644 node_modules/type-fest/source/kebab-cased-properties.d.ts delete mode 100644 node_modules/type-fest/source/last-array-element.d.ts delete mode 100644 node_modules/type-fest/source/literal-to-primitive.d.ts delete mode 100644 node_modules/type-fest/source/literal-union.d.ts delete mode 100644 node_modules/type-fest/source/merge-exclusive.d.ts delete mode 100644 node_modules/type-fest/source/merge.d.ts delete mode 100644 node_modules/type-fest/source/multidimensional-array.d.ts delete mode 100644 node_modules/type-fest/source/multidimensional-readonly-array.d.ts delete mode 100644 node_modules/type-fest/source/mutable.d.ts delete mode 100644 node_modules/type-fest/source/numeric.d.ts delete mode 100644 node_modules/type-fest/source/observable-like.d.ts delete mode 100644 node_modules/type-fest/source/opaque.d.ts delete mode 100644 node_modules/type-fest/source/optional-keys-of.d.ts delete mode 100644 node_modules/type-fest/source/package-json.d.ts delete mode 100644 node_modules/type-fest/source/partial-deep.d.ts delete mode 100644 node_modules/type-fest/source/partial-on-undefined-deep.d.ts delete mode 100644 node_modules/type-fest/source/pascal-case.d.ts delete mode 100644 node_modules/type-fest/source/pascal-cased-properties-deep.d.ts delete mode 100644 node_modules/type-fest/source/pascal-cased-properties.d.ts delete mode 100644 node_modules/type-fest/source/primitive.d.ts delete mode 100644 node_modules/type-fest/source/promisable.d.ts delete mode 100644 node_modules/type-fest/source/promise-value.d.ts delete mode 100644 node_modules/type-fest/source/readonly-deep.d.ts delete mode 100644 node_modules/type-fest/source/readonly-tuple.d.ts delete mode 100644 node_modules/type-fest/source/remove-index-signature.d.ts delete mode 100644 node_modules/type-fest/source/replace.d.ts delete mode 100644 node_modules/type-fest/source/require-all-or-none.d.ts delete mode 100644 node_modules/type-fest/source/require-at-least-one.d.ts delete mode 100644 node_modules/type-fest/source/require-exactly-one.d.ts delete mode 100644 node_modules/type-fest/source/required-keys-of.d.ts delete mode 100644 node_modules/type-fest/source/schema.d.ts delete mode 100644 node_modules/type-fest/source/screaming-snake-case.d.ts delete mode 100644 node_modules/type-fest/source/set-non-nullable.d.ts delete mode 100644 node_modules/type-fest/source/set-optional.d.ts delete mode 100644 node_modules/type-fest/source/set-required.d.ts delete mode 100644 node_modules/type-fest/source/set-return-type.d.ts delete mode 100644 node_modules/type-fest/source/simplify.d.ts delete mode 100644 node_modules/type-fest/source/snake-case.d.ts delete mode 100644 node_modules/type-fest/source/snake-cased-properties-deep.d.ts delete mode 100644 node_modules/type-fest/source/snake-cased-properties.d.ts delete mode 100644 node_modules/type-fest/source/split.d.ts delete mode 100644 node_modules/type-fest/source/spread.d.ts delete mode 100644 node_modules/type-fest/source/string-key-of.d.ts delete mode 100644 node_modules/type-fest/source/stringified.d.ts delete mode 100644 node_modules/type-fest/source/trim.d.ts delete mode 100644 node_modules/type-fest/source/tsconfig-json.d.ts delete mode 100644 node_modules/type-fest/source/typed-array.d.ts delete mode 100644 node_modules/type-fest/source/union-to-intersection.d.ts delete mode 100644 node_modules/type-fest/source/value-of.d.ts delete mode 100644 node_modules/type-fest/source/writable.d.ts delete mode 100644 package-lock.json delete mode 100644 package.json diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json deleted file mode 100644 index f6c465c5..00000000 --- a/node_modules/.package-lock.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "name": "bookstore-api", - "lockfileVersion": 3, - "requires": true, - "packages": { - "node_modules/@tosspayments/brandpay-types": { - "version": "0.2.6", - "resolved": "https://registry.npmjs.org/@tosspayments/brandpay-types/-/brandpay-types-0.2.6.tgz", - "integrity": "sha512-FY8aOm/2rqtXjYux9ZdNTL6GC5+VNIw8eOQ7TP01dS2uGWSzAtR6uuw9HVsgkmJtSyJgmo97tjmbio5oyeyFlg==", - "peerDependencies": { - "typescript": "^4.1.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@tosspayments/payment__types": { - "version": "1.67.0", - "resolved": "https://registry.npmjs.org/@tosspayments/payment__types/-/payment__types-1.67.0.tgz", - "integrity": "sha512-e2W5AolyED1AA3uUaq27a8YQhrL7ZPNffIOF5qN2uP6RXIk6w1dtAFpY5tXBgLcyntYFMSKPCYevutUy8Ggc0g==", - "dependencies": { - "@tosspayments/sdk-constants": "^0.2.2" - } - }, - "node_modules/@tosspayments/payment-widget__types": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/@tosspayments/payment-widget__types/-/payment-widget__types-1.0.1.tgz", - "integrity": "sha512-p2l6ni4ZAH0Jh7Yo4hwwDAECN0rz6Io9R19oBJ5ZkL0H1upMhGzT6xrdymIYQwcUSzIcwHwI2u03eeAX19hmug==", - "dependencies": { - "@tosspayments/brandpay-types": "^0.2.6", - "@tosspayments/payment__types": "^1.66.3", - "@tosspayments/payment-widget-types": "^0.0.5" - } - }, - "node_modules/@tosspayments/payment-widget-sdk": { - "version": "0.10.2", - "resolved": "https://registry.npmjs.org/@tosspayments/payment-widget-sdk/-/payment-widget-sdk-0.10.2.tgz", - "integrity": "sha512-0dpkEbnDXmvIwpHYm+YODpMhh/gAtvJRYOU5uikFQpM/XCkyZDXAP9C6pc+GhiT6NsWIKKFILwaSgAeL/UT3ow==", - "dependencies": { - "@tosspayments/payment-widget__types": "1.0.1" - } - }, - "node_modules/@tosspayments/payment-widget-types": { - "version": "0.0.5", - "resolved": "https://registry.npmjs.org/@tosspayments/payment-widget-types/-/payment-widget-types-0.0.5.tgz", - "integrity": "sha512-Daaui9u7aRPzJhw4omJIUAbYBSmNAFNjWWkuUnX9uHxzE3gtjcJHIpGrjlzmCFm+j3ZH4rgyrgv4pkazVYH3OQ==", - "peerDependencies": { - "typescript": "^4.7.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/@tosspayments/sdk-constants": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@tosspayments/sdk-constants/-/sdk-constants-0.2.2.tgz", - "integrity": "sha512-qTIcD9JnVtN65/yiW5sPAlvK5fpQtDluv4IEyslubncbQLQKE+ePSnGZU1fLNPxcchv6QTnwmgj9Ndm6EN/Ymg==", - "dependencies": { - "type-fest": "^2.11.2" - } - }, - "node_modules/type-fest": { - "version": "2.19.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-2.19.0.tgz", - "integrity": "sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==", - "engines": { - "node": ">=12.20" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - } - } -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/baseMessageData.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/baseMessageData.d.ts deleted file mode 100644 index 2fe08ef1..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/baseMessageData.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface BaseMessageData { - eventId: string; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/baseMessageData.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/baseMessageData.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/baseMessageData.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/commonParams.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/commonParams.d.ts deleted file mode 100644 index 2575260e..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/commonParams.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @description - * 가맹점에서 브랜드페이를 호출할 때 넘겨주는 파라미터 및 가맹점/유저 식별을 위한 식별자 정보를 담고 있는 파라미터입니다 - */ -export interface CommonParams { - sessionId: string; - clientId: string; - clientKey: string; - customerKey: string; - origin: string; - options?: BrandPayOptions; -} -/** - * @description - * 가맹점이 브랜드페이를 호출할 때 optional하게 넘겨주는 파라미터입니다. - * @see https://www.notion.so/tossteam/UI-Javascript-5d71203e00f240dda7d7aa0b169e7b96 - */ -export interface BrandPayOptions { - redirectUrl?: string; - ocrLicense?: string; - /** @deprecated */ - showNavigationBar?: boolean; - /** @deprecated */ - theme?: Theme; - /** @deprecated */ - labels?: Labels; - ui?: UiOptions; - windowTarget?: 'iframe' | 'popup'; - version?: 'brandpay' | 'oliveyoung' | 'cafe24'; - /** - * global trace id - * @internal - */ - gtid?: string; - /** - * 어느 서비스에서 SDK 를 로드했는지 나타냄 - * @internal - */ - service?: 'sdk' | 'widget' | 'payment-widget' | 'unknown'; -} -export declare type Theme = 'musinsa' | 'simsale' | 'golfzon' | 'giftistar'; -interface UiOptions { - /** @deprecated */ - showNavigationBar?: boolean; - highlightColor?: string; - buttonStyle?: 'default' | 'full'; - labels?: Labels; - navigationBar?: NavigationBar; - paymentMethodBottomSheet?: PaymentMethodBottomSheet; -} -interface Labels { - oneTouchPay?: string; -} -interface NavigationBar { - visible: boolean; - paddingTop: number; -} -interface PaymentMethodBottomSheet { - addMethod?: AddMethod; -} -interface AddMethod { - visible: boolean; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/commonParams.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/commonParams.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/commonParams.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/RegisterRoutePath.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/RegisterRoutePath.d.ts deleted file mode 100644 index fcbd018e..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/RegisterRoutePath.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "REGISTER_ROUTE_PATH"; -declare type Result = { - path: string; - executed: boolean; -}; -export interface RegisterRoutePathMessageData extends BaseMessageData { - type: typeof MessageName; - result: Result; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/RegisterRoutePath.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/RegisterRoutePath.js deleted file mode 100644 index 4096270b..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/RegisterRoutePath.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'REGISTER_ROUTE_PATH'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/cancel.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/cancel.d.ts deleted file mode 100644 index 4d43e0f2..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/cancel.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "CANCEL"; -interface CancelParams { - code: string; - message: string; -} -export interface CancelMessageData extends BaseMessageData { - type: typeof MessageName; - params?: CancelParams; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/cancel.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/cancel.js deleted file mode 100644 index ca2818cd..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/cancel.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'CANCEL'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/commonParams.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/commonParams.d.ts deleted file mode 100644 index 577f9096..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/commonParams.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import type { CommonParams } from '../commonParams'; -export declare const MessageName: "COMMON_PARAMS"; -export interface CommonParamsMessageData extends BaseMessageData { - type: typeof MessageName; - result: CommonParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/commonParams.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/commonParams.js deleted file mode 100644 index 91ecda9b..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/commonParams.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'COMMON_PARAMS'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/complete.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/complete.d.ts deleted file mode 100644 index 23356cee..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/complete.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "COMPLETE"; -export interface CompleteMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/complete.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/complete.js deleted file mode 100644 index 91860b1e..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/complete.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'COMPLETE'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/customerToken.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/customerToken.d.ts deleted file mode 100644 index 97188b14..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/customerToken.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "CUSTOMER_TOKEN"; -export interface CustomerTokenMessageData extends BaseMessageData { - type: typeof MessageName; - result: Promise; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/customerToken.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/customerToken.js deleted file mode 100644 index a7757317..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/customerToken.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'CUSTOMER_TOKEN'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/disposeBridge.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/disposeBridge.d.ts deleted file mode 100644 index 28d95491..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/disposeBridge.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "DISPOSE_BRIDGE"; -export interface DisposeBridgeMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/disposeBridge.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/disposeBridge.js deleted file mode 100644 index 615cb0be..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/disposeBridge.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'DISPOSE_BRIDGE'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/invokedMethod.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/invokedMethod.d.ts deleted file mode 100644 index 23b49070..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/invokedMethod.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { InvokedMethod } from '../invokedMethod'; -export declare const MessageName: "INVOKED_METHOD"; -export interface InvokedMethodMessageData extends BaseMessageData { - type: typeof MessageName; - result: InvokedMethod; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/invokedMethod.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/invokedMethod.js deleted file mode 100644 index 19254188..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/invokedMethod.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'INVOKED_METHOD'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.d.ts deleted file mode 100644 index 41acbef6..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "KT_ALPHA_SHOP_OCR_SCAN"; -export interface KTAlphaShopOCRScanMessageData extends BaseMessageData { - type: typeof MessageName; - result: Promise; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.js deleted file mode 100644 index 301243c1..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'KT_ALPHA_SHOP_OCR_SCAN'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/mount.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/mount.d.ts deleted file mode 100644 index 303af477..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/mount.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "MOUNT"; -export interface MountMessageData extends BaseMessageData { - type: typeof MessageName; - params: { - mount: boolean; - }; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/mount.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/mount.js deleted file mode 100644 index 3cc9c4f6..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/mount.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'MOUNT'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.d.ts deleted file mode 100644 index db104bdc..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "GET_SHIPPING_ADDRESS_WIDGET_ENABLED"; -export interface GetShippingAddressWidgetEnabledMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.js deleted file mode 100644 index ea8be1f8..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'GET_SHIPPING_ADDRESS_WIDGET_ENABLED'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.d.ts deleted file mode 100644 index f5f82eee..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "SYNC_SHIPPING_ADDRESS_TO_BRANDPAY"; -export interface SyncShippingAddressToBrandpayMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.js deleted file mode 100644 index 16c52a66..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'SYNC_SHIPPING_ADDRESS_TO_BRANDPAY'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethodType.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethodType.d.ts deleted file mode 100644 index a95d8da9..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethodType.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { PaymentMethodType } from '../paymentMethodType'; -export declare const MessageName: "METHOD_TYPE"; -export interface PaymentMethodTypeMessageData extends BaseMessageData { - type: typeof MessageName; - result: PaymentMethodType; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethodType.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethodType.js deleted file mode 100644 index f3fcc088..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethodType.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'METHOD_TYPE'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethods.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethods.d.ts deleted file mode 100644 index d7da9f1c..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethods.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Methods } from '../../apiClient'; -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "PAYMENT_METHODS"; -export interface PaymentMethodsMessageData extends BaseMessageData { - type: typeof MessageName; - params: Methods; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethods.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethods.js deleted file mode 100644 index bf8ea334..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentMethods.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'PAYMENT_METHODS'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentParams.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentParams.d.ts deleted file mode 100644 index 94a8dac1..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentParams.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { PaymentParams } from '../paymentParams'; -export declare const MessageName: "PAYMENT_PARAMS"; -export interface PaymentParamsMessageData extends BaseMessageData { - type: typeof MessageName; - result: PaymentParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentParams.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentParams.js deleted file mode 100644 index 489e671d..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentParams.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'PAYMENT_PARAMS'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentResult.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentResult.d.ts deleted file mode 100644 index 66c89718..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentResult.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { PaymentParams } from '../paymentParams'; -export declare const MessageName: "PAYMENT_RESULT"; -interface PaymentFailureParams extends Pick { - type: 'FAIL'; - code: any; - message: any; -} -interface PaymentSuccessParams extends Pick { - type: 'SUCCESS'; - paymentKey: string; -} -export interface PaymentResultMessageData extends BaseMessageData { - type: typeof MessageName; - params: PaymentFailureParams | PaymentSuccessParams; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentResult.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentResult.js deleted file mode 100644 index c41978fe..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/paymentResult.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'PAYMENT_RESULT'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/registerResult.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/registerResult.d.ts deleted file mode 100644 index 5817203e..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/registerResult.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "REGISTER_RESULT"; -interface RegisterFailureParams { - type: 'FAIL'; -} -interface RegisterSuccessParams { - type: 'SUCCESS'; - customerToken: string; -} -export interface RegisterResultMessageData extends BaseMessageData { - type: typeof MessageName; - params: RegisterFailureParams | RegisterSuccessParams; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/registerResult.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/registerResult.js deleted file mode 100644 index 5ee33dea..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/registerResult.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'REGISTER_RESULT'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/routePath.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/routePath.d.ts deleted file mode 100644 index 91cdf799..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/routePath.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "ROUTE_PATH"; -export interface RoutePathMessageData extends BaseMessageData { - type: typeof MessageName; - result?: string; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/routePath.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/routePath.js deleted file mode 100644 index dbcad753..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/routePath.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'ROUTE_PATH'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/safeArea.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/safeArea.d.ts deleted file mode 100644 index 3b318646..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/safeArea.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "SAFE_AREA"; -export interface SafeAreaMessageData extends BaseMessageData { - type: typeof MessageName; - result: Result; -} -interface Result { - bottom: number; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/safeArea.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/safeArea.js deleted file mode 100644 index 90531623..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/safeArea.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'SAFE_AREA'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/sdkConfig.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/sdkConfig.d.ts deleted file mode 100644 index c74b3235..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/sdkConfig.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { SdkConfigParams } from '../sdkConfigParams'; -export declare const MessageName: "SDK_CONFIG"; -export interface SdkConfigMessageData extends BaseMessageData { - type: typeof MessageName; - result: SdkConfigParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/sdkConfig.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/sdkConfig.js deleted file mode 100644 index a3b37152..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/sdkConfig.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'SDK_CONFIG'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/serverUrl.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/serverUrl.d.ts deleted file mode 100644 index 96f32397..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/serverUrl.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "SERVER_URL"; -export interface ServerUrlMessageData extends BaseMessageData { - type: typeof MessageName; - result: string; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/serverUrl.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/serverUrl.js deleted file mode 100644 index f3411528..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/serverUrl.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'SERVER_URL'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/termScope.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/termScope.d.ts deleted file mode 100644 index e512042d..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/termScope.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { TermScope } from '../../models'; -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "TERM_SCOPE"; -export interface TermScopeMessageData extends BaseMessageData { - type: typeof MessageName; - result: Array; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/termScope.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/termScope.js deleted file mode 100644 index f681e693..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/termScope.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'TERM_SCOPE'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/viewport.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/viewport.d.ts deleted file mode 100644 index e5ddc8bd..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/viewport.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "VIEWPORT"; -export interface ViewportMessageData extends BaseMessageData { - type: typeof MessageName; - params?: never; - result: Result; -} -interface Result { - height: number; - width: number; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/viewport.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/viewport.js deleted file mode 100644 index d9a8c61e..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/viewport.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'VIEWPORT'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/mount.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/mount.d.ts deleted file mode 100644 index 3d8b0edd..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/mount.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "MOUNT"; -export interface WidgetMountMessageData extends BaseMessageData { - type: typeof MessageName; - params: { - mount: boolean; - }; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/mount.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/mount.js deleted file mode 100644 index 3cc9c4f6..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/mount.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'MOUNT'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openAddPaymentMethod.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openAddPaymentMethod.d.ts deleted file mode 100644 index 0c69f828..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openAddPaymentMethod.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -import { PaymentMethodType } from '../../paymentMethodType'; -export declare const MessageName: "OPEN_ADD_PAYMENT_METHOD"; -export interface OpenAddPaymentMethodMessageData extends BaseMessageData { - type: typeof MessageName; - params: PaymentMethodType; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openAddPaymentMethod.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openAddPaymentMethod.js deleted file mode 100644 index 310b45d9..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openAddPaymentMethod.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'OPEN_ADD_PAYMENT_METHOD'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openCashReceiptSetting.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openCashReceiptSetting.d.ts deleted file mode 100644 index 4d41881a..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openCashReceiptSetting.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "OPEN_CASH_RECEIPT_SETTING"; -export interface OpenCashReceiptSettingMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openCashReceiptSetting.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openCashReceiptSetting.js deleted file mode 100644 index 07e570c2..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openCashReceiptSetting.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'OPEN_CASH_RECEIPT_SETTING'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openRegister.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openRegister.d.ts deleted file mode 100644 index 1c943938..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openRegister.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "OPEN_REGISTER"; -export interface OpenRegisterMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openRegister.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openRegister.js deleted file mode 100644 index f2628e67..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/openRegister.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'OPEN_REGISTER'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/resizeWidget.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/resizeWidget.d.ts deleted file mode 100644 index e2c13fff..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/resizeWidget.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "RESIZE_WIDGET"; -export interface ResizeWidgetMessageData extends BaseMessageData { - type: typeof MessageName; - params: number; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/resizeWidget.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/resizeWidget.js deleted file mode 100644 index 24570896..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/resizeWidget.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'RESIZE_WIDGET'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/syncState.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/syncState.d.ts deleted file mode 100644 index 600546be..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/syncState.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -import { WidgetPaymentParams } from '../../widgetPaymentParams'; -export declare const MessageName: "SYNC_STATE"; -export interface SyncStateMessageData extends BaseMessageData { - type: typeof MessageName; - params: WidgetPaymentParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/syncState.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/syncState.js deleted file mode 100644 index 797b4c9a..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/syncState.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'SYNC_STATE'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateAmount.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateAmount.d.ts deleted file mode 100644 index ea69dde3..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateAmount.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "UPDATE_AMOUNT"; -export interface UpdateAmountMessageData extends BaseMessageData { - type: typeof MessageName; - params: number; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateAmount.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateAmount.js deleted file mode 100644 index 0b3cd2cf..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateAmount.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'UPDATE_AMOUNT'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateCashReceipt.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateCashReceipt.d.ts deleted file mode 100644 index 36d296f2..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateCashReceipt.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -import { CashReceipt } from '../../paymentParams'; -export declare const MessageName: "UPDATE_CASH_RECEIPT"; -export interface UpdateCashReceiptMessageData extends BaseMessageData { - type: typeof MessageName; - params: CashReceipt; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateCashReceipt.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateCashReceipt.js deleted file mode 100644 index df828981..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateCashReceipt.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'UPDATE_CASH_RECEIPT'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updatePaymentMethod.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updatePaymentMethod.d.ts deleted file mode 100644 index c40fc13f..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updatePaymentMethod.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Methods } from '../../../apiClient'; -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "UPDATE_PAYMENT_METHOD"; -export interface UpdatePaymentMethodMessageData extends BaseMessageData { - type: typeof MessageName; - params: Methods; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updatePaymentMethod.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updatePaymentMethod.js deleted file mode 100644 index 6922d029..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updatePaymentMethod.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'UPDATE_PAYMENT_METHOD'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateWidgetParams.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateWidgetParams.d.ts deleted file mode 100644 index 6909cc2f..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateWidgetParams.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -import { WidgetParams } from '../../widgetParams'; -export declare const MessageName: "UPDATE_WIDGET_PARAMS"; -export interface UpdateWidgetParamsMessageData extends BaseMessageData { - type: typeof MessageName; - params: WidgetParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateWidgetParams.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateWidgetParams.js deleted file mode 100644 index 12401297..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/updateWidgetParams.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'UPDATE_WIDGET_PARAMS'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/widgetParams.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/widgetParams.d.ts deleted file mode 100644 index d1c74d53..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/widgetParams.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { BaseMessageData } from '../../baseMessageData'; -import type { WidgetParams } from '../../widgetParams'; -export declare const MessageName: "WIDGET_PARAMS"; -export interface WidgetParamsMethodMessageData extends BaseMessageData { - type: typeof MessageName; - result: WidgetParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/widgetParams.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/widgetParams.js deleted file mode 100644 index f6979886..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/event/widget/widgetParams.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageName = void 0; -exports.MessageName = 'WIDGET_PARAMS'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/index.d.ts deleted file mode 100644 index a3d00d34..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @description SDK와 Brandpay 서비스가 서로 bridge로 통신할 때 사용하는 공통 타입입니다. - */ -export * from './commonParams'; -export * from './invokedMethod'; -export * from './message'; -export * from './paymentMethodType'; -export * from './paymentParams'; -export * from './sdkConfigParams'; -export * from './widgetParams'; -export * from './widgetPaymentParams'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/index.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/index.js deleted file mode 100644 index 6e28e1c7..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/index.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -/** - * @description SDK와 Brandpay 서비스가 서로 bridge로 통신할 때 사용하는 공통 타입입니다. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./commonParams"), exports); -__exportStar(require("./invokedMethod"), exports); -__exportStar(require("./message"), exports); -__exportStar(require("./paymentMethodType"), exports); -__exportStar(require("./paymentParams"), exports); -__exportStar(require("./sdkConfigParams"), exports); -__exportStar(require("./widgetParams"), exports); -__exportStar(require("./widgetPaymentParams"), exports); diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/invokedMethod.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/invokedMethod.d.ts deleted file mode 100644 index 2aa2d2c8..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/invokedMethod.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @description - * 가맹점에서 어떤 메소드로 브랜드페이 창을 호출했는지를 알려주기 위한 용도로 invokedMethod 타입을 정의합니다. - * BrandPay 객체가 제공해주는 메소드 이름과 동일합니다. - */ -export declare type InvokedMethod = 'AUTHENTICATE' | 'ADD_PAYMENT_METHOD' | 'REQUEST_PAYMENT' | 'REQUEST_PAYMENT_AUTH' | 'REQUEST_PASSWORD_AUTH' | 'OPEN_SETTINGS' | 'SETUP_PASSWORD' | 'SETUP_ONE_TOUCH_PAY' | 'TOGGLE_ONE_TOUCH_PAY' | 'IS_ONE_TOUCH_PAY_ENABLED' | 'SETUP_BIOMETRIC_AUTH' | 'TOGGLE_BIOMETRIC_AUTH' | 'SETUP_CASH_RECEIPT' | 'GET_PAYMENT_METHODS' | 'IS_BIOMETRIC_AUTH_ENABLED' | 'REQUEST_AGREEMENT' | 'RENDER_PAYMENT_METHODS' | 'RENDER_PAYMENT_METHODS_V2' | 'RENDER_PAYMENT_METHODS_V3' | 'WIDGET_REGISTER' | PluginMethods; -declare type PluginMethods = HyundaiDepartmentStorePluginMethod; -declare type HyundaiDepartmentStorePluginMethod = 'ADD_HYUNDAI_DEPARTMENT_STORE_CARD' | 'REMOVE_HYUNDAI_DEPARTMENT_STORE_CARD' | 'REQUEST_AUTH'; -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/invokedMethod.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/invokedMethod.js deleted file mode 100644 index 842cb2e2..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/invokedMethod.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -/** - * @description - * 가맹점에서 어떤 메소드로 브랜드페이 창을 호출했는지를 알려주기 위한 용도로 invokedMethod 타입을 정의합니다. - * BrandPay 객체가 제공해주는 메소드 이름과 동일합니다. - */ -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/message.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/message.d.ts deleted file mode 100644 index acd9a28f..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/message.d.ts +++ /dev/null @@ -1,139 +0,0 @@ -interface BaseEvent { - type: EventType; - params?: Params; - result?: Result; -} -declare type EventMapType = Record; -import { CancelMessageData } from './event/cancel'; -import { CommonParamsMessageData } from './event/commonParams'; -import { CompleteMessageData } from './event/complete'; -import { CustomerTokenMessageData } from './event/customerToken'; -import { DisposeBridgeMessageData } from './event/disposeBridge'; -import { InvokedMethodMessageData } from './event/invokedMethod'; -import { KTAlphaShopOCRScanMessageData } from './event/kt-alpha-shop/ktAlphaShopOCRScan'; -import { MountMessageData } from './event/mount'; -import { GetShippingAddressWidgetEnabledMessageData } from './event/payment-widget/getShippingAddressWidgetEnabled'; -import { SyncShippingAddressToBrandpayMessageData } from './event/payment-widget/syncShippingAddressToBrandpay'; -import { PaymentMethodsMessageData } from './event/paymentMethods'; -import { PaymentMethodTypeMessageData } from './event/paymentMethodType'; -import { PaymentParamsMessageData } from './event/paymentParams'; -import { PaymentResultMessageData } from './event/paymentResult'; -import { RegisterResultMessageData } from './event/registerResult'; -import { RegisterRoutePathMessageData } from './event/RegisterRoutePath'; -import { RoutePathMessageData } from './event/routePath'; -import { SafeAreaMessageData } from './event/safeArea'; -import { SdkConfigMessageData } from './event/sdkConfig'; -import { ServerUrlMessageData } from './event/serverUrl'; -import { TermScopeMessageData } from './event/termScope'; -import { ViewportMessageData } from './event/viewport'; -import { WidgetMountMessageData } from './event/widget/mount'; -import { OpenAddPaymentMethodMessageData } from './event/widget/openAddPaymentMethod'; -import { OpenCashReceiptSettingMessageData } from './event/widget/openCashReceiptSetting'; -import { OpenRegisterMessageData } from './event/widget/openRegister'; -import { ResizeWidgetMessageData } from './event/widget/resizeWidget'; -import { SyncStateMessageData } from './event/widget/syncState'; -import { UpdateAmountMessageData } from './event/widget/updateAmount'; -import { UpdateCashReceiptMessageData } from './event/widget/updateCashReceipt'; -import { UpdatePaymentMethodMessageData } from './event/widget/updatePaymentMethod'; -import { UpdateWidgetParamsMessageData } from './event/widget/updateWidgetParams'; -import { WidgetParamsMethodMessageData } from './event/widget/widgetParams'; -/** - * @description - * sdk와 brandpay가 port를 기반으로 통신하는 MessageEvent의 data 타입을 정의합니다. - */ -export interface BridgeMessageData extends EventMapType { - COMMON_PARAMS: CommonParamsMessageData; - VIEWPORT: ViewportMessageData; - PAYMENT_PARAMS: PaymentParamsMessageData; - METHOD_TYPE: PaymentMethodTypeMessageData; - SAFE_AREA: SafeAreaMessageData; - PAYMENT_RESULT: PaymentResultMessageData; - INVOKED_METHOD: InvokedMethodMessageData; - ROUTE_PATH: RoutePathMessageData; - CUSTOMER_TOKEN: CustomerTokenMessageData; - PAYMENT_METHODS: PaymentMethodsMessageData; - COMPLETE: CompleteMessageData; - CANCEL: CancelMessageData; - REGISTER_RESULT: RegisterResultMessageData; - TERM_SCOPE: TermScopeMessageData; - SERVER_URL: ServerUrlMessageData; - DISPOSE_BRIDGE: DisposeBridgeMessageData; - REGISTER_ROUTE_PATH: RegisterRoutePathMessageData; - SDK_CONFIG: SdkConfigMessageData; - KT_ALPHA_SHOP_OCR_SCAN: KTAlphaShopOCRScanMessageData; - MOUNT: MountMessageData; -} -export interface WidgetMessageData extends EventMapType { - OPEN_CASH_RECEIPT_SETTING: OpenCashReceiptSettingMessageData; - OPEN_ADD_PAYMENT_METHOD: OpenAddPaymentMethodMessageData; - WIDGET_PARAMS: WidgetParamsMethodMessageData; - COMMON_PARAMS: CommonParamsMessageData; - VIEWPORT: ViewportMessageData; - SAFE_AREA: SafeAreaMessageData; - INVOKED_METHOD: InvokedMethodMessageData; - RESIZE_WIDGET: ResizeWidgetMessageData; - UPDATE_PAYMENT_METHOD: UpdatePaymentMethodMessageData; - SYNC_STATE: SyncStateMessageData; - UPDATE_CASH_RECEIPT: UpdateCashReceiptMessageData; - SERVER_URL: ServerUrlMessageData; - UPDATE_WIDGET_PARAMS: UpdateWidgetParamsMessageData; - UPDATE_AMOUNT: UpdateAmountMessageData; - DISPOSE_BRIDGE: DisposeBridgeMessageData; - OPEN_REGISTER: OpenRegisterMessageData; - CUSTOMER_TOKEN: CustomerTokenMessageData; - SDK_CONFIG: SdkConfigMessageData; - MOUNT: WidgetMountMessageData; -} -export interface PaymentWidgetMessageData extends EventMapType { - SYNC_SHIPPING_ADDRESS_TO_BRANDPAY: SyncShippingAddressToBrandpayMessageData; - GET_SHIPPING_ADDRESS_WIDGET_ENABLED: GetShippingAddressWidgetEnabledMessageData; -} -export declare const MessageType: { - readonly COMMON_PARAMS: "COMMON_PARAMS"; - readonly PAYMENT_PARAMS: "PAYMENT_PARAMS"; - readonly METHOD_TYPE: "METHOD_TYPE"; - readonly SAFE_AREA: "SAFE_AREA"; - readonly VIEWPORT: "VIEWPORT"; - readonly PAYMENT_RESULT: "PAYMENT_RESULT"; - readonly INVOKED_METHOD: "INVOKED_METHOD"; - readonly ROUTE_PATH: "ROUTE_PATH"; - readonly CUSTOMER_TOKEN: "CUSTOMER_TOKEN"; - readonly PAYMENT_METHODS: "PAYMENT_METHODS"; - readonly COMPLETE: "COMPLETE"; - readonly CANCEL: "CANCEL"; - readonly REGISTER_RESULT: "REGISTER_RESULT"; - readonly TERM_SCOPE: "TERM_SCOPE"; - readonly SERVER_URL: "SERVER_URL"; - readonly DISPOSE_BRIDGE: "DISPOSE_BRIDGE"; - readonly REGISTER_ROUTE_PATH: "REGISTER_ROUTE_PATH"; - readonly SDK_CONFIG: "SDK_CONFIG"; - readonly KT_ALPHA_SHOP_OCR_SCAN: "KT_ALPHA_SHOP_OCR_SCAN"; - readonly MOUNT: "MOUNT"; -}; -export declare const WidgetMessageType: { - readonly OPEN_CASH_RECEIPT_SETTING: "OPEN_CASH_RECEIPT_SETTING"; - readonly OPEN_ADD_PAYMENT_METHOD: "OPEN_ADD_PAYMENT_METHOD"; - readonly WIDGET_PARAMS: "WIDGET_PARAMS"; - readonly COMMON_PARAMS: "COMMON_PARAMS"; - readonly VIEWPORT: "VIEWPORT"; - readonly SAFE_AREA: "SAFE_AREA"; - readonly INVOKED_METHOD: "INVOKED_METHOD"; - readonly RESIZE_WIDGET: "RESIZE_WIDGET"; - readonly UPDATE_PAYMENT_METHOD: "UPDATE_PAYMENT_METHOD"; - readonly SYNC_STATE: "SYNC_STATE"; - readonly UPDATE_CASH_RECEIPT: "UPDATE_CASH_RECEIPT"; - readonly UPDATE_WIDGET_PARAMS: "UPDATE_WIDGET_PARAMS"; - readonly SERVER_URL: "SERVER_URL"; - readonly UPDATE_AMOUNT: "UPDATE_AMOUNT"; - readonly DISPOSE_BRIDGE: "DISPOSE_BRIDGE"; - readonly OPEN_REGISTER: "OPEN_REGISTER"; - readonly CUSTOMER_TOKEN: "CUSTOMER_TOKEN"; - readonly SDK_CONFIG: "SDK_CONFIG"; - readonly MOUNT: "MOUNT"; -}; -export declare const PaymentWidgetMessageType: { - readonly SYNC_SHIPPING_ADDRESS_TO_BRANDPAY: "SYNC_SHIPPING_ADDRESS_TO_BRANDPAY"; - readonly GET_SHIPPING_ADDRESS_WIDGET_ENABLED: "GET_SHIPPING_ADDRESS_WIDGET_ENABLED"; -}; -export declare type MessageType = typeof MessageType[keyof typeof MessageType]; -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/message.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/message.js deleted file mode 100644 index a3c32e69..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/message.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PaymentWidgetMessageType = exports.WidgetMessageType = exports.MessageType = void 0; -const cancel_1 = require("./event/cancel"); -const commonParams_1 = require("./event/commonParams"); -const complete_1 = require("./event/complete"); -const customerToken_1 = require("./event/customerToken"); -const disposeBridge_1 = require("./event/disposeBridge"); -const invokedMethod_1 = require("./event/invokedMethod"); -const ktAlphaShopOCRScan_1 = require("./event/kt-alpha-shop/ktAlphaShopOCRScan"); -const mount_1 = require("./event/mount"); -const getShippingAddressWidgetEnabled_1 = require("./event/payment-widget/getShippingAddressWidgetEnabled"); -const syncShippingAddressToBrandpay_1 = require("./event/payment-widget/syncShippingAddressToBrandpay"); -const paymentMethods_1 = require("./event/paymentMethods"); -const paymentMethodType_1 = require("./event/paymentMethodType"); -const paymentParams_1 = require("./event/paymentParams"); -const paymentResult_1 = require("./event/paymentResult"); -const registerResult_1 = require("./event/registerResult"); -const RegisterRoutePath_1 = require("./event/RegisterRoutePath"); -const routePath_1 = require("./event/routePath"); -const safeArea_1 = require("./event/safeArea"); -const sdkConfig_1 = require("./event/sdkConfig"); -const serverUrl_1 = require("./event/serverUrl"); -const termScope_1 = require("./event/termScope"); -const viewport_1 = require("./event/viewport"); -const mount_2 = require("./event/widget/mount"); -const openAddPaymentMethod_1 = require("./event/widget/openAddPaymentMethod"); -const openCashReceiptSetting_1 = require("./event/widget/openCashReceiptSetting"); -const openRegister_1 = require("./event/widget/openRegister"); -const resizeWidget_1 = require("./event/widget/resizeWidget"); -const syncState_1 = require("./event/widget/syncState"); -const updateAmount_1 = require("./event/widget/updateAmount"); -const updateCashReceipt_1 = require("./event/widget/updateCashReceipt"); -const updatePaymentMethod_1 = require("./event/widget/updatePaymentMethod"); -const updateWidgetParams_1 = require("./event/widget/updateWidgetParams"); -const widgetParams_1 = require("./event/widget/widgetParams"); -exports.MessageType = { - COMMON_PARAMS: commonParams_1.MessageName, - PAYMENT_PARAMS: paymentParams_1.MessageName, - METHOD_TYPE: paymentMethodType_1.MessageName, - SAFE_AREA: safeArea_1.MessageName, - VIEWPORT: viewport_1.MessageName, - PAYMENT_RESULT: paymentResult_1.MessageName, - INVOKED_METHOD: invokedMethod_1.MessageName, - ROUTE_PATH: routePath_1.MessageName, - CUSTOMER_TOKEN: customerToken_1.MessageName, - PAYMENT_METHODS: paymentMethods_1.MessageName, - COMPLETE: complete_1.MessageName, - CANCEL: cancel_1.MessageName, - REGISTER_RESULT: registerResult_1.MessageName, - TERM_SCOPE: termScope_1.MessageName, - SERVER_URL: serverUrl_1.MessageName, - DISPOSE_BRIDGE: disposeBridge_1.MessageName, - REGISTER_ROUTE_PATH: RegisterRoutePath_1.MessageName, - SDK_CONFIG: sdkConfig_1.MessageName, - KT_ALPHA_SHOP_OCR_SCAN: ktAlphaShopOCRScan_1.MessageName, - MOUNT: mount_1.MessageName, -}; -exports.WidgetMessageType = { - OPEN_CASH_RECEIPT_SETTING: openCashReceiptSetting_1.MessageName, - OPEN_ADD_PAYMENT_METHOD: openAddPaymentMethod_1.MessageName, - WIDGET_PARAMS: widgetParams_1.MessageName, - COMMON_PARAMS: commonParams_1.MessageName, - VIEWPORT: viewport_1.MessageName, - SAFE_AREA: safeArea_1.MessageName, - INVOKED_METHOD: invokedMethod_1.MessageName, - RESIZE_WIDGET: resizeWidget_1.MessageName, - UPDATE_PAYMENT_METHOD: updatePaymentMethod_1.MessageName, - SYNC_STATE: syncState_1.MessageName, - UPDATE_CASH_RECEIPT: updateCashReceipt_1.MessageName, - UPDATE_WIDGET_PARAMS: updateWidgetParams_1.MessageName, - SERVER_URL: serverUrl_1.MessageName, - UPDATE_AMOUNT: updateAmount_1.MessageName, - DISPOSE_BRIDGE: disposeBridge_1.MessageName, - OPEN_REGISTER: openRegister_1.MessageName, - CUSTOMER_TOKEN: customerToken_1.MessageName, - SDK_CONFIG: sdkConfig_1.MessageName, - MOUNT: mount_2.MessageName, -}; -exports.PaymentWidgetMessageType = { - SYNC_SHIPPING_ADDRESS_TO_BRANDPAY: syncShippingAddressToBrandpay_1.MessageName, - GET_SHIPPING_ADDRESS_WIDGET_ENABLED: getShippingAddressWidgetEnabled_1.MessageName, -}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentMethodType.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentMethodType.d.ts deleted file mode 100644 index 4afa24d1..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentMethodType.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @description - * 가맹점에서 넘겨준 결제 수단(paymentMethodType) 타입을 정의합니다. - */ -export declare type PaymentMethodType = '카드' | '계좌' | '미선택'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentMethodType.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentMethodType.js deleted file mode 100644 index 9da2acbc..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentMethodType.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -/** - * @description - * 가맹점에서 넘겨준 결제 수단(paymentMethodType) 타입을 정의합니다. - */ -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentParams.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentParams.d.ts deleted file mode 100644 index c77ac468..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentParams.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { MethodId, 현금영수증 } from '../apiClient'; -export interface BasePaymentParams { - amount: number; - orderId: string; - orderName: string; - successUrl?: string; - failUrl?: string; - methodId?: MethodId; - customerEmail?: string; - shippingAddress?: string; - taxFreeAmount?: number; - cardInstallmentPlan?: number; - useCardPoint?: boolean; - discountCode?: string; - cashReceipt?: CashReceipt; - userAgent?: string; - productCode?: string; -} -export interface PaymentParamsWithoutUrl extends BasePaymentParams { - successUrl?: never; - failUrl?: never; -} -export interface PaymentParamsWithUrl extends BasePaymentParams { - successUrl: string; - failUrl: string; -} -export interface Cafe24PaymentParams extends PaymentParamsWithoutUrl { - cafe24PaymentKey: string; -} -/** - * @description - * 가맹점에서 결제를 요청할 때, sdk에서 brandpay로 넘겨주는 결제 관련 파라미터입니다. - * @see https://www.notion.so/tossteam/UI-Javascript-5d71203e00f240dda7d7aa0b169e7b96 - */ -export declare type PaymentParams = PaymentParamsWithoutUrl | PaymentParamsWithUrl | Cafe24PaymentParams; -export declare type CashReceipt = 현금영수증; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentParams.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentParams.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/paymentParams.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/sdkConfigParams.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/sdkConfigParams.d.ts deleted file mode 100644 index eaa0f9ee..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/sdkConfigParams.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface SdkConfigParams { - debug: boolean; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/sdkConfigParams.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/sdkConfigParams.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/sdkConfigParams.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetParams.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetParams.d.ts deleted file mode 100644 index db0e8c0f..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetParams.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { MethodId } from '../apiClient'; -import { BrandPayOptions } from './commonParams'; -import { PaymentMethodType } from './paymentMethodType'; -import { PaymentParams } from './paymentParams'; -export declare type WidgetParams = { - clientKey: string; - customerKey: string; - authenticateUrl?: string; - methodType: PaymentMethodType; - methodId?: MethodId; - amount: number; - options: BrandPayOptions; - paymentParams: Partial; - ui?: WidgetUiOptions; -}; -export interface WidgetUiOptions { - promotionSection?: PromotionSection; -} -interface PromotionSection { - summary?: PromotionSummary; - description?: PromotionDescription; -} -interface PromotionSummary { - visible?: boolean; -} -interface PromotionDescription { - visible?: boolean; - defaultOpen?: boolean; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetParams.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetParams.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetParams.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetPaymentParams.d.ts b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetPaymentParams.d.ts deleted file mode 100644 index 7dbc7883..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetPaymentParams.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { PaymentParams } from './paymentParams'; -export interface WidgetPaymentParams { - amount?: number; - paymentParams?: Pick; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetPaymentParams.js b/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetPaymentParams.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/SDKBridge/widgetPaymentParams.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/cardPromotions/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/cardPromotions/index.d.ts deleted file mode 100644 index 5481e670..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/cardPromotions/index.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CardCompanyCode, CardCompany } from '../methods'; -interface BasePromotionProps { - companyCode: CardCompanyCode; - /** - * companyCode 로 변경 - * @deprecated - * @since v1.7 - * @link {@see https://docs.tosspayments.com/reference/release-note#2022-11-16} - */ - cardCompany: CardCompany; - dueDate: string; - minimumPaymentAmount: number; -} -export interface DiscountCard extends BasePromotionProps { - balance: number; - discountAmount: number; - discountCode: string; - maximumPaymentAmount: number; -} -export interface InterestFreeCard extends BasePromotionProps { - installmentFreeMonths: number[]; -} -export interface PointCard extends BasePromotionProps { -} -export interface InstallmentOption { - [installmentOption: string]: number; -} -export interface CardPromotions { - discountCards: DiscountCard[]; - interestFreeCards: InterestFreeCard[]; - pointCards: PointCard[]; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/cardPromotions/index.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/cardPromotions/index.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/cardPromotions/index.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/cashReceipt/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/cashReceipt/index.d.ts deleted file mode 100644 index 6cba9e85..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/cashReceipt/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface 소득공제_현금영수증 { - type: '소득공제'; - registrationNumberType: 'MOBILE' | 'CASH_RECEIPT_CARD'; - registrationNumber: string; -} -export interface 지출증빙_현금영수증 { - type: '지출증빙'; - registrationNumberType: 'BUSINESS_REGISTRATION' | 'CASH_RECEIPT_CARD'; - registrationNumber: string; -} -export interface 미발행 { - type: '미발행'; - registrationNumberType?: never; - registrationNumber?: never; -} -export declare type 현금영수증 = 소득공제_현금영수증 | 지출증빙_현금영수증 | 미발행; diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/cashReceipt/index.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/cashReceipt/index.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/cashReceipt/index.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/identity/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/identity/index.d.ts deleted file mode 100644 index 2e91c82a..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/identity/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export interface Identity { - ci: string; - mobilePhoneNumber: string; - name: string; - rrn: string; - authType: 'NONE' | 'PASSWORD'; - isIdentified: boolean; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/identity/index.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/identity/index.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/identity/index.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/index.d.ts deleted file mode 100644 index fc041634..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @description SDK와 Brandpay 서비스에서 비즈니스 API 를 호출할 때 사용하는 공통 타입입니다. - */ -export * from './cardPromotions'; -export * from './cashReceipt'; -export * from './identity'; -export * from './methods'; -export * from './properties'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/index.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/index.js deleted file mode 100644 index 59346a4b..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -/** - * @description SDK와 Brandpay 서비스에서 비즈니스 API 를 호출할 때 사용하는 공통 타입입니다. - */ -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./cardPromotions"), exports); -__exportStar(require("./cashReceipt"), exports); -__exportStar(require("./identity"), exports); -__exportStar(require("./methods"), exports); -__exportStar(require("./properties"), exports); diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/account.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/account.d.ts deleted file mode 100644 index 2806c940..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/account.d.ts +++ /dev/null @@ -1,141 +0,0 @@ -export declare const BankCodeInKorean: { - readonly 농협: "농협"; - readonly 우리: "우리"; - readonly 신한: "신한"; - readonly 국민: "국민"; - readonly 하나: "하나"; - readonly 씨티: "씨티"; - readonly 기업: "기업"; - readonly 산업: "산업"; - readonly SC제일: "SC제일"; - readonly 대구: "대구"; - readonly 부산: "부산"; - readonly 전북: "전북"; - readonly 경남: "경남"; - readonly 제주: "제주"; - readonly 광주: "광주"; - readonly 새마을: "새마을"; - readonly 수협: "수협"; - readonly 신협: "신협"; - readonly 우체국: "우체국"; - readonly 케이: "케이"; - readonly 카카오: "카카오"; - readonly 저축: "저축"; - readonly 산림: "산림"; - readonly SBI: "SBI"; - readonly 토스: "토스"; -}; -export declare const BankCodeInEnglish: { - readonly NONGHYEOP: "NONGHYEOP"; - readonly WOORI: "WOORI"; - readonly SHINHAN: "SHINHAN"; - readonly KOOKMIN: "KOOKMIN"; - readonly HANA: "HANA"; - readonly CITI: "CITI"; - readonly IBK: "IBK"; - readonly KDBBANK: "KDBBANK"; - readonly SC: "SC"; - readonly DAEGUBANK: "DAEGUBANK"; - readonly BUSANBANK: "BUSANBANK"; - readonly JEONBUKBANK: "JEONBUKBANK"; - readonly KYONGNAMBANK: "KYONGNAMBANK"; - readonly JEJUBANK: "JEJUBANK"; - readonly GWANGJUBANK: "GWANGJUBANK"; - readonly SAEMAUL: "SAEMAUL"; - readonly SUHYEOP: "SUHYEOP"; - readonly SHINHYEOP: "SHINHYEOP"; - readonly POST: "POST"; - readonly KBANK: "KBANK"; - readonly KAKAOBANK: "KAKAOBANK"; - readonly SAVINGBANK: "SAVINGBANK"; - readonly SANLIM: "SANLIM"; - readonly TOSSBANK: "TOSSBANK"; -}; -export declare const BankCodeInNumber: { - readonly 39: "경남"; - readonly 34: "광주"; - readonly "06": "국민"; - readonly "03": "기업"; - readonly 11: "농협"; - readonly 31: "대구"; - readonly 32: "부산"; - readonly "02": "산업"; - readonly 45: "새마을"; - readonly 64: "산림"; - readonly "07": "수협"; - readonly 88: "신한"; - readonly 48: "신협"; - readonly 27: "씨티"; - readonly 20: "우리"; - readonly 71: "우체국"; - readonly 50: "저축"; - readonly 37: "전북"; - readonly 35: "제주"; - readonly 90: "카카오"; - readonly 89: "케이"; - readonly 92: "토스"; - readonly 81: "하나"; - readonly 23: "SC제일"; -}; -export declare const BankCode: { - readonly NONGHYEOP: "NONGHYEOP"; - readonly WOORI: "WOORI"; - readonly SHINHAN: "SHINHAN"; - readonly KOOKMIN: "KOOKMIN"; - readonly HANA: "HANA"; - readonly CITI: "CITI"; - readonly IBK: "IBK"; - readonly KDBBANK: "KDBBANK"; - readonly SC: "SC"; - readonly DAEGUBANK: "DAEGUBANK"; - readonly BUSANBANK: "BUSANBANK"; - readonly JEONBUKBANK: "JEONBUKBANK"; - readonly KYONGNAMBANK: "KYONGNAMBANK"; - readonly JEJUBANK: "JEJUBANK"; - readonly GWANGJUBANK: "GWANGJUBANK"; - readonly SAEMAUL: "SAEMAUL"; - readonly SUHYEOP: "SUHYEOP"; - readonly SHINHYEOP: "SHINHYEOP"; - readonly POST: "POST"; - readonly KBANK: "KBANK"; - readonly KAKAOBANK: "KAKAOBANK"; - readonly SAVINGBANK: "SAVINGBANK"; - readonly SANLIM: "SANLIM"; - readonly TOSSBANK: "TOSSBANK"; - readonly 농협: "농협"; - readonly 우리: "우리"; - readonly 신한: "신한"; - readonly 국민: "국민"; - readonly 하나: "하나"; - readonly 씨티: "씨티"; - readonly 기업: "기업"; - readonly 산업: "산업"; - readonly SC제일: "SC제일"; - readonly 대구: "대구"; - readonly 부산: "부산"; - readonly 전북: "전북"; - readonly 경남: "경남"; - readonly 제주: "제주"; - readonly 광주: "광주"; - readonly 새마을: "새마을"; - readonly 수협: "수협"; - readonly 신협: "신협"; - readonly 우체국: "우체국"; - readonly 케이: "케이"; - readonly 카카오: "카카오"; - readonly 저축: "저축"; - readonly 산림: "산림"; - readonly SBI: "SBI"; - readonly 토스: "토스"; -}; -export declare type BankCode = keyof typeof BankCode; -export declare type BankCodeInKorean = keyof typeof BankCodeInKorean; -export declare type BankCodeInEnglish = keyof typeof BankCodeInEnglish; -export declare type BankCodeInNumber = keyof typeof BankCodeInNumber; -export interface Account { - id: BankCodeInNumber; - fullName: string; - icon: string; - iconUrl: string; - code: BankCode; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/account.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/account.js deleted file mode 100644 index f2a8ff7f..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/account.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BankCode = exports.BankCodeInNumber = exports.BankCodeInEnglish = exports.BankCodeInKorean = void 0; -exports.BankCodeInKorean = { - 농협: `농협`, - 우리: `우리`, - 신한: `신한`, - 국민: `국민`, - 하나: `하나`, - 씨티: `씨티`, - 기업: `기업`, - 산업: `산업`, - SC제일: `SC제일`, - 대구: `대구`, - 부산: `부산`, - 전북: `전북`, - 경남: `경남`, - 제주: `제주`, - 광주: `광주`, - 새마을: `새마을`, - 수협: `수협`, - 신협: `신협`, - 우체국: `우체국`, - 케이: `케이`, - 카카오: `카카오`, - 저축: `저축`, - 산림: `산림`, - SBI: `SBI`, - 토스: `토스`, -}; -exports.BankCodeInEnglish = { - NONGHYEOP: 'NONGHYEOP', - WOORI: 'WOORI', - SHINHAN: 'SHINHAN', - KOOKMIN: 'KOOKMIN', - HANA: 'HANA', - CITI: 'CITI', - IBK: 'IBK', - KDBBANK: 'KDBBANK', - SC: 'SC', - DAEGUBANK: 'DAEGUBANK', - BUSANBANK: 'BUSANBANK', - JEONBUKBANK: 'JEONBUKBANK', - KYONGNAMBANK: 'KYONGNAMBANK', - JEJUBANK: 'JEJUBANK', - GWANGJUBANK: 'GWANGJUBANK', - SAEMAUL: 'SAEMAUL', - SUHYEOP: 'SUHYEOP', - SHINHYEOP: 'SHINHYEOP', - POST: 'POST', - KBANK: 'KBANK', - KAKAOBANK: 'KAKAOBANK', - SAVINGBANK: 'SAVINGBANK', - SANLIM: 'SANLIM', - TOSSBANK: 'TOSSBANK', -}; -exports.BankCodeInNumber = { - ['39']: '경남', - ['34']: '광주', - ['06']: '국민', - ['03']: '기업', - ['11']: '농협', - ['31']: '대구', - ['32']: '부산', - ['02']: '산업', - ['45']: '새마을', - ['64']: '산림', - ['07']: '수협', - ['88']: '신한', - ['48']: '신협', - ['27']: '씨티', - ['20']: '우리', - ['71']: '우체국', - ['50']: '저축', - ['37']: '전북', - ['35']: '제주', - ['90']: '카카오', - ['89']: '케이', - ['92']: '토스', - ['81']: '하나', - ['23']: 'SC제일', -}; -exports.BankCode = Object.assign(Object.assign({}, exports.BankCodeInKorean), exports.BankCodeInEnglish); diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/card.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/card.d.ts deleted file mode 100644 index 074f7101..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/card.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface CreditCard { - cardNumber1: string; - cardNumber2: string; - cardNumber3: string; - cardNumber4: string; - cardExpirationYear: string; - cardExpirationMonth: string; - cardPassword: string; - cardCvc: string; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/card.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/card.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/card.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/cardInfo.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/cardInfo.d.ts deleted file mode 100644 index 2160ddec..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/cardInfo.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -export declare const CardType: { - readonly 신용: "신용"; - readonly 체크: "체크"; -}; -export declare const CardCompany: { - readonly 신한: "신한"; - readonly 현대: "현대"; - readonly 삼성: "삼성"; - readonly 우리: "우리"; - readonly 국민: "국민"; - readonly 롯데: "롯데"; - readonly 농협: "농협"; - readonly 하나: "하나"; - readonly BC: "BC"; - readonly 수협: "수협"; - readonly 전북: "전북"; - readonly 제주: "제주"; - readonly 광주: "광주"; - readonly 신협: "신협"; - readonly 씨티: "씨티"; -}; -export declare const CardCompanyCode: { - readonly 46: "광주은행"; - readonly 11: "KB국민카드"; - readonly 91: "NH농협카드"; - readonly 71: "롯데카드"; - readonly 30: "KDB산업은행"; - readonly 51: "삼성카드"; - readonly 38: "새마을금고"; - readonly 34: "Sh수협은행"; - readonly 41: "신한카드"; - readonly 62: "신협"; - readonly 36: "씨티카드"; - readonly 33: "우리카드"; - readonly 37: "우체국예금보험"; - readonly 39: "저축은행중앙회"; - readonly 35: "전북은행"; - readonly 42: "제주은행"; - readonly 15: "카카오뱅크"; - readonly "3A": "케이뱅크"; - readonly 24: "토스뱅크"; - readonly 21: "하나카드"; - readonly 61: "현대카드"; - readonly 31: "비씨카드"; -}; -export declare type CardCompany = keyof typeof CardCompany; -export declare type CardCompanyCode = keyof typeof CardCompanyCode; -export interface CardInfo { - cardCode: CardCompanyCode; - /** - * cardCode 로 변경 - * @deprecated - * @since v1.7 - * @link {@see https://docs.tosspayments.com/reference/release-note#2022-11-16} - */ - cardCompany: CardCompany; - /** - * @description - * 카드번호의 길이. 회사에 따라 다를 수 있음 (AMEX의 경우 15자리) - */ - cardNumberDigit: number; - cardType: '신용' | '체크'; - cvcDigit: number; - cardName: string; - issueCompany: string; - ownerType: '개인' | '법인' | '미확인'; - passwordDigit: number; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/cardInfo.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/cardInfo.js deleted file mode 100644 index 8c875a31..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/cardInfo.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CardCompanyCode = exports.CardCompany = exports.CardType = void 0; -exports.CardType = { - 신용: `신용`, - 체크: `체크`, -}; -exports.CardCompany = { - 신한: `신한`, - 현대: `현대`, - 삼성: `삼성`, - 우리: `우리`, - 국민: `국민`, - 롯데: `롯데`, - 농협: `농협`, - 하나: `하나`, - BC: `BC`, - 수협: `수협`, - 전북: `전북`, - 제주: `제주`, - 광주: `광주`, - 신협: `신협`, - 씨티: `씨티`, -}; -exports.CardCompanyCode = { - ['46']: '광주은행', - ['11']: 'KB국민카드', - ['91']: 'NH농협카드', - ['71']: '롯데카드', - ['30']: 'KDB산업은행', - ['51']: '삼성카드', - ['38']: '새마을금고', - ['34']: 'Sh수협은행', - ['41']: '신한카드', - ['62']: '신협', - ['36']: '씨티카드', - ['33']: '우리카드', - ['37']: '우체국예금보험', - ['39']: '저축은행중앙회', - ['35']: '전북은행', - ['42']: '제주은행', - ['15']: '카카오뱅크', - ['3A']: '케이뱅크', - ['24']: '토스뱅크', - ['21']: '하나카드', - ['61']: '현대카드', - ['31']: '비씨카드', -}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/index.d.ts deleted file mode 100644 index 57fda94b..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './cardInfo'; -export * from './account'; -export * from './method'; -export * from './card'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/index.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/index.js deleted file mode 100644 index c1bb34df..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./cardInfo"), exports); -__exportStar(require("./account"), exports); -__exportStar(require("./method"), exports); -__exportStar(require("./card"), exports); diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/method.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/method.d.ts deleted file mode 100644 index 70e3d9ed..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/method.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { Account, BankCode, BankCodeInNumber } from './account'; -import { CardCompanyCode, CardInfo } from './cardInfo'; -declare type Icon = 'icn' | 'icon'; -declare type Color = `#${string}`; -export declare type MethodId = string; -export interface Method { - id: MethodId; - alias?: string | null; - registeredAt: string; - status: 'ENABLED' | 'DISABLED'; - isAvailable: boolean; - /** - * @deprecated - */ - icon: string; - /** - * @deprecated - */ - iconUrl: string; - icons: { - normal: { - name: `${Icon}-bank-${string}`; - url: string; - }; - fill: { - name: `${Icon}-bank-fill-${string}`; - url: string; - }; - square: { - name: `${Icon}-bank-square-${string}`; - url: string; - }; - }; - color: { - background: Color; - text: Color; - }; -} -export interface CardMethod extends Pick, Omit { - id: string; - cardNumber: string; - cardName: string; - cardImgUrl?: string; - acquirerCode: CardCompanyCode; - issuerCode: CardCompanyCode; -} -export interface AccountMethod extends Pick, Omit { - id: string; - accountNumber: string; - accountName: string; - /** - * bankCode 로 변경 - * @deprecated - * @since v1.7 - * @link {@see https://docs.tosspayments.com/reference/release-note#2022-11-16} - */ - bank: BankCode; - bankCode: BankCodeInNumber; -} -export declare type PaymentMethod = CardMethod | AccountMethod; -export interface Methods { - cards: CardMethod[]; - accounts: AccountMethod[]; - selectedMethodId: MethodId | undefined; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/method.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/method.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/methods/method.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/properties/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/apiClient/properties/index.d.ts deleted file mode 100644 index c2a3a72f..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/properties/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Properties { - useCustomerOneTouch: boolean; - useMerchantOneTouch: boolean; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/apiClient/properties/index.js b/node_modules/@tosspayments/brandpay-types/dist/apiClient/properties/index.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/apiClient/properties/index.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/index.d.ts deleted file mode 100644 index 3cc1b2d2..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './apiClient'; -export * from './methods'; -export * from './models'; -export * from './SDKBridge'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/index.js b/node_modules/@tosspayments/brandpay-types/dist/index.js deleted file mode 100644 index 07bf5047..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./apiClient"), exports); -__exportStar(require("./methods"), exports); -__exportStar(require("./models"), exports); -__exportStar(require("./SDKBridge"), exports); diff --git a/node_modules/@tosspayments/brandpay-types/dist/methods/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/methods/index.d.ts deleted file mode 100644 index 34fe7c97..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/methods/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './requestPayments'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/methods/index.js b/node_modules/@tosspayments/brandpay-types/dist/methods/index.js deleted file mode 100644 index f9ec78c6..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/methods/index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./requestPayments"), exports); diff --git a/node_modules/@tosspayments/brandpay-types/dist/methods/requestPayments.d.ts b/node_modules/@tosspayments/brandpay-types/dist/methods/requestPayments.d.ts deleted file mode 100644 index 37935bec..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/methods/requestPayments.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { Cafe24PaymentParams, PaymentParams, PaymentParamsWithoutUrl, PaymentParamsWithUrl, WidgetPaymentParams } from '../SDKBridge'; -export interface RequestPaymentParmasWithUrl extends Omit { - amount?: number; - widget?: { - __payment__params__: WidgetPaymentParams; - }; -} -export interface RequestPaymentParmasWithoutUrl extends Omit { - amount?: number; - widget?: { - __payment__params__: WidgetPaymentParams; - }; -} -export interface Cafe24RequestPaymentParmasWithoutUrl extends Omit { - amount?: number; - widget?: { - __payment__params__: WidgetPaymentParams; - }; -} -export interface RequestPaymentParams extends Omit { - amount?: number; - widget?: { - __payment__params__: WidgetPaymentParams; - }; -} diff --git a/node_modules/@tosspayments/brandpay-types/dist/methods/requestPayments.js b/node_modules/@tosspayments/brandpay-types/dist/methods/requestPayments.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/methods/requestPayments.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@tosspayments/brandpay-types/dist/models/Carrier.d.ts b/node_modules/@tosspayments/brandpay-types/dist/models/Carrier.d.ts deleted file mode 100644 index 7bbfa340..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/models/Carrier.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare const carrier: { - readonly SKT: "SKT"; - readonly KT: "KT"; - readonly 'LG U+': "LGU"; - readonly 'SKT \uC54C\uB730\uD3F0': "SKT_MVNO"; - readonly 'KT \uC54C\uB730\uD3F0': "KT_MVNO"; - readonly 'LG U+ \uC54C\uB730\uD3F0': "LGU_MVNO"; -}; -export declare type Carrier = typeof carrier; diff --git a/node_modules/@tosspayments/brandpay-types/dist/models/Carrier.js b/node_modules/@tosspayments/brandpay-types/dist/models/Carrier.js deleted file mode 100644 index 2c4e53cb..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/models/Carrier.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.carrier = void 0; -exports.carrier = { - SKT: 'SKT', - KT: 'KT', - 'LG U+': 'LGU', - 'SKT 알뜰폰': 'SKT_MVNO', - 'KT 알뜰폰': 'KT_MVNO', - 'LG U+ 알뜰폰': 'LGU_MVNO', -}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/models/Terms.d.ts b/node_modules/@tosspayments/brandpay-types/dist/models/Terms.d.ts deleted file mode 100644 index 6c242166..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/models/Terms.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare const TermScope: { - readonly 회원가입: "REGISTER"; - readonly 빌링: "BILLING"; - readonly 카드: "CARD"; - readonly 계좌: "ACCOUNT"; -}; -export declare type TermScope = typeof TermScope; diff --git a/node_modules/@tosspayments/brandpay-types/dist/models/Terms.js b/node_modules/@tosspayments/brandpay-types/dist/models/Terms.js deleted file mode 100644 index b52d7e3b..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/models/Terms.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TermScope = void 0; -exports.TermScope = { - 회원가입: `REGISTER`, - 빌링: `BILLING`, - 카드: `CARD`, - 계좌: `ACCOUNT`, -}; diff --git a/node_modules/@tosspayments/brandpay-types/dist/models/index.d.ts b/node_modules/@tosspayments/brandpay-types/dist/models/index.d.ts deleted file mode 100644 index a1d1e599..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/models/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './Carrier'; -export * from './Terms'; diff --git a/node_modules/@tosspayments/brandpay-types/dist/models/index.js b/node_modules/@tosspayments/brandpay-types/dist/models/index.js deleted file mode 100644 index db596fdf..00000000 --- a/node_modules/@tosspayments/brandpay-types/dist/models/index.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./Carrier"), exports); -__exportStar(require("./Terms"), exports); diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/baseMessageData.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/baseMessageData.d.ts deleted file mode 100644 index 2fe08ef1..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/baseMessageData.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface BaseMessageData { - eventId: string; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/baseMessageData.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/baseMessageData.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/baseMessageData.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/commonParams.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/commonParams.d.ts deleted file mode 100644 index 2575260e..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/commonParams.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -/** - * @description - * 가맹점에서 브랜드페이를 호출할 때 넘겨주는 파라미터 및 가맹점/유저 식별을 위한 식별자 정보를 담고 있는 파라미터입니다 - */ -export interface CommonParams { - sessionId: string; - clientId: string; - clientKey: string; - customerKey: string; - origin: string; - options?: BrandPayOptions; -} -/** - * @description - * 가맹점이 브랜드페이를 호출할 때 optional하게 넘겨주는 파라미터입니다. - * @see https://www.notion.so/tossteam/UI-Javascript-5d71203e00f240dda7d7aa0b169e7b96 - */ -export interface BrandPayOptions { - redirectUrl?: string; - ocrLicense?: string; - /** @deprecated */ - showNavigationBar?: boolean; - /** @deprecated */ - theme?: Theme; - /** @deprecated */ - labels?: Labels; - ui?: UiOptions; - windowTarget?: 'iframe' | 'popup'; - version?: 'brandpay' | 'oliveyoung' | 'cafe24'; - /** - * global trace id - * @internal - */ - gtid?: string; - /** - * 어느 서비스에서 SDK 를 로드했는지 나타냄 - * @internal - */ - service?: 'sdk' | 'widget' | 'payment-widget' | 'unknown'; -} -export declare type Theme = 'musinsa' | 'simsale' | 'golfzon' | 'giftistar'; -interface UiOptions { - /** @deprecated */ - showNavigationBar?: boolean; - highlightColor?: string; - buttonStyle?: 'default' | 'full'; - labels?: Labels; - navigationBar?: NavigationBar; - paymentMethodBottomSheet?: PaymentMethodBottomSheet; -} -interface Labels { - oneTouchPay?: string; -} -interface NavigationBar { - visible: boolean; - paddingTop: number; -} -interface PaymentMethodBottomSheet { - addMethod?: AddMethod; -} -interface AddMethod { - visible: boolean; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/commonParams.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/commonParams.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/commonParams.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/RegisterRoutePath.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/RegisterRoutePath.d.ts deleted file mode 100644 index fcbd018e..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/RegisterRoutePath.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "REGISTER_ROUTE_PATH"; -declare type Result = { - path: string; - executed: boolean; -}; -export interface RegisterRoutePathMessageData extends BaseMessageData { - type: typeof MessageName; - result: Result; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/RegisterRoutePath.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/RegisterRoutePath.js deleted file mode 100644 index 00347201..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/RegisterRoutePath.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'REGISTER_ROUTE_PATH'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/cancel.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/cancel.d.ts deleted file mode 100644 index 4d43e0f2..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/cancel.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "CANCEL"; -interface CancelParams { - code: string; - message: string; -} -export interface CancelMessageData extends BaseMessageData { - type: typeof MessageName; - params?: CancelParams; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/cancel.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/cancel.js deleted file mode 100644 index 139a305f..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/cancel.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'CANCEL'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/commonParams.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/commonParams.d.ts deleted file mode 100644 index 577f9096..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/commonParams.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import type { CommonParams } from '../commonParams'; -export declare const MessageName: "COMMON_PARAMS"; -export interface CommonParamsMessageData extends BaseMessageData { - type: typeof MessageName; - result: CommonParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/commonParams.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/commonParams.js deleted file mode 100644 index b7edc2ca..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/commonParams.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'COMMON_PARAMS'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/complete.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/complete.d.ts deleted file mode 100644 index 23356cee..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/complete.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "COMPLETE"; -export interface CompleteMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/complete.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/complete.js deleted file mode 100644 index 1790d74c..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/complete.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'COMPLETE'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/customerToken.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/customerToken.d.ts deleted file mode 100644 index 97188b14..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/customerToken.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "CUSTOMER_TOKEN"; -export interface CustomerTokenMessageData extends BaseMessageData { - type: typeof MessageName; - result: Promise; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/customerToken.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/customerToken.js deleted file mode 100644 index f8d861e1..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/customerToken.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'CUSTOMER_TOKEN'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/disposeBridge.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/disposeBridge.d.ts deleted file mode 100644 index 28d95491..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/disposeBridge.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "DISPOSE_BRIDGE"; -export interface DisposeBridgeMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/disposeBridge.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/disposeBridge.js deleted file mode 100644 index ab9da968..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/disposeBridge.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'DISPOSE_BRIDGE'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/invokedMethod.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/invokedMethod.d.ts deleted file mode 100644 index 23b49070..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/invokedMethod.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { InvokedMethod } from '../invokedMethod'; -export declare const MessageName: "INVOKED_METHOD"; -export interface InvokedMethodMessageData extends BaseMessageData { - type: typeof MessageName; - result: InvokedMethod; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/invokedMethod.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/invokedMethod.js deleted file mode 100644 index 0e198cc4..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/invokedMethod.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'INVOKED_METHOD'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.d.ts deleted file mode 100644 index 41acbef6..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "KT_ALPHA_SHOP_OCR_SCAN"; -export interface KTAlphaShopOCRScanMessageData extends BaseMessageData { - type: typeof MessageName; - result: Promise; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.js deleted file mode 100644 index 6bca07d0..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/kt-alpha-shop/ktAlphaShopOCRScan.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'KT_ALPHA_SHOP_OCR_SCAN'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/mount.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/mount.d.ts deleted file mode 100644 index 303af477..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/mount.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "MOUNT"; -export interface MountMessageData extends BaseMessageData { - type: typeof MessageName; - params: { - mount: boolean; - }; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/mount.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/mount.js deleted file mode 100644 index 9deaf3c5..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/mount.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'MOUNT'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.d.ts deleted file mode 100644 index db104bdc..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "GET_SHIPPING_ADDRESS_WIDGET_ENABLED"; -export interface GetShippingAddressWidgetEnabledMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.js deleted file mode 100644 index d5cbf8c5..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/getShippingAddressWidgetEnabled.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'GET_SHIPPING_ADDRESS_WIDGET_ENABLED'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.d.ts deleted file mode 100644 index f5f82eee..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "SYNC_SHIPPING_ADDRESS_TO_BRANDPAY"; -export interface SyncShippingAddressToBrandpayMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.js deleted file mode 100644 index 401d7957..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/payment-widget/syncShippingAddressToBrandpay.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'SYNC_SHIPPING_ADDRESS_TO_BRANDPAY'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethodType.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethodType.d.ts deleted file mode 100644 index a95d8da9..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethodType.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { PaymentMethodType } from '../paymentMethodType'; -export declare const MessageName: "METHOD_TYPE"; -export interface PaymentMethodTypeMessageData extends BaseMessageData { - type: typeof MessageName; - result: PaymentMethodType; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethodType.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethodType.js deleted file mode 100644 index 3c4256b8..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethodType.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'METHOD_TYPE'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethods.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethods.d.ts deleted file mode 100644 index d7da9f1c..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethods.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Methods } from '../../apiClient'; -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "PAYMENT_METHODS"; -export interface PaymentMethodsMessageData extends BaseMessageData { - type: typeof MessageName; - params: Methods; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethods.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethods.js deleted file mode 100644 index d9b9e2e5..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentMethods.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'PAYMENT_METHODS'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentParams.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentParams.d.ts deleted file mode 100644 index 94a8dac1..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentParams.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { PaymentParams } from '../paymentParams'; -export declare const MessageName: "PAYMENT_PARAMS"; -export interface PaymentParamsMessageData extends BaseMessageData { - type: typeof MessageName; - result: PaymentParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentParams.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentParams.js deleted file mode 100644 index 362b3c13..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentParams.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'PAYMENT_PARAMS'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentResult.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentResult.d.ts deleted file mode 100644 index 66c89718..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentResult.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { PaymentParams } from '../paymentParams'; -export declare const MessageName: "PAYMENT_RESULT"; -interface PaymentFailureParams extends Pick { - type: 'FAIL'; - code: any; - message: any; -} -interface PaymentSuccessParams extends Pick { - type: 'SUCCESS'; - paymentKey: string; -} -export interface PaymentResultMessageData extends BaseMessageData { - type: typeof MessageName; - params: PaymentFailureParams | PaymentSuccessParams; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentResult.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentResult.js deleted file mode 100644 index ca654b5e..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/paymentResult.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'PAYMENT_RESULT'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/registerResult.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/registerResult.d.ts deleted file mode 100644 index 5817203e..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/registerResult.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "REGISTER_RESULT"; -interface RegisterFailureParams { - type: 'FAIL'; -} -interface RegisterSuccessParams { - type: 'SUCCESS'; - customerToken: string; -} -export interface RegisterResultMessageData extends BaseMessageData { - type: typeof MessageName; - params: RegisterFailureParams | RegisterSuccessParams; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/registerResult.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/registerResult.js deleted file mode 100644 index 6b69feb1..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/registerResult.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'REGISTER_RESULT'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/routePath.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/routePath.d.ts deleted file mode 100644 index 91cdf799..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/routePath.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "ROUTE_PATH"; -export interface RoutePathMessageData extends BaseMessageData { - type: typeof MessageName; - result?: string; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/routePath.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/routePath.js deleted file mode 100644 index 62ef855f..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/routePath.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'ROUTE_PATH'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/safeArea.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/safeArea.d.ts deleted file mode 100644 index 3b318646..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/safeArea.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "SAFE_AREA"; -export interface SafeAreaMessageData extends BaseMessageData { - type: typeof MessageName; - result: Result; -} -interface Result { - bottom: number; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/safeArea.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/safeArea.js deleted file mode 100644 index 0d442470..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/safeArea.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'SAFE_AREA'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/sdkConfig.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/sdkConfig.d.ts deleted file mode 100644 index c74b3235..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/sdkConfig.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -import { SdkConfigParams } from '../sdkConfigParams'; -export declare const MessageName: "SDK_CONFIG"; -export interface SdkConfigMessageData extends BaseMessageData { - type: typeof MessageName; - result: SdkConfigParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/sdkConfig.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/sdkConfig.js deleted file mode 100644 index 86abe243..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/sdkConfig.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'SDK_CONFIG'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/serverUrl.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/serverUrl.d.ts deleted file mode 100644 index 96f32397..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/serverUrl.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "SERVER_URL"; -export interface ServerUrlMessageData extends BaseMessageData { - type: typeof MessageName; - result: string; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/serverUrl.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/serverUrl.js deleted file mode 100644 index ba723719..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/serverUrl.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'SERVER_URL'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/termScope.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/termScope.d.ts deleted file mode 100644 index e512042d..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/termScope.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { TermScope } from '../../models'; -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "TERM_SCOPE"; -export interface TermScopeMessageData extends BaseMessageData { - type: typeof MessageName; - result: Array; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/termScope.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/termScope.js deleted file mode 100644 index f3f95a73..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/termScope.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'TERM_SCOPE'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/viewport.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/viewport.d.ts deleted file mode 100644 index e5ddc8bd..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/viewport.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { BaseMessageData } from '../baseMessageData'; -export declare const MessageName: "VIEWPORT"; -export interface ViewportMessageData extends BaseMessageData { - type: typeof MessageName; - params?: never; - result: Result; -} -interface Result { - height: number; - width: number; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/viewport.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/viewport.js deleted file mode 100644 index 059a2ea3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/viewport.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'VIEWPORT'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/mount.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/mount.d.ts deleted file mode 100644 index 3d8b0edd..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/mount.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "MOUNT"; -export interface WidgetMountMessageData extends BaseMessageData { - type: typeof MessageName; - params: { - mount: boolean; - }; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/mount.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/mount.js deleted file mode 100644 index 9deaf3c5..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/mount.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'MOUNT'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openAddPaymentMethod.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openAddPaymentMethod.d.ts deleted file mode 100644 index 0c69f828..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openAddPaymentMethod.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -import { PaymentMethodType } from '../../paymentMethodType'; -export declare const MessageName: "OPEN_ADD_PAYMENT_METHOD"; -export interface OpenAddPaymentMethodMessageData extends BaseMessageData { - type: typeof MessageName; - params: PaymentMethodType; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openAddPaymentMethod.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openAddPaymentMethod.js deleted file mode 100644 index 74026b8c..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openAddPaymentMethod.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'OPEN_ADD_PAYMENT_METHOD'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openCashReceiptSetting.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openCashReceiptSetting.d.ts deleted file mode 100644 index 4d41881a..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openCashReceiptSetting.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "OPEN_CASH_RECEIPT_SETTING"; -export interface OpenCashReceiptSettingMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openCashReceiptSetting.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openCashReceiptSetting.js deleted file mode 100644 index 154570db..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openCashReceiptSetting.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'OPEN_CASH_RECEIPT_SETTING'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openRegister.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openRegister.d.ts deleted file mode 100644 index 1c943938..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openRegister.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "OPEN_REGISTER"; -export interface OpenRegisterMessageData extends BaseMessageData { - type: typeof MessageName; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openRegister.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openRegister.js deleted file mode 100644 index ea9d5b83..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/openRegister.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'OPEN_REGISTER'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/resizeWidget.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/resizeWidget.d.ts deleted file mode 100644 index e2c13fff..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/resizeWidget.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "RESIZE_WIDGET"; -export interface ResizeWidgetMessageData extends BaseMessageData { - type: typeof MessageName; - params: number; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/resizeWidget.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/resizeWidget.js deleted file mode 100644 index 5e23922e..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/resizeWidget.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'RESIZE_WIDGET'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/syncState.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/syncState.d.ts deleted file mode 100644 index 600546be..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/syncState.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -import { WidgetPaymentParams } from '../../widgetPaymentParams'; -export declare const MessageName: "SYNC_STATE"; -export interface SyncStateMessageData extends BaseMessageData { - type: typeof MessageName; - params: WidgetPaymentParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/syncState.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/syncState.js deleted file mode 100644 index 2ff75aad..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/syncState.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'SYNC_STATE'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateAmount.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateAmount.d.ts deleted file mode 100644 index ea69dde3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateAmount.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "UPDATE_AMOUNT"; -export interface UpdateAmountMessageData extends BaseMessageData { - type: typeof MessageName; - params: number; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateAmount.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateAmount.js deleted file mode 100644 index 1db3051c..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateAmount.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'UPDATE_AMOUNT'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateCashReceipt.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateCashReceipt.d.ts deleted file mode 100644 index 36d296f2..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateCashReceipt.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -import { CashReceipt } from '../../paymentParams'; -export declare const MessageName: "UPDATE_CASH_RECEIPT"; -export interface UpdateCashReceiptMessageData extends BaseMessageData { - type: typeof MessageName; - params: CashReceipt; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateCashReceipt.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateCashReceipt.js deleted file mode 100644 index a199767b..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateCashReceipt.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'UPDATE_CASH_RECEIPT'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updatePaymentMethod.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updatePaymentMethod.d.ts deleted file mode 100644 index c40fc13f..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updatePaymentMethod.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Methods } from '../../../apiClient'; -import { BaseMessageData } from '../../baseMessageData'; -export declare const MessageName: "UPDATE_PAYMENT_METHOD"; -export interface UpdatePaymentMethodMessageData extends BaseMessageData { - type: typeof MessageName; - params: Methods; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updatePaymentMethod.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updatePaymentMethod.js deleted file mode 100644 index 51fa3344..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updatePaymentMethod.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'UPDATE_PAYMENT_METHOD'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateWidgetParams.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateWidgetParams.d.ts deleted file mode 100644 index 6909cc2f..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateWidgetParams.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { BaseMessageData } from '../../baseMessageData'; -import { WidgetParams } from '../../widgetParams'; -export declare const MessageName: "UPDATE_WIDGET_PARAMS"; -export interface UpdateWidgetParamsMessageData extends BaseMessageData { - type: typeof MessageName; - params: WidgetParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateWidgetParams.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateWidgetParams.js deleted file mode 100644 index 0f2f9e82..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/updateWidgetParams.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'UPDATE_WIDGET_PARAMS'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/widgetParams.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/widgetParams.d.ts deleted file mode 100644 index d1c74d53..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/widgetParams.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { BaseMessageData } from '../../baseMessageData'; -import type { WidgetParams } from '../../widgetParams'; -export declare const MessageName: "WIDGET_PARAMS"; -export interface WidgetParamsMethodMessageData extends BaseMessageData { - type: typeof MessageName; - result: WidgetParams; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/widgetParams.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/widgetParams.js deleted file mode 100644 index 08dcb385..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/event/widget/widgetParams.js +++ /dev/null @@ -1 +0,0 @@ -export const MessageName = 'WIDGET_PARAMS'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/index.d.ts deleted file mode 100644 index a3d00d34..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @description SDK와 Brandpay 서비스가 서로 bridge로 통신할 때 사용하는 공통 타입입니다. - */ -export * from './commonParams'; -export * from './invokedMethod'; -export * from './message'; -export * from './paymentMethodType'; -export * from './paymentParams'; -export * from './sdkConfigParams'; -export * from './widgetParams'; -export * from './widgetPaymentParams'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/index.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/index.js deleted file mode 100644 index a3d00d34..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/index.js +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @description SDK와 Brandpay 서비스가 서로 bridge로 통신할 때 사용하는 공통 타입입니다. - */ -export * from './commonParams'; -export * from './invokedMethod'; -export * from './message'; -export * from './paymentMethodType'; -export * from './paymentParams'; -export * from './sdkConfigParams'; -export * from './widgetParams'; -export * from './widgetPaymentParams'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/invokedMethod.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/invokedMethod.d.ts deleted file mode 100644 index 2aa2d2c8..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/invokedMethod.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @description - * 가맹점에서 어떤 메소드로 브랜드페이 창을 호출했는지를 알려주기 위한 용도로 invokedMethod 타입을 정의합니다. - * BrandPay 객체가 제공해주는 메소드 이름과 동일합니다. - */ -export declare type InvokedMethod = 'AUTHENTICATE' | 'ADD_PAYMENT_METHOD' | 'REQUEST_PAYMENT' | 'REQUEST_PAYMENT_AUTH' | 'REQUEST_PASSWORD_AUTH' | 'OPEN_SETTINGS' | 'SETUP_PASSWORD' | 'SETUP_ONE_TOUCH_PAY' | 'TOGGLE_ONE_TOUCH_PAY' | 'IS_ONE_TOUCH_PAY_ENABLED' | 'SETUP_BIOMETRIC_AUTH' | 'TOGGLE_BIOMETRIC_AUTH' | 'SETUP_CASH_RECEIPT' | 'GET_PAYMENT_METHODS' | 'IS_BIOMETRIC_AUTH_ENABLED' | 'REQUEST_AGREEMENT' | 'RENDER_PAYMENT_METHODS' | 'RENDER_PAYMENT_METHODS_V2' | 'RENDER_PAYMENT_METHODS_V3' | 'WIDGET_REGISTER' | PluginMethods; -declare type PluginMethods = HyundaiDepartmentStorePluginMethod; -declare type HyundaiDepartmentStorePluginMethod = 'ADD_HYUNDAI_DEPARTMENT_STORE_CARD' | 'REMOVE_HYUNDAI_DEPARTMENT_STORE_CARD' | 'REQUEST_AUTH'; -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/invokedMethod.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/invokedMethod.js deleted file mode 100644 index ec408ecb..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/invokedMethod.js +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @description - * 가맹점에서 어떤 메소드로 브랜드페이 창을 호출했는지를 알려주기 위한 용도로 invokedMethod 타입을 정의합니다. - * BrandPay 객체가 제공해주는 메소드 이름과 동일합니다. - */ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/message.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/message.d.ts deleted file mode 100644 index acd9a28f..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/message.d.ts +++ /dev/null @@ -1,139 +0,0 @@ -interface BaseEvent { - type: EventType; - params?: Params; - result?: Result; -} -declare type EventMapType = Record; -import { CancelMessageData } from './event/cancel'; -import { CommonParamsMessageData } from './event/commonParams'; -import { CompleteMessageData } from './event/complete'; -import { CustomerTokenMessageData } from './event/customerToken'; -import { DisposeBridgeMessageData } from './event/disposeBridge'; -import { InvokedMethodMessageData } from './event/invokedMethod'; -import { KTAlphaShopOCRScanMessageData } from './event/kt-alpha-shop/ktAlphaShopOCRScan'; -import { MountMessageData } from './event/mount'; -import { GetShippingAddressWidgetEnabledMessageData } from './event/payment-widget/getShippingAddressWidgetEnabled'; -import { SyncShippingAddressToBrandpayMessageData } from './event/payment-widget/syncShippingAddressToBrandpay'; -import { PaymentMethodsMessageData } from './event/paymentMethods'; -import { PaymentMethodTypeMessageData } from './event/paymentMethodType'; -import { PaymentParamsMessageData } from './event/paymentParams'; -import { PaymentResultMessageData } from './event/paymentResult'; -import { RegisterResultMessageData } from './event/registerResult'; -import { RegisterRoutePathMessageData } from './event/RegisterRoutePath'; -import { RoutePathMessageData } from './event/routePath'; -import { SafeAreaMessageData } from './event/safeArea'; -import { SdkConfigMessageData } from './event/sdkConfig'; -import { ServerUrlMessageData } from './event/serverUrl'; -import { TermScopeMessageData } from './event/termScope'; -import { ViewportMessageData } from './event/viewport'; -import { WidgetMountMessageData } from './event/widget/mount'; -import { OpenAddPaymentMethodMessageData } from './event/widget/openAddPaymentMethod'; -import { OpenCashReceiptSettingMessageData } from './event/widget/openCashReceiptSetting'; -import { OpenRegisterMessageData } from './event/widget/openRegister'; -import { ResizeWidgetMessageData } from './event/widget/resizeWidget'; -import { SyncStateMessageData } from './event/widget/syncState'; -import { UpdateAmountMessageData } from './event/widget/updateAmount'; -import { UpdateCashReceiptMessageData } from './event/widget/updateCashReceipt'; -import { UpdatePaymentMethodMessageData } from './event/widget/updatePaymentMethod'; -import { UpdateWidgetParamsMessageData } from './event/widget/updateWidgetParams'; -import { WidgetParamsMethodMessageData } from './event/widget/widgetParams'; -/** - * @description - * sdk와 brandpay가 port를 기반으로 통신하는 MessageEvent의 data 타입을 정의합니다. - */ -export interface BridgeMessageData extends EventMapType { - COMMON_PARAMS: CommonParamsMessageData; - VIEWPORT: ViewportMessageData; - PAYMENT_PARAMS: PaymentParamsMessageData; - METHOD_TYPE: PaymentMethodTypeMessageData; - SAFE_AREA: SafeAreaMessageData; - PAYMENT_RESULT: PaymentResultMessageData; - INVOKED_METHOD: InvokedMethodMessageData; - ROUTE_PATH: RoutePathMessageData; - CUSTOMER_TOKEN: CustomerTokenMessageData; - PAYMENT_METHODS: PaymentMethodsMessageData; - COMPLETE: CompleteMessageData; - CANCEL: CancelMessageData; - REGISTER_RESULT: RegisterResultMessageData; - TERM_SCOPE: TermScopeMessageData; - SERVER_URL: ServerUrlMessageData; - DISPOSE_BRIDGE: DisposeBridgeMessageData; - REGISTER_ROUTE_PATH: RegisterRoutePathMessageData; - SDK_CONFIG: SdkConfigMessageData; - KT_ALPHA_SHOP_OCR_SCAN: KTAlphaShopOCRScanMessageData; - MOUNT: MountMessageData; -} -export interface WidgetMessageData extends EventMapType { - OPEN_CASH_RECEIPT_SETTING: OpenCashReceiptSettingMessageData; - OPEN_ADD_PAYMENT_METHOD: OpenAddPaymentMethodMessageData; - WIDGET_PARAMS: WidgetParamsMethodMessageData; - COMMON_PARAMS: CommonParamsMessageData; - VIEWPORT: ViewportMessageData; - SAFE_AREA: SafeAreaMessageData; - INVOKED_METHOD: InvokedMethodMessageData; - RESIZE_WIDGET: ResizeWidgetMessageData; - UPDATE_PAYMENT_METHOD: UpdatePaymentMethodMessageData; - SYNC_STATE: SyncStateMessageData; - UPDATE_CASH_RECEIPT: UpdateCashReceiptMessageData; - SERVER_URL: ServerUrlMessageData; - UPDATE_WIDGET_PARAMS: UpdateWidgetParamsMessageData; - UPDATE_AMOUNT: UpdateAmountMessageData; - DISPOSE_BRIDGE: DisposeBridgeMessageData; - OPEN_REGISTER: OpenRegisterMessageData; - CUSTOMER_TOKEN: CustomerTokenMessageData; - SDK_CONFIG: SdkConfigMessageData; - MOUNT: WidgetMountMessageData; -} -export interface PaymentWidgetMessageData extends EventMapType { - SYNC_SHIPPING_ADDRESS_TO_BRANDPAY: SyncShippingAddressToBrandpayMessageData; - GET_SHIPPING_ADDRESS_WIDGET_ENABLED: GetShippingAddressWidgetEnabledMessageData; -} -export declare const MessageType: { - readonly COMMON_PARAMS: "COMMON_PARAMS"; - readonly PAYMENT_PARAMS: "PAYMENT_PARAMS"; - readonly METHOD_TYPE: "METHOD_TYPE"; - readonly SAFE_AREA: "SAFE_AREA"; - readonly VIEWPORT: "VIEWPORT"; - readonly PAYMENT_RESULT: "PAYMENT_RESULT"; - readonly INVOKED_METHOD: "INVOKED_METHOD"; - readonly ROUTE_PATH: "ROUTE_PATH"; - readonly CUSTOMER_TOKEN: "CUSTOMER_TOKEN"; - readonly PAYMENT_METHODS: "PAYMENT_METHODS"; - readonly COMPLETE: "COMPLETE"; - readonly CANCEL: "CANCEL"; - readonly REGISTER_RESULT: "REGISTER_RESULT"; - readonly TERM_SCOPE: "TERM_SCOPE"; - readonly SERVER_URL: "SERVER_URL"; - readonly DISPOSE_BRIDGE: "DISPOSE_BRIDGE"; - readonly REGISTER_ROUTE_PATH: "REGISTER_ROUTE_PATH"; - readonly SDK_CONFIG: "SDK_CONFIG"; - readonly KT_ALPHA_SHOP_OCR_SCAN: "KT_ALPHA_SHOP_OCR_SCAN"; - readonly MOUNT: "MOUNT"; -}; -export declare const WidgetMessageType: { - readonly OPEN_CASH_RECEIPT_SETTING: "OPEN_CASH_RECEIPT_SETTING"; - readonly OPEN_ADD_PAYMENT_METHOD: "OPEN_ADD_PAYMENT_METHOD"; - readonly WIDGET_PARAMS: "WIDGET_PARAMS"; - readonly COMMON_PARAMS: "COMMON_PARAMS"; - readonly VIEWPORT: "VIEWPORT"; - readonly SAFE_AREA: "SAFE_AREA"; - readonly INVOKED_METHOD: "INVOKED_METHOD"; - readonly RESIZE_WIDGET: "RESIZE_WIDGET"; - readonly UPDATE_PAYMENT_METHOD: "UPDATE_PAYMENT_METHOD"; - readonly SYNC_STATE: "SYNC_STATE"; - readonly UPDATE_CASH_RECEIPT: "UPDATE_CASH_RECEIPT"; - readonly UPDATE_WIDGET_PARAMS: "UPDATE_WIDGET_PARAMS"; - readonly SERVER_URL: "SERVER_URL"; - readonly UPDATE_AMOUNT: "UPDATE_AMOUNT"; - readonly DISPOSE_BRIDGE: "DISPOSE_BRIDGE"; - readonly OPEN_REGISTER: "OPEN_REGISTER"; - readonly CUSTOMER_TOKEN: "CUSTOMER_TOKEN"; - readonly SDK_CONFIG: "SDK_CONFIG"; - readonly MOUNT: "MOUNT"; -}; -export declare const PaymentWidgetMessageType: { - readonly SYNC_SHIPPING_ADDRESS_TO_BRANDPAY: "SYNC_SHIPPING_ADDRESS_TO_BRANDPAY"; - readonly GET_SHIPPING_ADDRESS_WIDGET_ENABLED: "GET_SHIPPING_ADDRESS_WIDGET_ENABLED"; -}; -export declare type MessageType = typeof MessageType[keyof typeof MessageType]; -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/message.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/message.js deleted file mode 100644 index 64fc3bda..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/message.js +++ /dev/null @@ -1,80 +0,0 @@ -import { MessageName as CancelMessageName } from './event/cancel'; -import { MessageName as CommonParamsMessageName, } from './event/commonParams'; -import { MessageName as CompleteMessageName } from './event/complete'; -import { MessageName as CustomerTokenMessageName, } from './event/customerToken'; -import { MessageName as DisposeBridgeMessageName, } from './event/disposeBridge'; -import { MessageName as InvokedMethodMessageName, } from './event/invokedMethod'; -import { MessageName as KTAlphaShopOCRScanMessageName, } from './event/kt-alpha-shop/ktAlphaShopOCRScan'; -import { MessageName as MountMessageName } from './event/mount'; -import { MessageName as GetShippingAddressWidgetEnabledMessageName, } from './event/payment-widget/getShippingAddressWidgetEnabled'; -import { MessageName as SyncShippingAddressToBrandpayMessageName, } from './event/payment-widget/syncShippingAddressToBrandpay'; -import { MessageName as PaymentMethodsMessageName, } from './event/paymentMethods'; -import { MessageName as PaymentMethodTypeMessageName, } from './event/paymentMethodType'; -import { MessageName as PaymentParamsMessageName, } from './event/paymentParams'; -import { MessageName as PaymentResultMessageName, } from './event/paymentResult'; -import { MessageName as RegisterResultMessageName, } from './event/registerResult'; -import { MessageName as RegisterRoutePathMessageName, } from './event/RegisterRoutePath'; -import { MessageName as RoutePathMessageName } from './event/routePath'; -import { MessageName as SafeAreaMessageName } from './event/safeArea'; -import { MessageName as SdkConfigMessageName } from './event/sdkConfig'; -import { MessageName as ServerUrlMessageName } from './event/serverUrl'; -import { MessageName as TermScopeMessageName } from './event/termScope'; -import { MessageName as ViewportMessageName } from './event/viewport'; -import { MessageName as WidgetMountMessageName, } from './event/widget/mount'; -import { MessageName as OpenAddPaymentMethodMessageName, } from './event/widget/openAddPaymentMethod'; -import { MessageName as OpenCashReceiptSettingMessageName, } from './event/widget/openCashReceiptSetting'; -import { MessageName as OpenRegisterMessageName, } from './event/widget/openRegister'; -import { MessageName as ResizeWidgetMessageName, } from './event/widget/resizeWidget'; -import { MessageName as SyncStateMessageName, } from './event/widget/syncState'; -import { MessageName as UpdateAmountMessageName, } from './event/widget/updateAmount'; -import { MessageName as UpdateCashReceiptMessageName, } from './event/widget/updateCashReceipt'; -import { MessageName as UpdatePaymentMethodMessageName, } from './event/widget/updatePaymentMethod'; -import { MessageName as UpdateWidgetParamsMessageName, } from './event/widget/updateWidgetParams'; -import { MessageName as WidgetParamsMessageName, } from './event/widget/widgetParams'; -export const MessageType = { - COMMON_PARAMS: CommonParamsMessageName, - PAYMENT_PARAMS: PaymentParamsMessageName, - METHOD_TYPE: PaymentMethodTypeMessageName, - SAFE_AREA: SafeAreaMessageName, - VIEWPORT: ViewportMessageName, - PAYMENT_RESULT: PaymentResultMessageName, - INVOKED_METHOD: InvokedMethodMessageName, - ROUTE_PATH: RoutePathMessageName, - CUSTOMER_TOKEN: CustomerTokenMessageName, - PAYMENT_METHODS: PaymentMethodsMessageName, - COMPLETE: CompleteMessageName, - CANCEL: CancelMessageName, - REGISTER_RESULT: RegisterResultMessageName, - TERM_SCOPE: TermScopeMessageName, - SERVER_URL: ServerUrlMessageName, - DISPOSE_BRIDGE: DisposeBridgeMessageName, - REGISTER_ROUTE_PATH: RegisterRoutePathMessageName, - SDK_CONFIG: SdkConfigMessageName, - KT_ALPHA_SHOP_OCR_SCAN: KTAlphaShopOCRScanMessageName, - MOUNT: MountMessageName, -}; -export const WidgetMessageType = { - OPEN_CASH_RECEIPT_SETTING: OpenCashReceiptSettingMessageName, - OPEN_ADD_PAYMENT_METHOD: OpenAddPaymentMethodMessageName, - WIDGET_PARAMS: WidgetParamsMessageName, - COMMON_PARAMS: CommonParamsMessageName, - VIEWPORT: ViewportMessageName, - SAFE_AREA: SafeAreaMessageName, - INVOKED_METHOD: InvokedMethodMessageName, - RESIZE_WIDGET: ResizeWidgetMessageName, - UPDATE_PAYMENT_METHOD: UpdatePaymentMethodMessageName, - SYNC_STATE: SyncStateMessageName, - UPDATE_CASH_RECEIPT: UpdateCashReceiptMessageName, - UPDATE_WIDGET_PARAMS: UpdateWidgetParamsMessageName, - SERVER_URL: ServerUrlMessageName, - UPDATE_AMOUNT: UpdateAmountMessageName, - DISPOSE_BRIDGE: DisposeBridgeMessageName, - OPEN_REGISTER: OpenRegisterMessageName, - CUSTOMER_TOKEN: CustomerTokenMessageName, - SDK_CONFIG: SdkConfigMessageName, - MOUNT: WidgetMountMessageName, -}; -export const PaymentWidgetMessageType = { - SYNC_SHIPPING_ADDRESS_TO_BRANDPAY: SyncShippingAddressToBrandpayMessageName, - GET_SHIPPING_ADDRESS_WIDGET_ENABLED: GetShippingAddressWidgetEnabledMessageName, -}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentMethodType.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentMethodType.d.ts deleted file mode 100644 index 4afa24d1..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentMethodType.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @description - * 가맹점에서 넘겨준 결제 수단(paymentMethodType) 타입을 정의합니다. - */ -export declare type PaymentMethodType = '카드' | '계좌' | '미선택'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentMethodType.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentMethodType.js deleted file mode 100644 index 83ea012b..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentMethodType.js +++ /dev/null @@ -1,5 +0,0 @@ -/** - * @description - * 가맹점에서 넘겨준 결제 수단(paymentMethodType) 타입을 정의합니다. - */ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentParams.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentParams.d.ts deleted file mode 100644 index c77ac468..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentParams.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { MethodId, 현금영수증 } from '../apiClient'; -export interface BasePaymentParams { - amount: number; - orderId: string; - orderName: string; - successUrl?: string; - failUrl?: string; - methodId?: MethodId; - customerEmail?: string; - shippingAddress?: string; - taxFreeAmount?: number; - cardInstallmentPlan?: number; - useCardPoint?: boolean; - discountCode?: string; - cashReceipt?: CashReceipt; - userAgent?: string; - productCode?: string; -} -export interface PaymentParamsWithoutUrl extends BasePaymentParams { - successUrl?: never; - failUrl?: never; -} -export interface PaymentParamsWithUrl extends BasePaymentParams { - successUrl: string; - failUrl: string; -} -export interface Cafe24PaymentParams extends PaymentParamsWithoutUrl { - cafe24PaymentKey: string; -} -/** - * @description - * 가맹점에서 결제를 요청할 때, sdk에서 brandpay로 넘겨주는 결제 관련 파라미터입니다. - * @see https://www.notion.so/tossteam/UI-Javascript-5d71203e00f240dda7d7aa0b169e7b96 - */ -export declare type PaymentParams = PaymentParamsWithoutUrl | PaymentParamsWithUrl | Cafe24PaymentParams; -export declare type CashReceipt = 현금영수증; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentParams.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentParams.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/paymentParams.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/sdkConfigParams.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/sdkConfigParams.d.ts deleted file mode 100644 index eaa0f9ee..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/sdkConfigParams.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface SdkConfigParams { - debug: boolean; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/sdkConfigParams.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/sdkConfigParams.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/sdkConfigParams.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetParams.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetParams.d.ts deleted file mode 100644 index db0e8c0f..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetParams.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { MethodId } from '../apiClient'; -import { BrandPayOptions } from './commonParams'; -import { PaymentMethodType } from './paymentMethodType'; -import { PaymentParams } from './paymentParams'; -export declare type WidgetParams = { - clientKey: string; - customerKey: string; - authenticateUrl?: string; - methodType: PaymentMethodType; - methodId?: MethodId; - amount: number; - options: BrandPayOptions; - paymentParams: Partial; - ui?: WidgetUiOptions; -}; -export interface WidgetUiOptions { - promotionSection?: PromotionSection; -} -interface PromotionSection { - summary?: PromotionSummary; - description?: PromotionDescription; -} -interface PromotionSummary { - visible?: boolean; -} -interface PromotionDescription { - visible?: boolean; - defaultOpen?: boolean; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetParams.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetParams.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetParams.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetPaymentParams.d.ts b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetPaymentParams.d.ts deleted file mode 100644 index 7dbc7883..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetPaymentParams.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type { PaymentParams } from './paymentParams'; -export interface WidgetPaymentParams { - amount?: number; - paymentParams?: Pick; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetPaymentParams.js b/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetPaymentParams.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/SDKBridge/widgetPaymentParams.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/cardPromotions/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/cardPromotions/index.d.ts deleted file mode 100644 index 5481e670..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/cardPromotions/index.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CardCompanyCode, CardCompany } from '../methods'; -interface BasePromotionProps { - companyCode: CardCompanyCode; - /** - * companyCode 로 변경 - * @deprecated - * @since v1.7 - * @link {@see https://docs.tosspayments.com/reference/release-note#2022-11-16} - */ - cardCompany: CardCompany; - dueDate: string; - minimumPaymentAmount: number; -} -export interface DiscountCard extends BasePromotionProps { - balance: number; - discountAmount: number; - discountCode: string; - maximumPaymentAmount: number; -} -export interface InterestFreeCard extends BasePromotionProps { - installmentFreeMonths: number[]; -} -export interface PointCard extends BasePromotionProps { -} -export interface InstallmentOption { - [installmentOption: string]: number; -} -export interface CardPromotions { - discountCards: DiscountCard[]; - interestFreeCards: InterestFreeCard[]; - pointCards: PointCard[]; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/cardPromotions/index.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/cardPromotions/index.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/cardPromotions/index.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/cashReceipt/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/cashReceipt/index.d.ts deleted file mode 100644 index 6cba9e85..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/cashReceipt/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface 소득공제_현금영수증 { - type: '소득공제'; - registrationNumberType: 'MOBILE' | 'CASH_RECEIPT_CARD'; - registrationNumber: string; -} -export interface 지출증빙_현금영수증 { - type: '지출증빙'; - registrationNumberType: 'BUSINESS_REGISTRATION' | 'CASH_RECEIPT_CARD'; - registrationNumber: string; -} -export interface 미발행 { - type: '미발행'; - registrationNumberType?: never; - registrationNumber?: never; -} -export declare type 현금영수증 = 소득공제_현금영수증 | 지출증빙_현금영수증 | 미발행; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/cashReceipt/index.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/cashReceipt/index.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/cashReceipt/index.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/identity/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/identity/index.d.ts deleted file mode 100644 index 2e91c82a..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/identity/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export interface Identity { - ci: string; - mobilePhoneNumber: string; - name: string; - rrn: string; - authType: 'NONE' | 'PASSWORD'; - isIdentified: boolean; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/identity/index.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/identity/index.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/identity/index.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/index.d.ts deleted file mode 100644 index fc041634..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @description SDK와 Brandpay 서비스에서 비즈니스 API 를 호출할 때 사용하는 공통 타입입니다. - */ -export * from './cardPromotions'; -export * from './cashReceipt'; -export * from './identity'; -export * from './methods'; -export * from './properties'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/index.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/index.js deleted file mode 100644 index fc041634..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/index.js +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @description SDK와 Brandpay 서비스에서 비즈니스 API 를 호출할 때 사용하는 공통 타입입니다. - */ -export * from './cardPromotions'; -export * from './cashReceipt'; -export * from './identity'; -export * from './methods'; -export * from './properties'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/account.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/account.d.ts deleted file mode 100644 index 2806c940..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/account.d.ts +++ /dev/null @@ -1,141 +0,0 @@ -export declare const BankCodeInKorean: { - readonly 농협: "농협"; - readonly 우리: "우리"; - readonly 신한: "신한"; - readonly 국민: "국민"; - readonly 하나: "하나"; - readonly 씨티: "씨티"; - readonly 기업: "기업"; - readonly 산업: "산업"; - readonly SC제일: "SC제일"; - readonly 대구: "대구"; - readonly 부산: "부산"; - readonly 전북: "전북"; - readonly 경남: "경남"; - readonly 제주: "제주"; - readonly 광주: "광주"; - readonly 새마을: "새마을"; - readonly 수협: "수협"; - readonly 신협: "신협"; - readonly 우체국: "우체국"; - readonly 케이: "케이"; - readonly 카카오: "카카오"; - readonly 저축: "저축"; - readonly 산림: "산림"; - readonly SBI: "SBI"; - readonly 토스: "토스"; -}; -export declare const BankCodeInEnglish: { - readonly NONGHYEOP: "NONGHYEOP"; - readonly WOORI: "WOORI"; - readonly SHINHAN: "SHINHAN"; - readonly KOOKMIN: "KOOKMIN"; - readonly HANA: "HANA"; - readonly CITI: "CITI"; - readonly IBK: "IBK"; - readonly KDBBANK: "KDBBANK"; - readonly SC: "SC"; - readonly DAEGUBANK: "DAEGUBANK"; - readonly BUSANBANK: "BUSANBANK"; - readonly JEONBUKBANK: "JEONBUKBANK"; - readonly KYONGNAMBANK: "KYONGNAMBANK"; - readonly JEJUBANK: "JEJUBANK"; - readonly GWANGJUBANK: "GWANGJUBANK"; - readonly SAEMAUL: "SAEMAUL"; - readonly SUHYEOP: "SUHYEOP"; - readonly SHINHYEOP: "SHINHYEOP"; - readonly POST: "POST"; - readonly KBANK: "KBANK"; - readonly KAKAOBANK: "KAKAOBANK"; - readonly SAVINGBANK: "SAVINGBANK"; - readonly SANLIM: "SANLIM"; - readonly TOSSBANK: "TOSSBANK"; -}; -export declare const BankCodeInNumber: { - readonly 39: "경남"; - readonly 34: "광주"; - readonly "06": "국민"; - readonly "03": "기업"; - readonly 11: "농협"; - readonly 31: "대구"; - readonly 32: "부산"; - readonly "02": "산업"; - readonly 45: "새마을"; - readonly 64: "산림"; - readonly "07": "수협"; - readonly 88: "신한"; - readonly 48: "신협"; - readonly 27: "씨티"; - readonly 20: "우리"; - readonly 71: "우체국"; - readonly 50: "저축"; - readonly 37: "전북"; - readonly 35: "제주"; - readonly 90: "카카오"; - readonly 89: "케이"; - readonly 92: "토스"; - readonly 81: "하나"; - readonly 23: "SC제일"; -}; -export declare const BankCode: { - readonly NONGHYEOP: "NONGHYEOP"; - readonly WOORI: "WOORI"; - readonly SHINHAN: "SHINHAN"; - readonly KOOKMIN: "KOOKMIN"; - readonly HANA: "HANA"; - readonly CITI: "CITI"; - readonly IBK: "IBK"; - readonly KDBBANK: "KDBBANK"; - readonly SC: "SC"; - readonly DAEGUBANK: "DAEGUBANK"; - readonly BUSANBANK: "BUSANBANK"; - readonly JEONBUKBANK: "JEONBUKBANK"; - readonly KYONGNAMBANK: "KYONGNAMBANK"; - readonly JEJUBANK: "JEJUBANK"; - readonly GWANGJUBANK: "GWANGJUBANK"; - readonly SAEMAUL: "SAEMAUL"; - readonly SUHYEOP: "SUHYEOP"; - readonly SHINHYEOP: "SHINHYEOP"; - readonly POST: "POST"; - readonly KBANK: "KBANK"; - readonly KAKAOBANK: "KAKAOBANK"; - readonly SAVINGBANK: "SAVINGBANK"; - readonly SANLIM: "SANLIM"; - readonly TOSSBANK: "TOSSBANK"; - readonly 농협: "농협"; - readonly 우리: "우리"; - readonly 신한: "신한"; - readonly 국민: "국민"; - readonly 하나: "하나"; - readonly 씨티: "씨티"; - readonly 기업: "기업"; - readonly 산업: "산업"; - readonly SC제일: "SC제일"; - readonly 대구: "대구"; - readonly 부산: "부산"; - readonly 전북: "전북"; - readonly 경남: "경남"; - readonly 제주: "제주"; - readonly 광주: "광주"; - readonly 새마을: "새마을"; - readonly 수협: "수협"; - readonly 신협: "신협"; - readonly 우체국: "우체국"; - readonly 케이: "케이"; - readonly 카카오: "카카오"; - readonly 저축: "저축"; - readonly 산림: "산림"; - readonly SBI: "SBI"; - readonly 토스: "토스"; -}; -export declare type BankCode = keyof typeof BankCode; -export declare type BankCodeInKorean = keyof typeof BankCodeInKorean; -export declare type BankCodeInEnglish = keyof typeof BankCodeInEnglish; -export declare type BankCodeInNumber = keyof typeof BankCodeInNumber; -export interface Account { - id: BankCodeInNumber; - fullName: string; - icon: string; - iconUrl: string; - code: BankCode; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/account.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/account.js deleted file mode 100644 index 16cb2991..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/account.js +++ /dev/null @@ -1,80 +0,0 @@ -export const BankCodeInKorean = { - 농협: `농협`, - 우리: `우리`, - 신한: `신한`, - 국민: `국민`, - 하나: `하나`, - 씨티: `씨티`, - 기업: `기업`, - 산업: `산업`, - SC제일: `SC제일`, - 대구: `대구`, - 부산: `부산`, - 전북: `전북`, - 경남: `경남`, - 제주: `제주`, - 광주: `광주`, - 새마을: `새마을`, - 수협: `수협`, - 신협: `신협`, - 우체국: `우체국`, - 케이: `케이`, - 카카오: `카카오`, - 저축: `저축`, - 산림: `산림`, - SBI: `SBI`, - 토스: `토스`, -}; -export const BankCodeInEnglish = { - NONGHYEOP: 'NONGHYEOP', - WOORI: 'WOORI', - SHINHAN: 'SHINHAN', - KOOKMIN: 'KOOKMIN', - HANA: 'HANA', - CITI: 'CITI', - IBK: 'IBK', - KDBBANK: 'KDBBANK', - SC: 'SC', - DAEGUBANK: 'DAEGUBANK', - BUSANBANK: 'BUSANBANK', - JEONBUKBANK: 'JEONBUKBANK', - KYONGNAMBANK: 'KYONGNAMBANK', - JEJUBANK: 'JEJUBANK', - GWANGJUBANK: 'GWANGJUBANK', - SAEMAUL: 'SAEMAUL', - SUHYEOP: 'SUHYEOP', - SHINHYEOP: 'SHINHYEOP', - POST: 'POST', - KBANK: 'KBANK', - KAKAOBANK: 'KAKAOBANK', - SAVINGBANK: 'SAVINGBANK', - SANLIM: 'SANLIM', - TOSSBANK: 'TOSSBANK', -}; -export const BankCodeInNumber = { - ['39']: '경남', - ['34']: '광주', - ['06']: '국민', - ['03']: '기업', - ['11']: '농협', - ['31']: '대구', - ['32']: '부산', - ['02']: '산업', - ['45']: '새마을', - ['64']: '산림', - ['07']: '수협', - ['88']: '신한', - ['48']: '신협', - ['27']: '씨티', - ['20']: '우리', - ['71']: '우체국', - ['50']: '저축', - ['37']: '전북', - ['35']: '제주', - ['90']: '카카오', - ['89']: '케이', - ['92']: '토스', - ['81']: '하나', - ['23']: 'SC제일', -}; -export const BankCode = Object.assign(Object.assign({}, BankCodeInKorean), BankCodeInEnglish); diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/card.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/card.d.ts deleted file mode 100644 index 074f7101..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/card.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export interface CreditCard { - cardNumber1: string; - cardNumber2: string; - cardNumber3: string; - cardNumber4: string; - cardExpirationYear: string; - cardExpirationMonth: string; - cardPassword: string; - cardCvc: string; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/card.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/card.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/card.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/cardInfo.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/cardInfo.d.ts deleted file mode 100644 index 2160ddec..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/cardInfo.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -export declare const CardType: { - readonly 신용: "신용"; - readonly 체크: "체크"; -}; -export declare const CardCompany: { - readonly 신한: "신한"; - readonly 현대: "현대"; - readonly 삼성: "삼성"; - readonly 우리: "우리"; - readonly 국민: "국민"; - readonly 롯데: "롯데"; - readonly 농협: "농협"; - readonly 하나: "하나"; - readonly BC: "BC"; - readonly 수협: "수협"; - readonly 전북: "전북"; - readonly 제주: "제주"; - readonly 광주: "광주"; - readonly 신협: "신협"; - readonly 씨티: "씨티"; -}; -export declare const CardCompanyCode: { - readonly 46: "광주은행"; - readonly 11: "KB국민카드"; - readonly 91: "NH농협카드"; - readonly 71: "롯데카드"; - readonly 30: "KDB산업은행"; - readonly 51: "삼성카드"; - readonly 38: "새마을금고"; - readonly 34: "Sh수협은행"; - readonly 41: "신한카드"; - readonly 62: "신협"; - readonly 36: "씨티카드"; - readonly 33: "우리카드"; - readonly 37: "우체국예금보험"; - readonly 39: "저축은행중앙회"; - readonly 35: "전북은행"; - readonly 42: "제주은행"; - readonly 15: "카카오뱅크"; - readonly "3A": "케이뱅크"; - readonly 24: "토스뱅크"; - readonly 21: "하나카드"; - readonly 61: "현대카드"; - readonly 31: "비씨카드"; -}; -export declare type CardCompany = keyof typeof CardCompany; -export declare type CardCompanyCode = keyof typeof CardCompanyCode; -export interface CardInfo { - cardCode: CardCompanyCode; - /** - * cardCode 로 변경 - * @deprecated - * @since v1.7 - * @link {@see https://docs.tosspayments.com/reference/release-note#2022-11-16} - */ - cardCompany: CardCompany; - /** - * @description - * 카드번호의 길이. 회사에 따라 다를 수 있음 (AMEX의 경우 15자리) - */ - cardNumberDigit: number; - cardType: '신용' | '체크'; - cvcDigit: number; - cardName: string; - issueCompany: string; - ownerType: '개인' | '법인' | '미확인'; - passwordDigit: number; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/cardInfo.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/cardInfo.js deleted file mode 100644 index bcf0f541..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/cardInfo.js +++ /dev/null @@ -1,45 +0,0 @@ -export const CardType = { - 신용: `신용`, - 체크: `체크`, -}; -export const CardCompany = { - 신한: `신한`, - 현대: `현대`, - 삼성: `삼성`, - 우리: `우리`, - 국민: `국민`, - 롯데: `롯데`, - 농협: `농협`, - 하나: `하나`, - BC: `BC`, - 수협: `수협`, - 전북: `전북`, - 제주: `제주`, - 광주: `광주`, - 신협: `신협`, - 씨티: `씨티`, -}; -export const CardCompanyCode = { - ['46']: '광주은행', - ['11']: 'KB국민카드', - ['91']: 'NH농협카드', - ['71']: '롯데카드', - ['30']: 'KDB산업은행', - ['51']: '삼성카드', - ['38']: '새마을금고', - ['34']: 'Sh수협은행', - ['41']: '신한카드', - ['62']: '신협', - ['36']: '씨티카드', - ['33']: '우리카드', - ['37']: '우체국예금보험', - ['39']: '저축은행중앙회', - ['35']: '전북은행', - ['42']: '제주은행', - ['15']: '카카오뱅크', - ['3A']: '케이뱅크', - ['24']: '토스뱅크', - ['21']: '하나카드', - ['61']: '현대카드', - ['31']: '비씨카드', -}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/index.d.ts deleted file mode 100644 index 57fda94b..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './cardInfo'; -export * from './account'; -export * from './method'; -export * from './card'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/index.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/index.js deleted file mode 100644 index 57fda94b..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from './cardInfo'; -export * from './account'; -export * from './method'; -export * from './card'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/method.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/method.d.ts deleted file mode 100644 index 70e3d9ed..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/method.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { Account, BankCode, BankCodeInNumber } from './account'; -import { CardCompanyCode, CardInfo } from './cardInfo'; -declare type Icon = 'icn' | 'icon'; -declare type Color = `#${string}`; -export declare type MethodId = string; -export interface Method { - id: MethodId; - alias?: string | null; - registeredAt: string; - status: 'ENABLED' | 'DISABLED'; - isAvailable: boolean; - /** - * @deprecated - */ - icon: string; - /** - * @deprecated - */ - iconUrl: string; - icons: { - normal: { - name: `${Icon}-bank-${string}`; - url: string; - }; - fill: { - name: `${Icon}-bank-fill-${string}`; - url: string; - }; - square: { - name: `${Icon}-bank-square-${string}`; - url: string; - }; - }; - color: { - background: Color; - text: Color; - }; -} -export interface CardMethod extends Pick, Omit { - id: string; - cardNumber: string; - cardName: string; - cardImgUrl?: string; - acquirerCode: CardCompanyCode; - issuerCode: CardCompanyCode; -} -export interface AccountMethod extends Pick, Omit { - id: string; - accountNumber: string; - accountName: string; - /** - * bankCode 로 변경 - * @deprecated - * @since v1.7 - * @link {@see https://docs.tosspayments.com/reference/release-note#2022-11-16} - */ - bank: BankCode; - bankCode: BankCodeInNumber; -} -export declare type PaymentMethod = CardMethod | AccountMethod; -export interface Methods { - cards: CardMethod[]; - accounts: AccountMethod[]; - selectedMethodId: MethodId | undefined; -} -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/method.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/method.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/methods/method.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/properties/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/apiClient/properties/index.d.ts deleted file mode 100644 index c2a3a72f..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/properties/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Properties { - useCustomerOneTouch: boolean; - useMerchantOneTouch: boolean; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/apiClient/properties/index.js b/node_modules/@tosspayments/brandpay-types/esm/apiClient/properties/index.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/apiClient/properties/index.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/index.d.ts deleted file mode 100644 index 3cc1b2d2..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './apiClient'; -export * from './methods'; -export * from './models'; -export * from './SDKBridge'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/index.js b/node_modules/@tosspayments/brandpay-types/esm/index.js deleted file mode 100644 index 3cc1b2d2..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from './apiClient'; -export * from './methods'; -export * from './models'; -export * from './SDKBridge'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/methods/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/methods/index.d.ts deleted file mode 100644 index 34fe7c97..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/methods/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './requestPayments'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/methods/index.js b/node_modules/@tosspayments/brandpay-types/esm/methods/index.js deleted file mode 100644 index 34fe7c97..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/methods/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from './requestPayments'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/methods/requestPayments.d.ts b/node_modules/@tosspayments/brandpay-types/esm/methods/requestPayments.d.ts deleted file mode 100644 index 37935bec..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/methods/requestPayments.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { Cafe24PaymentParams, PaymentParams, PaymentParamsWithoutUrl, PaymentParamsWithUrl, WidgetPaymentParams } from '../SDKBridge'; -export interface RequestPaymentParmasWithUrl extends Omit { - amount?: number; - widget?: { - __payment__params__: WidgetPaymentParams; - }; -} -export interface RequestPaymentParmasWithoutUrl extends Omit { - amount?: number; - widget?: { - __payment__params__: WidgetPaymentParams; - }; -} -export interface Cafe24RequestPaymentParmasWithoutUrl extends Omit { - amount?: number; - widget?: { - __payment__params__: WidgetPaymentParams; - }; -} -export interface RequestPaymentParams extends Omit { - amount?: number; - widget?: { - __payment__params__: WidgetPaymentParams; - }; -} diff --git a/node_modules/@tosspayments/brandpay-types/esm/methods/requestPayments.js b/node_modules/@tosspayments/brandpay-types/esm/methods/requestPayments.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/methods/requestPayments.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/models/Carrier.d.ts b/node_modules/@tosspayments/brandpay-types/esm/models/Carrier.d.ts deleted file mode 100644 index 7bbfa340..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/models/Carrier.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare const carrier: { - readonly SKT: "SKT"; - readonly KT: "KT"; - readonly 'LG U+': "LGU"; - readonly 'SKT \uC54C\uB730\uD3F0': "SKT_MVNO"; - readonly 'KT \uC54C\uB730\uD3F0': "KT_MVNO"; - readonly 'LG U+ \uC54C\uB730\uD3F0': "LGU_MVNO"; -}; -export declare type Carrier = typeof carrier; diff --git a/node_modules/@tosspayments/brandpay-types/esm/models/Carrier.js b/node_modules/@tosspayments/brandpay-types/esm/models/Carrier.js deleted file mode 100644 index c12d5b50..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/models/Carrier.js +++ /dev/null @@ -1,8 +0,0 @@ -export const carrier = { - SKT: 'SKT', - KT: 'KT', - 'LG U+': 'LGU', - 'SKT 알뜰폰': 'SKT_MVNO', - 'KT 알뜰폰': 'KT_MVNO', - 'LG U+ 알뜰폰': 'LGU_MVNO', -}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/models/Terms.d.ts b/node_modules/@tosspayments/brandpay-types/esm/models/Terms.d.ts deleted file mode 100644 index 6c242166..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/models/Terms.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare const TermScope: { - readonly 회원가입: "REGISTER"; - readonly 빌링: "BILLING"; - readonly 카드: "CARD"; - readonly 계좌: "ACCOUNT"; -}; -export declare type TermScope = typeof TermScope; diff --git a/node_modules/@tosspayments/brandpay-types/esm/models/Terms.js b/node_modules/@tosspayments/brandpay-types/esm/models/Terms.js deleted file mode 100644 index 3096363e..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/models/Terms.js +++ /dev/null @@ -1,6 +0,0 @@ -export const TermScope = { - 회원가입: `REGISTER`, - 빌링: `BILLING`, - 카드: `CARD`, - 계좌: `ACCOUNT`, -}; diff --git a/node_modules/@tosspayments/brandpay-types/esm/models/index.d.ts b/node_modules/@tosspayments/brandpay-types/esm/models/index.d.ts deleted file mode 100644 index a1d1e599..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/models/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './Carrier'; -export * from './Terms'; diff --git a/node_modules/@tosspayments/brandpay-types/esm/models/index.js b/node_modules/@tosspayments/brandpay-types/esm/models/index.js deleted file mode 100644 index a1d1e599..00000000 --- a/node_modules/@tosspayments/brandpay-types/esm/models/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from './Carrier'; -export * from './Terms'; diff --git a/node_modules/@tosspayments/brandpay-types/package.json b/node_modules/@tosspayments/brandpay-types/package.json deleted file mode 100644 index 248e44c7..00000000 --- a/node_modules/@tosspayments/brandpay-types/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@tosspayments/brandpay-types", - "version": "0.2.6", - "description": "Types used in BrandPay SDK and Services", - "license": "MIT", - "main": "dist/index.js", - "scripts": { - "lint": "yarn run -T eslint 'src/**/*.{js,jsx,ts,tsx}'", - "lint:fix": "yarn lint --fix", - "typecheck": "tsc --noEmit", - "build": "tsc -p tsconfig.json && tsc -p tsconfig.esm.json", - "test": "echo \"no test specified.\"", - "prepack": "yarn build", - "generate-types": "echo \"no generate-types specified.\"" - }, - "files": [ - "dist", - "esm" - ], - "devDependencies": { - "@babel/runtime": "^7.22.11", - "typescript": "^4.1.0" - }, - "peerDependencies": { - "typescript": "^4.1.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - }, - "publishConfig": { - "access": "public", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "module": "esm/index.js" - }, - "module": "esm/index.js", - "types": "dist/index.d.ts" -} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-sdk/CHANGELOG.md b/node_modules/@tosspayments/payment-widget-sdk/CHANGELOG.md deleted file mode 100644 index f0a50dbe..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/CHANGELOG.md +++ /dev/null @@ -1,296 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -## [0.10.2](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.10.1...@tosspayments/payment-widget-sdk@0.10.2) (2023-12-18) - - -### Bug Fixes - -* **payment-widget-sdk:** 타입 정보 버전업 ([#91](https://github.com/tosspayments/browser-sdk/issues/91)) ([07c85e2](https://github.com/tosspayments/browser-sdk/commit/07c85e28c95d0ee4867dbf90ed482d8610ca6755)) - - - - - -## [0.10.1](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.10.0...@tosspayments/payment-widget-sdk@0.10.1) (2023-12-12) - -**Note:** Version bump only for package @tosspayments/payment-widget-sdk - - - - - -# [0.10.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.9.3...@tosspayments/payment-widget-sdk@0.10.0) (2023-10-16) - - -### Bug Fixes - -* **payment-widget-sdk:** 타입 배포 트리거 ([#78](https://github.com/tosspayments/browser-sdk/issues/78)) ([f6c7815](https://github.com/tosspayments/browser-sdk/commit/f6c78159ddb2568c2b242ca2563314f3d2acdf4d)) - - -### Features - -* **payment-widget-sdk:** renderAgreement options param ([#76](https://github.com/tosspayments/browser-sdk/issues/76)) ([ea621dd](https://github.com/tosspayments/browser-sdk/commit/ea621ddf6c60b643c393f84e6ad7fa9ed98bcd92)) -* **payment-widget-sdk:** 타입 배포 트리거 ([#81](https://github.com/tosspayments/browser-sdk/issues/81)) ([5730c4a](https://github.com/tosspayments/browser-sdk/commit/5730c4a891e1711f27d2cab1abb9d88f15031c9f)) -* **payment-widget-service:** 결제위젯 타입 배포 트리거 ([#79](https://github.com/tosspayments/browser-sdk/issues/79)) ([31c358d](https://github.com/tosspayments/browser-sdk/commit/31c358daf694d621cb89606f6dcace030cec79d2)) - - -### Reverts - -* Revert "chore(release): publish [skip ci]" ([c265212](https://github.com/tosspayments/browser-sdk/commit/c265212f292a14319d24645d45a6c41b91c6b7e2)) - - - - - -## [0.9.3](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.9.2...@tosspayments/payment-widget-sdk@0.9.3) (2023-08-29) - - -### Bug Fixes - -* **payment-widget-sdk:** 의존한 __types 패키지 버전 업 ([#71](https://github.com/tosspayments/browser-sdk/issues/71)) ([08b88ee](https://github.com/tosspayments/browser-sdk/commit/08b88eed7518c521f4253dca85b66edc020b1c40)) - - - - - -## [0.9.2](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.9.1...@tosspayments/payment-widget-sdk@0.9.2) (2023-08-21) - - -### Bug Fixes - -* **payment-widget-sdk:** 결제위젯 타입 버전 업 ([#67](https://github.com/tosspayments/browser-sdk/issues/67)) ([3220aac](https://github.com/tosspayments/browser-sdk/commit/3220aac1193d0e18fc1b394bd40a930dad6f6dea)) - - - - - -## [0.9.1](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.9.0...@tosspayments/payment-widget-sdk@0.9.1) (2023-07-14) - - -### Bug Fixes - -* **payment-widget-sdk:** requestPayment 파라미터 타입 수정 ([#64](https://github.com/tosspayments/browser-sdk/issues/64)) ([9e09362](https://github.com/tosspayments/browser-sdk/commit/9e093620894515090a599d4a6082ef936704c60c)) - - - - - -# [0.9.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.8.2...@tosspayments/payment-widget-sdk@0.9.0) (2023-07-04) - - -### Features - -* 위젯 타입 버전 올림 ([#62](https://github.com/tosspayments/browser-sdk/issues/62)) ([5194a1e](https://github.com/tosspayments/browser-sdk/commit/5194a1e4d78c369a31a618bca0cbc51fdf8d2526)) - - - - - -## [0.8.2](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.8.1...@tosspayments/payment-widget-sdk@0.8.2) (2023-06-22) - - -### Bug Fixes - -* **payment-widget-sdk:** 결제위젯 payment, brandpay type 의존성 추가 ([#61](https://github.com/tosspayments/browser-sdk/issues/61)) ([93ef161](https://github.com/tosspayments/browser-sdk/commit/93ef161ad7f4224b3bd005e5f8ae77dedc7bc861)) - - - - - -## [0.8.1](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.8.0...@tosspayments/payment-widget-sdk@0.8.1) (2023-06-22) - - -### Bug Fixes - -* **payment-widget-sdk:** currency 타입 수정 ([#60](https://github.com/tosspayments/browser-sdk/issues/60)) ([f4e0a7b](https://github.com/tosspayments/browser-sdk/commit/f4e0a7b893c76d4c3aadf423e456fd2ecd8d5100)) - - - - - -# [0.8.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.7.3...@tosspayments/payment-widget-sdk@0.8.0) (2023-05-31) - - -### Features - -* **payment-widget-sdk:** 결제위젯 renderPaymentMethods 인터페이스 수정 ([#57](https://github.com/tosspayments/browser-sdk/issues/57)) ([ee9eaed](https://github.com/tosspayments/browser-sdk/commit/ee9eaed10fda35cb4bb54fd725fa6442659ffb50)) - - - - - -## [0.7.3](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.7.2...@tosspayments/payment-widget-sdk@0.7.3) (2023-05-19) - - -### Bug Fixes - -* **payment-widget-sdk:** 타입 버전 업 ([#56](https://github.com/tosspayments/browser-sdk/issues/56)) ([cc9447c](https://github.com/tosspayments/browser-sdk/commit/cc9447ca7de36c9814988597c575b1ee5fc0688e)) - - - - - -## [0.7.2](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.7.1...@tosspayments/payment-widget-sdk@0.7.2) (2023-05-17) - - -### Bug Fixes - -* **payment-widget-sdk:** 타입 버전 업 ([#55](https://github.com/tosspayments/browser-sdk/issues/55)) ([2fb783f](https://github.com/tosspayments/browser-sdk/commit/2fb783fd8f1820ebf2830577a25d3c483604c6d6)) - - - - - -## [0.7.1](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.7.0...@tosspayments/payment-widget-sdk@0.7.1) (2023-03-29) - - -### Bug Fixes - -* 결제위젯 options 타입이 required인 문제 수정 ([85c80e0](https://github.com/tosspayments/browser-sdk/commit/85c80e0546b37f8a64fc73b5ba21a3e68c0a0279)) - - - - - -# [0.7.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.5.6...@tosspayments/payment-widget-sdk@0.7.0) (2023-03-20) - - -### Features - -* **payment-widget-sdk:** 결제위젯 옵션 추가, 의존성 추가 ([#50](https://github.com/tosspayments/browser-sdk/issues/50)) ([5b429c7](https://github.com/tosspayments/browser-sdk/commit/5b429c7b18c9daefb9999b4b0fee8aa795264023)) -* **payment-widget-sdk:** 결제위젯 옵션 추가, 의존성 추가 ([#52](https://github.com/tosspayments/browser-sdk/issues/52)) ([46ed31e](https://github.com/tosspayments/browser-sdk/commit/46ed31ef9ef76e66ae4e45992c100e1e542a7deb)) - - - - - -# [0.6.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.5.6...@tosspayments/payment-widget-sdk@0.6.0) (2023-03-20) - - -### Features - -* **payment-widget-sdk:** 결제위젯 옵션 추가, 의존성 추가 ([#50](https://github.com/tosspayments/browser-sdk/issues/50)) ([5b429c7](https://github.com/tosspayments/browser-sdk/commit/5b429c7b18c9daefb9999b4b0fee8aa795264023)) - - - - - -## [0.5.6](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.6.0...@tosspayments/payment-widget-sdk@0.5.6) (2023-03-15) - - -### Bug Fixes - -* src로 스크립트 찾아서 clear ([#49](https://github.com/tosspayments/browser-sdk/issues/49)) ([966fd30](https://github.com/tosspayments/browser-sdk/commit/966fd301cd5344cbf4a110d2874d1cdf9306c4d2)) - - - - - -## [0.5.5](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.5.4...@tosspayments/payment-widget-sdk@0.5.5) (2023-03-08) - - -### Bug Fixes - -* **payment-widget-sdk:** 타입 버전 업 ([#47](https://github.com/tosspayments/browser-sdk/issues/47)) ([c2f6a09](https://github.com/tosspayments/browser-sdk/commit/c2f6a0908958e6b0eca424732300c64bd3cc29b3)) - - - - - -## [0.5.4](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.5.3...@tosspayments/payment-widget-sdk@0.5.4) (2023-02-01) - - -### Bug Fixes - -* **payment-widget-sdk:** 타입 버전 업 ([#44](https://github.com/tosspayments/browser-sdk/issues/44)) ([f27dbfb](https://github.com/tosspayments/browser-sdk/commit/f27dbfb61b371d0805dd612f7a747c18fbc8c00d)) - - - - - -## [0.5.3](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.5.2...@tosspayments/payment-widget-sdk@0.5.3) (2023-02-01) - - -### Bug Fixes - -* **payment-widget-sdk:** 타입 버전 업 ([#43](https://github.com/tosspayments/browser-sdk/issues/43)) ([900bb15](https://github.com/tosspayments/browser-sdk/commit/900bb15e5b2fd6fddeac01948c9f59ce03d97fe3)) - - - - - -## [0.5.2](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.5.1...@tosspayments/payment-widget-sdk@0.5.2) (2023-01-18) - - -### Bug Fixes - -* **payment-widget-sdk:** 타입 버전 업 ([#38](https://github.com/tosspayments/browser-sdk/issues/38)) ([b388268](https://github.com/tosspayments/browser-sdk/commit/b388268f5247e3c374bdf5ed7ae4179f8ecea421)) - - - - - -## [0.5.1](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.4.1...@tosspayments/payment-widget-sdk@0.5.1) (2023-01-17) - - -### Bug Fixes - -* **payment-widget-sdk:** 결제위젯 타이핑 버전 업 ([#36](https://github.com/tosspayments/browser-sdk/issues/36)) ([da98529](https://github.com/tosspayments/browser-sdk/commit/da98529becacc04ec7d020167b142845ff1c561d)) - - - - - -## [0.4.1](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.5.0...@tosspayments/payment-widget-sdk@0.4.1) (2023-01-17) - - -### Bug Fixes - -* **payment-widget-sdk:** 타입 버전 업 ([#35](https://github.com/tosspayments/browser-sdk/issues/35)) ([c7747b8](https://github.com/tosspayments/browser-sdk/commit/c7747b853a21c68b4060ae147267a2d778eea495)) - - - - - -# [0.5.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.4.0...@tosspayments/payment-widget-sdk@0.5.0) (2022-12-22) - - -### Features - -* **payment-widget-sdk:** 결제위젯 타이핑 타입업 ([#33](https://github.com/tosspayments/browser-sdk/issues/33)) ([5f5c8d2](https://github.com/tosspayments/browser-sdk/commit/5f5c8d2c29642bb289a0febe2ac1beffd909573b)) - - - - - -# [0.4.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.3.0...@tosspayments/payment-widget-sdk@0.4.0) (2022-11-02) - - -### Features - -* **payment-widget-sdk:** ANONYMOUS 사용할 수 있도록 추가 ([69b8a39](https://github.com/tosspayments/browser-sdk/commit/69b8a3954eaf1c1fb8bed05e24a8930f4e8c748f)) - - - - - -# [0.3.0](https://github.com/tosspayments/browser-sdk/compare/@tosspayments/payment-widget-sdk@0.1.0...@tosspayments/payment-widget-sdk@0.3.0) (2022-10-21) - - -### Features - -* **payment-widget-sdk:** 결제위젯 SDK 버전 업데이트 ([66ceaca](https://github.com/tosspayments/browser-sdk/commit/66ceacab2bfacdb73409c9130185f117a5686dc0)) - - - - - -# 0.1.0 (2022-10-04) - - -### Features - -* **payment-widget-sdk:** 결제위젯 SDK 추가 ([92988fa](https://github.com/tosspayments/browser-sdk/commit/92988fad6055d5eb9db9400a1194086f80184ed4)) diff --git a/node_modules/@tosspayments/payment-widget-sdk/LICENSE b/node_modules/@tosspayments/payment-widget-sdk/LICENSE deleted file mode 100644 index fbef15ec..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/LICENSE +++ /dev/null @@ -1,7 +0,0 @@ -Copyright 2020 Toss Payments Co., Ltd. - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/@tosspayments/payment-widget-sdk/README.md b/node_modules/@tosspayments/payment-widget-sdk/README.md deleted file mode 100644 index 82f976c3..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/README.md +++ /dev/null @@ -1,7 +0,0 @@ -# Toss Payments PaymentWidget SDK - -토스페이먼츠 결제위젯을 위한 JavaScript SDK 입니다. - -```bash -npm install @tosspayments/payment-widget-sdk -``` diff --git a/node_modules/@tosspayments/payment-widget-sdk/dist/index.cjs.js b/node_modules/@tosspayments/payment-widget-sdk/dist/index.cjs.js deleted file mode 100644 index cd0a4083..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/dist/index.cjs.js +++ /dev/null @@ -1,72 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -var cachedPromise; -function loadScript(src, namespace) { - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var existingElement = document.querySelector("[src=\"".concat(src, "\"]")); - - if (existingElement != null && cachedPromise !== undefined) { - return cachedPromise; - } - - if (existingElement != null && getNamespace(namespace) !== undefined) { - return Promise.resolve(getNamespace(namespace)); - } - - var script = document.createElement('script'); - script.src = src; - - if (options.priority !== undefined) { - script.fetchPriority = options.priority; - } - - cachedPromise = new Promise(function (resolve, reject) { - document.head.appendChild(script); - window.addEventListener("TossPayments:initialize:".concat(namespace), function () { - if (getNamespace(namespace) !== undefined) { - resolve(getNamespace(namespace)); - } else { - reject(new Error("[TossPayments SDK] Failed to load script: [".concat(src, "]"))); - } - }); - }); - return cachedPromise; -} - -function getNamespace(name) { - return window[name]; -} - -var SCRIPT_URL = 'https://js.tosspayments.com/v1/payment-widget'; - -function loadPaymentWidget(clientKey, customerKey, options) { - var loadOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - var _loadOptions$src = loadOptions.src, - src = _loadOptions$src === void 0 ? SCRIPT_URL : _loadOptions$src; - - if (typeof window === 'undefined') { - // XXX(@HyunSeob): SSR할 때 생성자가 사용되는 경우 에러를 발생시키지 않는대신 정상적인 인스턴스를 반환하지 않는다. - return Promise.resolve({}); - } // regenerator-runtime 의존성을 없애기 위해 `async` 키워드를 사용하지 않는다 - - - return loadScript(src, 'PaymentWidget').then(function (PaymentWidget) { - return PaymentWidget(clientKey, customerKey, options); - }); -} - -function clearPaymentWidget() { - var _script$parentElement; - - var script = document.querySelector("script[src=\"".concat(SCRIPT_URL, "\"]")); - script === null || script === void 0 ? void 0 : (_script$parentElement = script.parentElement) === null || _script$parentElement === void 0 ? void 0 : _script$parentElement.removeChild(script); - window.PaymentWidget = undefined; -} - -var ANONYMOUS = '@@ANONYMOUS'; - -exports.ANONYMOUS = ANONYMOUS; -exports.clearPaymentWidget = clearPaymentWidget; -exports.loadPaymentWidget = loadPaymentWidget; diff --git a/node_modules/@tosspayments/payment-widget-sdk/dist/index.esm.js b/node_modules/@tosspayments/payment-widget-sdk/dist/index.esm.js deleted file mode 100644 index 3bdd898a..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/dist/index.esm.js +++ /dev/null @@ -1,66 +0,0 @@ -var cachedPromise; -function loadScript(src, namespace) { - var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {}; - var existingElement = document.querySelector("[src=\"".concat(src, "\"]")); - - if (existingElement != null && cachedPromise !== undefined) { - return cachedPromise; - } - - if (existingElement != null && getNamespace(namespace) !== undefined) { - return Promise.resolve(getNamespace(namespace)); - } - - var script = document.createElement('script'); - script.src = src; - - if (options.priority !== undefined) { - script.fetchPriority = options.priority; - } - - cachedPromise = new Promise(function (resolve, reject) { - document.head.appendChild(script); - window.addEventListener("TossPayments:initialize:".concat(namespace), function () { - if (getNamespace(namespace) !== undefined) { - resolve(getNamespace(namespace)); - } else { - reject(new Error("[TossPayments SDK] Failed to load script: [".concat(src, "]"))); - } - }); - }); - return cachedPromise; -} - -function getNamespace(name) { - return window[name]; -} - -var SCRIPT_URL = 'https://js.tosspayments.com/v1/payment-widget'; - -function loadPaymentWidget(clientKey, customerKey, options) { - var loadOptions = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {}; - var _loadOptions$src = loadOptions.src, - src = _loadOptions$src === void 0 ? SCRIPT_URL : _loadOptions$src; - - if (typeof window === 'undefined') { - // XXX(@HyunSeob): SSR할 때 생성자가 사용되는 경우 에러를 발생시키지 않는대신 정상적인 인스턴스를 반환하지 않는다. - return Promise.resolve({}); - } // regenerator-runtime 의존성을 없애기 위해 `async` 키워드를 사용하지 않는다 - - - return loadScript(src, 'PaymentWidget').then(function (PaymentWidget) { - return PaymentWidget(clientKey, customerKey, options); - }); -} - -function clearPaymentWidget() { - var _script$parentElement; - - var script = document.querySelector("script[src=\"".concat(SCRIPT_URL, "\"]")); - script === null || script === void 0 ? void 0 : (_script$parentElement = script.parentElement) === null || _script$parentElement === void 0 ? void 0 : _script$parentElement.removeChild(script); - window.PaymentWidget = undefined; -} - -var ANONYMOUS = '@@ANONYMOUS'; - -export { ANONYMOUS, clearPaymentWidget, loadPaymentWidget }; diff --git a/node_modules/@tosspayments/payment-widget-sdk/package.json b/node_modules/@tosspayments/payment-widget-sdk/package.json deleted file mode 100644 index c4001063..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/package.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "name": "@tosspayments/payment-widget-sdk", - "description": "TossPayments.js Payment Widget SDK.", - "version": "0.10.2", - "main": "dist/index.cjs.js", - "module": "dist/index.esm.js", - "types": "types/index.d.ts", - "author": "Toss Payments", - "scripts": { - "build": "rm -rf dist && rollup -c && tsc --emitDeclarationOnly --declaration --declarationDir types", - "prepack": "yarn build", - "test": "jest --passWithNoTests", - "typecheck": "tsc --noEmit" - }, - "license": "MIT", - "devDependencies": { - "@babel/core": "^7.11.6", - "@babel/preset-env": "^7.11.5", - "@babel/preset-typescript": "^7.16.0", - "@rollup/plugin-babel": "^5.3.0", - "@rollup/plugin-commonjs": "^21.0.1", - "@rollup/plugin-typescript": "^8.3.0", - "@tosspayments/sdk-loader": "1.2.0", - "@types/jest": "^27.0.0", - "jest": "^27.0.7", - "prettier": "^2.0.2", - "rollup": "^2.60.0", - "rollup-plugin-babel": "^4.4.0", - "ts-jest": "^27.0.7", - "tslib": "^1.11.1", - "typescript": "^4.5.2" - }, - "files": [ - "dist", - "types" - ], - "dependencies": { - "@tosspayments/payment-widget__types": "1.0.1" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "0cd052d86c875eb77b7a7c6c25b06556d61f5f23" -} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-sdk/types/clearPaymentWidget.d.ts b/node_modules/@tosspayments/payment-widget-sdk/types/clearPaymentWidget.d.ts deleted file mode 100644 index ab0d467a..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/types/clearPaymentWidget.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function clearPaymentWidget(): void; diff --git a/node_modules/@tosspayments/payment-widget-sdk/types/constants.d.ts b/node_modules/@tosspayments/payment-widget-sdk/types/constants.d.ts deleted file mode 100644 index b5f82ff4..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/types/constants.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const SCRIPT_URL = "https://js.tosspayments.com/v1/payment-widget"; diff --git a/node_modules/@tosspayments/payment-widget-sdk/types/index.d.ts b/node_modules/@tosspayments/payment-widget-sdk/types/index.d.ts deleted file mode 100644 index b9c1b87b..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export type { PaymentWidgetInstance } from '@tosspayments/payment-widget__types'; -export { loadPaymentWidget } from './loadPaymentWidget'; -export { clearPaymentWidget } from './clearPaymentWidget'; -export declare const ANONYMOUS = "@@ANONYMOUS"; diff --git a/node_modules/@tosspayments/payment-widget-sdk/types/loadPaymentWidget.d.ts b/node_modules/@tosspayments/payment-widget-sdk/types/loadPaymentWidget.d.ts deleted file mode 100644 index c884b6c9..00000000 --- a/node_modules/@tosspayments/payment-widget-sdk/types/loadPaymentWidget.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type { PaymentWidgetConstructor, PaymentWidgetInstance } from '@tosspayments/payment-widget__types'; -declare type PaymentWidgetParams = Parameters; -export declare function loadPaymentWidget(clientKey: PaymentWidgetParams[0], customerKey: PaymentWidgetParams[1], options?: PaymentWidgetParams[2], loadOptions?: { - src?: string; -}): Promise; -export {}; diff --git a/node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.d.ts b/node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.d.ts deleted file mode 100644 index cf6fca1f..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export interface AgreementStatus { - agreedRequiredTerms: boolean; - terms: Term[]; -} -export interface Term { - id: string; - title: string; - position: number; - required: boolean; - agreed: boolean; - url: string | null; -} diff --git a/node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.js b/node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.js deleted file mode 100644 index 61ead03a..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=AgreementStatus.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.js.map b/node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.js.map deleted file mode 100644 index 853556c2..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/AgreementStatus.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AgreementStatus.js","sourceRoot":"","sources":["../src/AgreementStatus.ts"],"names":[],"mappings":"","sourcesContent":["export interface AgreementStatus {\n agreedRequiredTerms: boolean;\n terms: Term[];\n}\n\nexport interface Term {\n id: string;\n title: string;\n position: number;\n required: boolean;\n agreed: boolean;\n url: string | null;\n}\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.d.ts b/node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.d.ts deleted file mode 100644 index 736fda56..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface PaymentWidgetOptions { - brandpay?: { - redirectUrl?: string; - }; -} diff --git a/node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.js b/node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.js deleted file mode 100644 index 6561c5c8..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=PaymentWidgetOptions.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.js.map b/node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.js.map deleted file mode 100644 index 935309df..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/PaymentWidgetOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaymentWidgetOptions.js","sourceRoot":"","sources":["../src/PaymentWidgetOptions.ts"],"names":[],"mappings":"","sourcesContent":["export interface PaymentWidgetOptions {\n brandpay?: { redirectUrl?: string };\n}\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.d.ts b/node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.d.ts deleted file mode 100644 index 8eb7797b..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { CardPaymentRequest, CommonPaymentRequest, ForeignEasyPayPaymentRequest, PaymentRequest, TranferPaymentRequest as TransferPaymentRequest, VirtualAccountPaymentRequest } from '@tosspayments/payment__types'; -export declare type WidgetPaymentRequest = (Pick & Partial) & Partial & Partial & Partial & Partial; diff --git a/node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.js b/node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.js deleted file mode 100644 index c3c8ef5e..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=WidgetPaymentRequest.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.js.map b/node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.js.map deleted file mode 100644 index db483c70..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/WidgetPaymentRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WidgetPaymentRequest.js","sourceRoot":"","sources":["../src/WidgetPaymentRequest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n CardPaymentRequest,\n CommonPaymentRequest,\n ForeignEasyPayPaymentRequest,\n PaymentRequest,\n TranferPaymentRequest as TransferPaymentRequest,\n VirtualAccountPaymentRequest,\n} from '@tosspayments/payment__types';\n\nexport type WidgetPaymentRequest = (Pick &\n Partial) &\n Partial &\n Partial &\n Partial &\n Partial;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/dist/index.d.ts b/node_modules/@tosspayments/payment-widget-types/dist/index.d.ts deleted file mode 100644 index 5eaf620b..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './AgreementStatus'; -export * from './PaymentWidgetOptions'; -export * from './WidgetPaymentRequest'; diff --git a/node_modules/@tosspayments/payment-widget-types/dist/index.js b/node_modules/@tosspayments/payment-widget-types/dist/index.js deleted file mode 100644 index a0481b43..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - var desc = Object.getOwnPropertyDescriptor(m, k); - if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { - desc = { enumerable: true, get: function() { return m[k]; } }; - } - Object.defineProperty(o, k2, desc); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./AgreementStatus"), exports); -__exportStar(require("./PaymentWidgetOptions"), exports); -__exportStar(require("./WidgetPaymentRequest"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/dist/index.js.map b/node_modules/@tosspayments/payment-widget-types/dist/index.js.map deleted file mode 100644 index fe532585..00000000 --- a/node_modules/@tosspayments/payment-widget-types/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC","sourcesContent":["export * from './AgreementStatus';\nexport * from './PaymentWidgetOptions';\nexport * from './WidgetPaymentRequest';\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.d.ts b/node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.d.ts deleted file mode 100644 index cf6fca1f..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export interface AgreementStatus { - agreedRequiredTerms: boolean; - terms: Term[]; -} -export interface Term { - id: string; - title: string; - position: number; - required: boolean; - agreed: boolean; - url: string | null; -} diff --git a/node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.js b/node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.js deleted file mode 100644 index c48de09a..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=AgreementStatus.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.js.map b/node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.js.map deleted file mode 100644 index 853556c2..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/AgreementStatus.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"AgreementStatus.js","sourceRoot":"","sources":["../src/AgreementStatus.ts"],"names":[],"mappings":"","sourcesContent":["export interface AgreementStatus {\n agreedRequiredTerms: boolean;\n terms: Term[];\n}\n\nexport interface Term {\n id: string;\n title: string;\n position: number;\n required: boolean;\n agreed: boolean;\n url: string | null;\n}\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.d.ts b/node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.d.ts deleted file mode 100644 index 736fda56..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export interface PaymentWidgetOptions { - brandpay?: { - redirectUrl?: string; - }; -} diff --git a/node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.js b/node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.js deleted file mode 100644 index 3f86e8b2..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=PaymentWidgetOptions.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.js.map b/node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.js.map deleted file mode 100644 index 935309df..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/PaymentWidgetOptions.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"PaymentWidgetOptions.js","sourceRoot":"","sources":["../src/PaymentWidgetOptions.ts"],"names":[],"mappings":"","sourcesContent":["export interface PaymentWidgetOptions {\n brandpay?: { redirectUrl?: string };\n}\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.d.ts b/node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.d.ts deleted file mode 100644 index 8eb7797b..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { CardPaymentRequest, CommonPaymentRequest, ForeignEasyPayPaymentRequest, PaymentRequest, TranferPaymentRequest as TransferPaymentRequest, VirtualAccountPaymentRequest } from '@tosspayments/payment__types'; -export declare type WidgetPaymentRequest = (Pick & Partial) & Partial & Partial & Partial & Partial; diff --git a/node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.js b/node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.js deleted file mode 100644 index f396738f..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.js +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=WidgetPaymentRequest.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.js.map b/node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.js.map deleted file mode 100644 index db483c70..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/WidgetPaymentRequest.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"WidgetPaymentRequest.js","sourceRoot":"","sources":["../src/WidgetPaymentRequest.ts"],"names":[],"mappings":"","sourcesContent":["import {\n CardPaymentRequest,\n CommonPaymentRequest,\n ForeignEasyPayPaymentRequest,\n PaymentRequest,\n TranferPaymentRequest as TransferPaymentRequest,\n VirtualAccountPaymentRequest,\n} from '@tosspayments/payment__types';\n\nexport type WidgetPaymentRequest = (Pick &\n Partial) &\n Partial &\n Partial &\n Partial &\n Partial;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/esm/index.d.ts b/node_modules/@tosspayments/payment-widget-types/esm/index.d.ts deleted file mode 100644 index 5eaf620b..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './AgreementStatus'; -export * from './PaymentWidgetOptions'; -export * from './WidgetPaymentRequest'; diff --git a/node_modules/@tosspayments/payment-widget-types/esm/index.js b/node_modules/@tosspayments/payment-widget-types/esm/index.js deleted file mode 100644 index 02babe27..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from './AgreementStatus'; -export * from './PaymentWidgetOptions'; -export * from './WidgetPaymentRequest'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/esm/index.js.map b/node_modules/@tosspayments/payment-widget-types/esm/index.js.map deleted file mode 100644 index 76ae961f..00000000 --- a/node_modules/@tosspayments/payment-widget-types/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC","sourcesContent":["export * from './AgreementStatus';\nexport * from './PaymentWidgetOptions';\nexport * from './WidgetPaymentRequest';\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget-types/package.json b/node_modules/@tosspayments/payment-widget-types/package.json deleted file mode 100644 index 047c8d9a..00000000 --- a/node_modules/@tosspayments/payment-widget-types/package.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "name": "@tosspayments/payment-widget-types", - "version": "0.0.5", - "description": "Types used in PaymentWidget SDK", - "license": "MIT", - "main": "dist/index.js", - "scripts": { - "lint": "yarn run -T eslint 'src/**/*.{js,jsx,ts,tsx}'", - "lint:fix": "yarn lint --fix", - "typecheck": "tsc --noEmit", - "build": "tsc -p tsconfig.json && tsc -p tsconfig.esm.json", - "prepack": "yarn build", - "generate-types": "echo \"no generate-types specified.\"" - }, - "files": [ - "dist", - "esm" - ], - "devDependencies": { - "@babel/runtime": "^7.17.2", - "@tosspayments/payment__types": "^workspace:*", - "typescript": "^4.7.4" - }, - "peerDependencies": { - "typescript": "^4.7.4" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - }, - "publishConfig": { - "access": "public", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "module": "esm/index.js" - }, - "module": "esm/index.js", - "types": "dist/index.d.ts" -} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget__types/package.json b/node_modules/@tosspayments/payment-widget__types/package.json deleted file mode 100644 index b5ef5eab..00000000 --- a/node_modules/@tosspayments/payment-widget__types/package.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "name": "@tosspayments/payment-widget__types", - "description": "Toss Payments PaymentWidget SDK Types", - "version": "1.0.1", - "types": "types/index.d.ts", - "author": "Toss Payments", - "license": "MIT", - "files": [ - "types/**/*.d.ts" - ], - "publishConfig": { - "access": "public" - }, - "dependencies": { - "@tosspayments/brandpay-types": "^0.2.6", - "@tosspayments/payment-widget-types": "^0.0.5", - "@tosspayments/payment__types": "^1.66.3" - } -} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment-widget__types/types/index.d.ts b/node_modules/@tosspayments/payment-widget__types/types/index.d.ts deleted file mode 100644 index 00a774a9..00000000 --- a/node_modules/@tosspayments/payment-widget__types/types/index.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -interface AgreementStatus { - agreedRequiredTerms: boolean; - terms: Agreement[]; -} -interface Agreement { - id: string; - agreed: boolean; - required: boolean; - title: string; - content: string; -} - -type Currency = 'KRW' | 'USD'; - -interface Amount { - value: number; - currency?: Currency; - country?: string; -} - -interface BasePaymentInfo { - orderId: string; - orderName: string; - customerEmail?: string; - customerName?: string; - appScheme?: string; - taxFreeAmount?: number; - taxExemptionAmount?: number; - cultureExpense?: boolean; - useEscrow?: boolean; - escrowProducts?: EscrowProduct[]; - customerMobilePhone?: string; - showCustomerMobilePhone?: boolean; - mobileCarrier?: MobileCarrier[]; - products?: Product[]; - shipping?: Shipping; - paymentMethodOptions?: PaymentMethodOptions; - useInternationalCardOnly?: boolean; -} -interface PaymentInfo extends BasePaymentInfo { - successUrl: string; - failUrl: string; -} -interface PromiseTypePaymentInfo extends BasePaymentInfo { -} -interface EscrowProduct { - id: string; - code: string; - name: string; - unitPrice: number; - quantity: number; -} -type MobileCarrier = 'KT' | 'LGU' | 'SKT' | 'HELLO' | 'KCT' | 'SK7'; -interface Product { - name: string; - quantity: number; - unitAmount: number; - currency: string; - description: string; -} -interface Shipping { - fullName?: string; - address?: Address; -} -interface Address { - country: string; - line1?: string; - line2?: string; - area1?: string; - area2: string; - postalCode?: string; -} -interface PaymentMethodOptions { - paypal?: { - setTransactionContext: any; - }; -} - -interface PaymentMethodsWidget { - updateAmount: (amount: number, reason?: string | string[]) => void; - UPDATE_REASON: { - COUPON: string; - POINT: string; - }; - on: (eventName: string, callback: (selectedPaymentMethod: string) => unknown) => void; - getSelectedPaymentMethod: () => { - type: 'NORMAL' | 'BRANDPAY' | 'KEYIN' | 'CUSTOM'; - method?: string; - easyPay?: { - provider: string; - }; - paymentMethodKey?: string; - }; -} - -type RequestPaymentResult = { - paymentType: 'NORMAL'; - paymentKey: string; - amount: number; - orderId: string; -} | { - paymentType: 'BRANDPAY'; - paymentKey: string; - amount: number; - orderId: string; - methodId?: string | undefined; -} | { - paymentType: 'KEYIN'; - paymentKey: string; - amount: number; - orderId: string; -}; - -interface AgreementWidget { - on: (eventName: string, callback: (params: AgreementStatus) => void) => void; - getAgreementStatus: () => AgreementStatus; -} - -interface PaymentWidget$1 { - renderPaymentMethods: (selector: string, amount: Amount | number, options?: RenderPaymentMethodsOptions) => PaymentMethodsWidget; - renderAgreement: (selector: string, options?: RenderAgreementOptions) => AgreementWidget; - requestPayment: (paymentInfo: PaymentInfo | PromiseTypePaymentInfo) => Promise; -} -interface RenderPaymentMethodsOptions { - variantKey?: string; -} -interface RenderAgreementOptions { - variantKey?: string; -} - -declare function PaymentWidget(clientKey: string, rawCustomerKey: string, options?: { - brandpay?: { - redirectUrl?: string; - }; -}): PaymentWidget$1; -declare namespace PaymentWidget { - var ANONYMOUS: "@@ANONYMOUS"; - var __versionHash__: any; -} -type PaymentWidgetConstructor = typeof PaymentWidget; -type PaymentWidgetInstance = ReturnType; -declare global { - interface Window { - PaymentWidget?: PaymentWidgetConstructor; - } -} - -export { PaymentWidgetConstructor, PaymentWidgetInstance }; diff --git a/node_modules/@tosspayments/payment__types/package.json b/node_modules/@tosspayments/payment__types/package.json deleted file mode 100644 index d19b1501..00000000 --- a/node_modules/@tosspayments/payment__types/package.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "name": "@tosspayments/payment__types", - "description": "Toss Payments Payment SDK Types", - "version": "1.67.0", - "types": "types/index.d.ts", - "author": "Toss Payments", - "license": "MIT", - "files": [ - "types/**/*.d.ts" - ], - "publishConfig": { - "access": "public" - }, - "dependencies": { - "@tosspayments/sdk-constants": "^0.2.2" - } -} \ No newline at end of file diff --git a/node_modules/@tosspayments/payment__types/types/PaymentStatus.d.ts b/node_modules/@tosspayments/payment__types/types/PaymentStatus.d.ts deleted file mode 100644 index d020f002..00000000 --- a/node_modules/@tosspayments/payment__types/types/PaymentStatus.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export declare enum PaymentStatusType { - 준비 = "READY", - 결제중 = "ON_PAYMENT", - 완료 = "DONE" -} -declare const PaymentStatus: { - readonly isReady: boolean; - setReady(): void; - setOnPayment(): void; - setDone(): void; -}; -export default PaymentStatus; diff --git a/node_modules/@tosspayments/payment__types/types/billing/BillingAuthRequest.d.ts b/node_modules/@tosspayments/payment__types/types/billing/BillingAuthRequest.d.ts deleted file mode 100644 index f9be8140..00000000 --- a/node_modules/@tosspayments/payment__types/types/billing/BillingAuthRequest.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export default interface BillingAuthRequest { - customerKey: string; - successUrl: string; - failUrl: string; - customerEmail?: string; - customerName?: string; - windowTarget?: 'iframe' | 'self'; -} diff --git a/node_modules/@tosspayments/payment__types/types/billing/createBillingAuth.d.ts b/node_modules/@tosspayments/payment__types/types/billing/createBillingAuth.d.ts deleted file mode 100644 index dc42f095..00000000 --- a/node_modules/@tosspayments/payment__types/types/billing/createBillingAuth.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import BillingAuthRequest from './BillingAuthRequest'; -interface Response { - authKey: string; - customerKey: string; - status: string; -} -export default function createBillingAuth(clientKey: string, params: BillingAuthRequest & { - payMethod: string; -}): Promise; -export {}; diff --git a/node_modules/@tosspayments/payment__types/types/billing/requestBillingAuth.d.ts b/node_modules/@tosspayments/payment__types/types/billing/requestBillingAuth.d.ts deleted file mode 100644 index 418206f2..00000000 --- a/node_modules/@tosspayments/payment__types/types/billing/requestBillingAuth.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import BillingAuthRequest from './BillingAuthRequest'; -export default function requestBillingAuth(clientKey: string, method: '카드', requestParams: BillingAuthRequest): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/billing/requestPaymentGatewayBilling.d.ts b/node_modules/@tosspayments/payment__types/types/billing/requestPaymentGatewayBilling.d.ts deleted file mode 100644 index 30fa62fb..00000000 --- a/node_modules/@tosspayments/payment__types/types/billing/requestPaymentGatewayBilling.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { PaymentSuccessParams } from '../payment/openPaymentWindow'; -import BillingAuthRequest from './BillingAuthRequest'; -export declare function isPaymentGatewayCompatible({ clientKey, method, requestParams, }: { - clientKey: string; - method: '카드' | 'CARD'; - requestParams: BillingAuthRequest; -}): Promise; -export declare function requestPaymentGatewayBillingAuth(clientKey: string, method: '카드' | 'CARD', requestParams: BillingAuthRequest): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/client/PaymentGateway.d.ts b/node_modules/@tosspayments/payment__types/types/client/PaymentGateway.d.ts deleted file mode 100644 index d56a8647..00000000 --- a/node_modules/@tosspayments/payment__types/types/client/PaymentGateway.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function resolvePaymentGatewayUrl(clientKey: string): any; -export declare function resolvePgWindowServerUrl(clientKey: string): any; diff --git a/node_modules/@tosspayments/payment__types/types/index.d.ts b/node_modules/@tosspayments/payment__types/types/index.d.ts deleted file mode 100644 index b7a744ce..00000000 --- a/node_modules/@tosspayments/payment__types/types/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from './tosspayments'; -export * from './payment/PaymentRequest'; -export * from './billing/BillingAuthRequest'; -export * from './models/CardCompany'; -export * from './models/EasyPay'; diff --git a/node_modules/@tosspayments/payment__types/types/models/Bank.d.ts b/node_modules/@tosspayments/payment__types/types/models/Bank.d.ts deleted file mode 100644 index 8635a4bc..00000000 --- a/node_modules/@tosspayments/payment__types/types/models/Bank.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { ValueOf } from '../utils/types'; -/** - * @see https://docs.tosspayments.com/reference/codes#%EC%9D%80%ED%96%89-%EC%BD%94%EB%93%9C - */ -export declare const Bank: { - readonly 경남: "KYONGNAMBANK"; - readonly 광주: "GWANGJUBANK"; - readonly 국민: "KOOKMIN"; - readonly 기업: "IBK"; - readonly 농협: "NONGHYEOP"; - readonly 대구: "DAEGUBANK"; - readonly 부산: "BUSANBANK"; - readonly 산업: "KDB"; - readonly 새마을: "SAEMAUL"; - readonly 산림: "SANLIM"; - readonly 수협: "SUHYEOP"; - readonly 신한: "SHINHAN"; - readonly 신협: "SHINHYUP"; - readonly 씨티: "CITI"; - readonly 우리: "WOORI"; - readonly 우체국: "POST"; - readonly 저축: "SAVINGBANK"; - readonly 전북: "JEONBUKBANK"; - readonly 제주: "JEJUBANK"; - readonly 카카오: "KAKAOBANK"; - readonly 케이: "KBANK"; - readonly 토스: "TOSSBANK"; - readonly 하나: "HANA"; - readonly SC제일: "SC"; -}; -export declare type Bank = keyof typeof Bank; -export declare type BankCode = ValueOf; diff --git a/node_modules/@tosspayments/payment__types/types/models/CardCompany.d.ts b/node_modules/@tosspayments/payment__types/types/models/CardCompany.d.ts deleted file mode 100644 index 92f95ab6..00000000 --- a/node_modules/@tosspayments/payment__types/types/models/CardCompany.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { ValueOf } from '../utils/types'; -export declare const CardCompany: { - readonly 신한: "SHINHAN"; - readonly 현대: "HYUNDAI"; - readonly 삼성: "SAMSUNG"; - readonly 우리: "WOORI"; - readonly 국민: "KOOKMIN"; - readonly 롯데: "LOTTE"; - readonly 농협: "NONGHYEOP"; - readonly 하나: "HANA"; - readonly 비씨: "BC"; - readonly 산업: "KDBBANK"; - readonly 토스뱅크: "TOSSBANK"; - readonly 카카오뱅크: "KAKAOBANK"; - readonly KDB: "KDB"; - readonly 수협: "SUHYEOP"; - readonly 전북: "JEONBUKBANK"; - readonly 우체국: "POST"; - readonly 새마을: "SAEMAUL"; - readonly 씨티: "CITI"; - readonly 저축: "SAVINGBANK"; - readonly 제주: "JEJUBANK"; - readonly 광주: "GWANGJUBANK"; - readonly 신협: "SHINHYEOP"; - readonly JCB: "JCB"; - readonly 유니온페이: "UNIONPAY"; - readonly 마스터: "MASTER"; - readonly 비자: "VISA"; - readonly 다이너스: "DINERS"; - readonly 디스커버: "DISCOVER"; - readonly 기업비씨: "IBK_BC"; - readonly AMEX: "AMEX"; -}; -export declare type CardCompany = keyof typeof CardCompany; -export declare type CardCompanyCode = ValueOf; diff --git a/node_modules/@tosspayments/payment__types/types/models/EasyPay.d.ts b/node_modules/@tosspayments/payment__types/types/models/EasyPay.d.ts deleted file mode 100644 index e6c954e3..00000000 --- a/node_modules/@tosspayments/payment__types/types/models/EasyPay.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { ValueOf } from '../utils/types'; -export declare const EasyPayMethod: { - readonly 토스페이: "TOSSPAY"; - readonly 네이버페이: "NAVERPAY"; - readonly 삼성페이: "SAMSUNGPAY"; - readonly 애플페이: "APPLEPAY"; - readonly 엘페이: "LPAY"; - readonly 카카오페이: "KAKAOPAY"; - readonly 페이코: "PAYCO"; - readonly SSG페이: "SSG"; - readonly 페이팔: "PAYPAL"; -}; -export declare type EasyPayMethod = keyof typeof EasyPayMethod; -export declare type EasyPayMethodCode = ValueOf; diff --git a/node_modules/@tosspayments/payment__types/types/models/Error.d.ts b/node_modules/@tosspayments/payment__types/types/models/Error.d.ts deleted file mode 100644 index 4936fcf2..00000000 --- a/node_modules/@tosspayments/payment__types/types/models/Error.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ValueOf } from '../utils/types'; -export declare const ErrorCode: { - readonly 올바르지_않은_파라미터: "INVALID_PARAMETER"; - readonly 결제_취소: "USER_CANCEL"; - readonly 허용하지_않은_스크립트: "FORBIDDEN_SCRIPT"; -}; -export declare type ErrorCode = ValueOf; diff --git a/node_modules/@tosspayments/payment__types/types/payment/PaymentRequest.d.ts b/node_modules/@tosspayments/payment__types/types/payment/PaymentRequest.d.ts deleted file mode 100644 index 859dc4e2..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/PaymentRequest.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import type { Bank, BankCode, CardCompany, CardCompanyCode, EasyPayProvider, EasyPayProviderCode, MobileCarrier } from '@tosspayments/sdk-constants'; -import { ValueOf } from '../utils/types'; -export declare const PaymentMethod: { - readonly 카드: "CARD"; - readonly 가상계좌: "VIRTUAL_ACCOUNT"; - readonly 휴대폰: "MOBILE_PHONE"; - readonly 토스페이: "TOSSPAY"; - /** - * @deprecated - */ - readonly 토스결제: "TOSSPAY"; - readonly 계좌이체: "TRANSFER"; - readonly 문화상품권: "CULTURE_GIFT_CERTIFICATE"; - readonly 게임문화상품권: "GAME_GIFT_CERTIFICATE"; - readonly 도서문화상품권: "BOOK_GIFT_CERTIFICATE"; - readonly 해외간편결제: "FOREIGN_EASY_PAY"; - readonly 미선택: ""; -}; -export declare type PaymentMethodType = keyof typeof PaymentMethod; -export declare type PaymentMethodCode = ValueOf; -export declare function resolvePaymentMethodCode(typeOrCode: PaymentMethodType | PaymentMethodCode): PaymentMethodCode; -export interface BasePaymentRequest { - amount: number; - orderName: string; - successUrl: string; - failUrl: string; - orderId: string; - customerName?: string; - customerEmail?: string; - taxFreeAmount?: number; - cultureExpense?: boolean; - forceFailure?: boolean; - windowTarget?: 'iframe' | 'self'; - mId?: string; - methodType?: string; - appScheme?: string; -} -export interface CommonPaymentRequest extends BasePaymentRequest { -} -export interface CommonPaymentRequestWithoutUrl extends Omit { -} -interface BaseCardPaymentRequest extends BasePaymentRequest { - cardInstallmentPlan?: number; - maxCardInstallmentPlan?: number; - useInternationalCardOnly?: boolean; - useAppCardOnly?: boolean; - useCardPoint?: boolean; - freeInstallmentPlans?: Array<{ - company: CardCompany | CardCompanyCode; - months: number[]; - }>; - language?: 'KO' | 'EN' | 'JA' | 'ZH'; -} -export interface DefaultCardPaymentRequest extends BaseCardPaymentRequest { - flowMode?: 'DEFAULT'; - cardCompany?: CardCompany | CardCompanyCode; - easyPay?: EasyPayProvider | EasyPayProviderCode; -} -export interface DirectCardPaymentRequest extends BaseCardPaymentRequest { - flowMode: 'DIRECT'; - cardCompany: CardCompany | CardCompanyCode; - easyPay?: never; -} -export interface DirectEasyPayPaymentRequest extends BaseCardPaymentRequest { - flowMode: 'DIRECT'; - cardCompany?: never; - easyPay: EasyPayProvider | EasyPayProviderCode; -} -export declare type CardPaymentRequest = DefaultCardPaymentRequest | DirectCardPaymentRequest | DirectEasyPayPaymentRequest; -export declare type CardPaymentRequestWithoutUrl = Omit | Omit | Omit; -interface EscrowProduct { - id: string; - code: string; - name: string; - unitPrice: number; - quantity: number; -} -interface CashReceipt { - type?: '소득공제' | '지출증빙' | '미발행'; -} -export interface VirtualAccountPaymentRequest extends BasePaymentRequest { - /** - * @description 에스크로 결제를 사용할 지 여부. - * true로 넘기면 항상 에스크로 결제를 사용, false로 넘기면 에스크로 결제를 항상 사용하지 않도록 함. - * 넘기지 않으면 사용자가 선택할 수 있음. - */ - useEscrow?: boolean; - escrowProducts?: EscrowProduct[]; - cashReceipt?: CashReceipt; - /** - * @deprecated 대신 `cashReceipt` 필드를 사용해주세요. - */ - cashReceiptInfo?: CashReceipt; - validHours?: number; - dueDate?: string; - virtualAccountCallbackUrl?: string; - customerMobilePhone?: string; -} -export interface VirtualAccountPaymentRequestWithoutUrl extends Omit { -} -export interface PhonePaymentRequest extends BasePaymentRequest { - mobileCarrier?: MobileCarrier; -} -export interface PhonePaymentRequestWithoutUrl extends Omit { -} -export interface TranferPaymentRequest extends BasePaymentRequest { - bank?: BankCode | Bank; - cashReceipt?: CashReceipt; -} -export interface TranferPaymentRequestWithoutUrl extends Omit { -} -interface ForeignEasyPayProduct { - name: string; - quantity: number; - unitAmount: number; - currency: string; - description: string; -} -interface ForeignEasyPayShipping { - fullName?: string; - address?: { - country: string; - line1?: string; - line2?: string; - area1?: string; - area2: string; - postalCode?: string; - }; -} -export interface ForeignEasyPayPaymentRequest extends BasePaymentRequest { - provider: string; - currency: string; - country: string; - products?: ForeignEasyPayProduct[]; - shipping?: ForeignEasyPayShipping; - paymentMethodOptions?: { - paypal?: { - setTransactionContext?: Record; - }; - }; -} -export interface ForeignEasyPayPaymentRequestWithoutUrl extends Omit { -} -export declare type PaymentRequest = CommonPaymentRequest | CardPaymentRequest | VirtualAccountPaymentRequest | TranferPaymentRequest | ForeignEasyPayPaymentRequest; -export declare type PaymentRequestWithoutUrl = CommonPaymentRequestWithoutUrl | CardPaymentRequestWithoutUrl | VirtualAccountPaymentRequestWithoutUrl | TranferPaymentRequestWithoutUrl | ForeignEasyPayPaymentRequestWithoutUrl; -export declare function isSyncPaymentRequest(params: unknown): params is PaymentRequest; -export interface PaymentRequestOptions { - responseMode?: 'CALLBACK' | 'PROMISE' | undefined; -} -export {}; diff --git a/node_modules/@tosspayments/payment__types/types/payment/cancelPayment.d.ts b/node_modules/@tosspayments/payment__types/types/payment/cancelPayment.d.ts deleted file mode 100644 index af03c80b..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/cancelPayment.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function cancelPayment(): void; diff --git a/node_modules/@tosspayments/payment__types/types/payment/createPayment.d.ts b/node_modules/@tosspayments/payment__types/types/payment/createPayment.d.ts deleted file mode 100644 index 6867b10d..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/createPayment.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { PaymentRequest, PaymentRequestOptions, PaymentRequestWithoutUrl } from './PaymentRequest'; -export interface CreatePaymentResponse { - amount: number; - approvalNo?: string; - createdAt?: string; - currency: string; - customerKey?: string; - installmentPlan?: number; - key: string; - method?: { - card?: { - cardNumber: string; - financeCode: number; - financeName: string; - }; - key: string; - type: string; - virtualAccount?: { - accountHolder: string; - accountNumber: string; - bankCode: string; - bankName: string; - dueDate: string; - }; - }; - orderId?: string; - status: string; - statusDetail: string; -} -export interface CreatePaymentOptions extends PaymentRequestOptions { - isLegacy?: boolean; - language?: 'en' | 'ko'; -} -export default function createPayment(clientKey: string, { mId, ...params }: PaymentRequest | PaymentRequestWithoutUrl, options: CreatePaymentOptions): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/payment/getStatus.d.ts b/node_modules/@tosspayments/payment__types/types/payment/getStatus.d.ts deleted file mode 100644 index cdc2c0ab..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/getStatus.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare type PaymentStatus = 'READY' | 'IN_PROGRESS' | 'DONE'; -export default function getStatus(clientKey: string, paymentKey: string): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/payment/logger.d.ts b/node_modules/@tosspayments/payment__types/types/payment/logger.d.ts deleted file mode 100644 index 9c9a9876..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/logger.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { PaymentMethodCode, PaymentRequest, PaymentRequestWithoutUrl } from './PaymentRequest'; -export declare const logger: { - /** - * @see http://log-centre.toss.team/v2/logs/1006094 - */ - log결제창실행(clientKey: string, paymentKey: string): void; - /** - * @see https://log-centre.toss.team/v2/logs/1278649 - */ - logRequestPayment(clientKey: string, methodCode: PaymentMethodCode, requestParams: PaymentRequest | PaymentRequestWithoutUrl): void; -}; diff --git a/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/index.d.ts b/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/index.d.ts deleted file mode 100644 index 2366b8f1..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from './openDirectPaymentWindow'; -export * from './openPaycoWindow'; -export * from './openPaymentWindow'; diff --git a/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openDirectPaymentWindow.d.ts b/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openDirectPaymentWindow.d.ts deleted file mode 100644 index dae9fc3f..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openDirectPaymentWindow.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { OpenPaymentWindowOptions } from './openPaymentWindow'; -export declare function openDirectPaymentWindow(path: string, params: Record, options?: OpenPaymentWindowOptions): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openPaycoWindow.d.ts b/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openPaycoWindow.d.ts deleted file mode 100644 index 406232b5..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openPaycoWindow.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { OpenPaymentWindowOptions } from './openPaymentWindow'; -export declare function openPaycoWindow(path: string, params: Record, options?: OpenPaymentWindowOptions): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openPaymentWindow.d.ts b/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openPaymentWindow.d.ts deleted file mode 100644 index 4929bd0c..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/openPaymentWindow/openPaymentWindow.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { PaymentRequest } from '../PaymentRequest'; -export interface OpenPaymentWindowOptions { - dimmer?: HTMLDivElement; - iframe?: HTMLIFrameElement; - target?: string | '_self'; -} -export interface PaymentSuccessParams extends Pick { - paymentKey: string; -} -export interface PaymentFailureParams extends Pick { - code: string; - message: string; -} -export declare function openPaymentWindow(path: string, params: Record, options?: OpenPaymentWindowOptions): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/decideParameters.d.ts b/node_modules/@tosspayments/payment__types/types/payment/requestPayment/decideParameters.d.ts deleted file mode 100644 index 477823d2..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/decideParameters.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { CommonPaymentRequest, CommonPaymentRequestWithoutUrl, PaymentMethodCode, PaymentMethodType, PaymentRequest, PaymentRequestWithoutUrl } from '../PaymentRequest'; -export declare function decideParameters(methodOrParams: PaymentMethodType | PaymentMethodCode | CommonPaymentRequest | CommonPaymentRequestWithoutUrl, requestParams?: PaymentRequest | PaymentRequestWithoutUrl): { - methodCode: PaymentMethodCode; - decidedParams: PaymentRequest | PaymentRequestWithoutUrl; -}; diff --git a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/index.d.ts b/node_modules/@tosspayments/payment__types/types/payment/requestPayment/index.d.ts deleted file mode 100644 index eb77db77..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from './requestPayment'; diff --git a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestCardPayment.d.ts b/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestCardPayment.d.ts deleted file mode 100644 index 8a4df2d6..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestCardPayment.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { CardPaymentRequest, CardPaymentRequestWithoutUrl, PaymentRequestOptions } from '../PaymentRequest'; -export declare function requestCardPayment(clientKey: string, params: CardPaymentRequest | CardPaymentRequestWithoutUrl, paymentRequestOptions?: PaymentRequestOptions): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestOtherPayment.d.ts b/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestOtherPayment.d.ts deleted file mode 100644 index 04c37236..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestOtherPayment.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { PaymentRequest, PaymentRequestOptions, PaymentRequestWithoutUrl } from '../PaymentRequest'; -export declare function requestOtherPayment(clientKey: string, params: PaymentRequest | PaymentRequestWithoutUrl, paymentRequestOptions?: PaymentRequestOptions): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPXPayment.d.ts b/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPXPayment.d.ts deleted file mode 100644 index 548071fc..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPXPayment.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { PaymentMethodCode, PaymentRequest, PaymentRequestOptions, PaymentRequestWithoutUrl } from '../PaymentRequest'; -export declare function requestPXPayment(clientKey: string, method: PaymentMethodCode, params: PaymentRequest | PaymentRequestWithoutUrl, options?: PaymentRequestOptions): Promise; -export declare namespace requestPXPayment { - var async: (clientKey: string, method: PaymentMethodCode, params: PaymentRequest | PaymentRequestWithoutUrl) => Promise; -} diff --git a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPayment.d.ts b/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPayment.d.ts deleted file mode 100644 index bda6b695..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPayment.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { PaymentSuccessParams } from '../openPaymentWindow'; -import { CommonPaymentRequest, CommonPaymentRequestWithoutUrl, PaymentMethodCode, PaymentMethodType, PaymentRequest, PaymentRequestWithoutUrl } from '../PaymentRequest'; -export interface RequestPaymentResult extends PaymentSuccessParams { -} -export declare function requestPayment(clientKey: string, methodOrParams: PaymentMethodType | PaymentMethodCode | CommonPaymentRequest | CommonPaymentRequestWithoutUrl, requestParams?: PaymentRequest | PaymentRequestWithoutUrl): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPaymentGatewayPayment.d.ts b/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPaymentGatewayPayment.d.ts deleted file mode 100644 index 35622c8b..00000000 --- a/node_modules/@tosspayments/payment__types/types/payment/requestPayment/requestPaymentGatewayPayment.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { CardPaymentRequest, PaymentMethodCode } from '../PaymentRequest'; -export declare function isPaymentGatewayCompatible({ amount, clientKey, method, ...params }: { - clientKey: string; - method: PaymentMethodCode; -} & CardPaymentRequest): Promise; -export declare function requestPaymentGatewayCardPayment(clientKey: string, params: CardPaymentRequest): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/tosspayments.d.ts b/node_modules/@tosspayments/payment__types/types/tosspayments.d.ts deleted file mode 100644 index 5399ed71..00000000 --- a/node_modules/@tosspayments/payment__types/types/tosspayments.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -import BillingAuthRequest from './billing/BillingAuthRequest'; -import { cancelPayment } from './payment/cancelPayment'; -import { CardPaymentRequest, CardPaymentRequestWithoutUrl, CommonPaymentRequest, CommonPaymentRequestWithoutUrl, ForeignEasyPayPaymentRequest, ForeignEasyPayPaymentRequestWithoutUrl, PaymentMethodCode, PaymentMethodType, PaymentRequest, PaymentRequestWithoutUrl, PhonePaymentRequest, PhonePaymentRequestWithoutUrl, TranferPaymentRequest, TranferPaymentRequestWithoutUrl, VirtualAccountPaymentRequest, VirtualAccountPaymentRequestWithoutUrl } from './payment/PaymentRequest'; -import { RequestPaymentResult } from './payment/requestPayment'; -interface TossPaymentsOptions { - clientUrl?: string; - serverUrl?: string; - pgWindowServerUrl?: string; - gtid?: string; - service?: string; -} -declare function TossPayments(clientKey: string, options?: TossPaymentsOptions): { - readonly requestPayment: { - (requestParams: CommonPaymentRequest): Promise; - (requestParams: CommonPaymentRequestWithoutUrl): Promise; - (method: '카드' | 'CARD', requestParams: CardPaymentRequest): Promise; - (method: '카드' | 'CARD', requestParams: CardPaymentRequestWithoutUrl): Promise; - (method: '가상계좌' | 'VIRTUAL_ACCOUNT', requestParams: VirtualAccountPaymentRequest): Promise; - (method: '가상계좌' | 'VIRTUAL_ACCOUNT', requestParams: VirtualAccountPaymentRequestWithoutUrl): Promise; - (method: '휴대폰' | 'MOBILE_PHONE', requestParams: PhonePaymentRequest): Promise; - (method: '휴대폰' | 'MOBILE_PHONE', requestParams: PhonePaymentRequestWithoutUrl): Promise; - (method: '계좌이체' | 'TRANSFER', requestParams: TranferPaymentRequest): Promise; - (method: '계좌이체' | 'TRANSFER', requestParams: TranferPaymentRequestWithoutUrl): Promise; - (method: '문화상품권' | 'CULTURE_GIFT_CERTIFICATE', requestParams: CommonPaymentRequest): Promise; - (method: '문화상품권' | 'CULTURE_GIFT_CERTIFICATE', requestParams: CommonPaymentRequestWithoutUrl): Promise; - (method: '게임문화상품권' | 'GAME_GIFT_CERTIFICATE', requestParams: CommonPaymentRequest): Promise; - (method: '게임문화상품권' | 'GAME_GIFT_CERTIFICATE', requestParams: CommonPaymentRequestWithoutUrl): Promise; - (method: '도서문화상품권' | 'BOOK_GIFT_CERTIFICATE', requestParams: CommonPaymentRequest): Promise; - (method: '도서문화상품권' | 'BOOK_GIFT_CERTIFICATE', requestParams: CommonPaymentRequestWithoutUrl): Promise; - (method: '해외간편결제' | 'FOREIGN_EASY_PAY', requestParams: ForeignEasyPayPaymentRequest): Promise; - (method: '해외간편결제' | 'FOREIGN_EASY_PAY', requestParams: ForeignEasyPayPaymentRequestWithoutUrl): Promise; - (method: PaymentMethodType | PaymentMethodCode, requestParams: PaymentRequest): Promise; - (method: PaymentMethodType | PaymentMethodCode, requestParams: PaymentRequestWithoutUrl): Promise; - }; - readonly requestBillingAuth: (method: '카드', params: BillingAuthRequest) => Promise; - readonly cancelPayment: typeof cancelPayment; -}; -declare namespace TossPayments { - var __versionHash__: any; -} -export declare type TossPaymentsConstructor = typeof TossPayments; -export declare type TossPaymentsInstance = ReturnType; -declare global { - interface Window { - TossPayments?: TossPaymentsConstructor; - } -} -export default TossPayments; diff --git a/node_modules/@tosspayments/payment__types/types/utils/PaymentsHttpClient.d.ts b/node_modules/@tosspayments/payment__types/types/utils/PaymentsHttpClient.d.ts deleted file mode 100644 index 8e3efbe5..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/PaymentsHttpClient.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export default function PaymentsHttpClient(clientKey: string): { - get(path: string): Promise; - post(path: string, body?: any, options?: { - headers?: Record | undefined; - }): Promise; -}; diff --git a/node_modules/@tosspayments/payment__types/types/utils/PostMessageListener.d.ts b/node_modules/@tosspayments/payment__types/types/utils/PostMessageListener.d.ts deleted file mode 100644 index bd9ebbd4..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/PostMessageListener.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export interface TossPaymentsMessageEvent { - target: string; - type: string; - params: T; -} -declare type Callback = (event: TossPaymentsMessageEvent) => void; -declare const PostMessageListener: { - add(callback: Callback): void; - remove(callback: Callback): void; - consume(condition?: (event: TossPaymentsMessageEvent) => boolean): Promise>; - clear(): void; -}; -export default PostMessageListener; diff --git a/node_modules/@tosspayments/payment__types/types/utils/checkValidTosspaymentsScript.d.ts b/node_modules/@tosspayments/payment__types/types/utils/checkValidTosspaymentsScript.d.ts deleted file mode 100644 index 8a78dc7b..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/checkValidTosspaymentsScript.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function checkValidTosspaymentsScript(clientKey: string): void; diff --git a/node_modules/@tosspayments/payment__types/types/utils/constants.d.ts b/node_modules/@tosspayments/payment__types/types/utils/constants.d.ts deleted file mode 100644 index 061ce97e..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/constants.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const IFRAME_ID = "___tosspayments_iframe___"; -export declare const LOADING_IFRAME_ID = "___tosspayments_iframe__loading___"; -export declare const DIMMER_ID = "___tosspayments_dimmer___"; -export declare const FORM_ID = "___tosspayments_form___"; diff --git a/node_modules/@tosspayments/payment__types/types/utils/createQueryString.d.ts b/node_modules/@tosspayments/payment__types/types/utils/createQueryString.d.ts deleted file mode 100644 index aee4d82c..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/createQueryString.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare function createQueryString(params: { - [key: string]: string | number | boolean | undefined; -}): string; diff --git a/node_modules/@tosspayments/payment__types/types/utils/device.d.ts b/node_modules/@tosspayments/payment__types/types/utils/device.d.ts deleted file mode 100644 index b2480ffb..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/device.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare function isIE(): boolean; -export declare function isIos(): boolean; -export declare function isAndroid(): boolean; -export declare function isMobile(): boolean; diff --git a/node_modules/@tosspayments/payment__types/types/utils/dom.d.ts b/node_modules/@tosspayments/payment__types/types/utils/dom.d.ts deleted file mode 100644 index e535f10c..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/dom.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function createPaycoIframe(): HTMLIFrameElement; diff --git a/node_modules/@tosspayments/payment__types/types/utils/envVariables.d.ts b/node_modules/@tosspayments/payment__types/types/utils/envVariables.d.ts deleted file mode 100644 index 591bf76c..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/envVariables.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare const STAGE: Stage; -export declare const API_URL_BASE: any; -export declare const LOG_URL_BASE: any; -export declare const PAYMENT_GATEWAY_URL_BASE: any; -export declare const PAYMENT_GATEWAY_API_URL_BASE: any; -export declare const COMMIT_SHA: any; -export declare type Stage = 'baemin' | 'baemin-staging' | 'baemin-dev' | 'v1' | 'beta' | 'alpha' | 'dev'; diff --git a/node_modules/@tosspayments/payment__types/types/utils/frontendStorage.d.ts b/node_modules/@tosspayments/payment__types/types/utils/frontendStorage.d.ts deleted file mode 100644 index c3012ec8..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/frontendStorage.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function fetchFrontendStorage(path: string, fallback: T): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/utils/globalContext.d.ts b/node_modules/@tosspayments/payment__types/types/utils/globalContext.d.ts deleted file mode 100644 index e29a3b95..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/globalContext.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const globalContext: Record; diff --git a/node_modules/@tosspayments/payment__types/types/utils/log.d.ts b/node_modules/@tosspayments/payment__types/types/utils/log.d.ts deleted file mode 100644 index d85fea6e..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/log.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export interface LogScheme { - session_id?: string; - client_id?: string; - schema_id?: number; - company?: string; - act_type?: string; - name?: string; - description?: string; - screen_name?: string; - log_name?: string; - log_type?: string; - event_type?: string; - event_name?: string; - [key: string]: unknown; -} -export default function log(scheme?: LogScheme): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/utils/postMessage.d.ts b/node_modules/@tosspayments/payment__types/types/utils/postMessage.d.ts deleted file mode 100644 index d8c4cbce..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/postMessage.d.ts +++ /dev/null @@ -1 +0,0 @@ -export default function postMessage(target: string, type: string, params?: any): Promise; diff --git a/node_modules/@tosspayments/payment__types/types/utils/types.d.ts b/node_modules/@tosspayments/payment__types/types/utils/types.d.ts deleted file mode 100644 index c00f6b93..00000000 --- a/node_modules/@tosspayments/payment__types/types/utils/types.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare type ValueOf = T[keyof T]; diff --git a/node_modules/@tosspayments/sdk-constants/dist/Bank.d.ts b/node_modules/@tosspayments/sdk-constants/dist/Bank.d.ts deleted file mode 100644 index 4945ed44..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/Bank.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { ValueOf } from 'type-fest'; -/** - * @see https://docs.tosspayments.com/reference/codes#%EC%9D%80%ED%96%89-%EC%BD%94%EB%93%9C - */ -export declare const Bank: { - readonly 경남: "KYONGNAMBANK"; - readonly 광주: "GWANGJUBANK"; - readonly 국민: "KOOKMIN"; - readonly 기업: "IBK"; - readonly 농협: "NONGHYEOP"; - readonly 대구: "DAEGUBANK"; - readonly 부산: "BUSANBANK"; - readonly 산업: "KDB"; - readonly 새마을: "SAEMAUL"; - readonly 산림: "SANLIM"; - readonly 수협: "SUHYEOP"; - readonly 신한: "SHINHAN"; - readonly 신협: "SHINHYUP"; - readonly 씨티: "CITI"; - readonly 우리: "WOORI"; - readonly 우체국: "POST"; - readonly 저축: "SAVINGBANK"; - readonly 전북: "JEONBUKBANK"; - readonly 제주: "JEJUBANK"; - readonly 카카오: "KAKAOBANK"; - readonly 케이: "KBANK"; - readonly 토스: "TOSSBANK"; - readonly 하나: "HANA"; - readonly SC제일: "SC"; -}; -export declare type Bank = keyof typeof Bank; -export declare type BankCode = ValueOf; diff --git a/node_modules/@tosspayments/sdk-constants/dist/Bank.js b/node_modules/@tosspayments/sdk-constants/dist/Bank.js deleted file mode 100644 index 2c939e0c..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/Bank.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Bank = void 0; -/** - * @see https://docs.tosspayments.com/reference/codes#%EC%9D%80%ED%96%89-%EC%BD%94%EB%93%9C - */ -exports.Bank = { - 경남: `KYONGNAMBANK`, - 광주: `GWANGJUBANK`, - 국민: `KOOKMIN`, - 기업: `IBK`, - 농협: `NONGHYEOP`, - 대구: `DAEGUBANK`, - 부산: `BUSANBANK`, - 산업: `KDB`, - 새마을: `SAEMAUL`, - 산림: `SANLIM`, - 수협: `SUHYEOP`, - 신한: `SHINHAN`, - 신협: `SHINHYUP`, - 씨티: `CITI`, - 우리: `WOORI`, - 우체국: `POST`, - 저축: `SAVINGBANK`, - 전북: `JEONBUKBANK`, - 제주: `JEJUBANK`, - 카카오: `KAKAOBANK`, - 케이: `KBANK`, - 토스: `TOSSBANK`, - 하나: `HANA`, - SC제일: `SC`, -}; -//# sourceMappingURL=Bank.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/dist/Bank.js.map b/node_modules/@tosspayments/sdk-constants/dist/Bank.js.map deleted file mode 100644 index 6aec8baf..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/Bank.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Bank.js","sourceRoot":"","sources":["../src/Bank.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,KAAK;IACT,GAAG,EAAE,SAAS;IACd,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,OAAO;IACX,GAAG,EAAE,MAAM;IACX,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,UAAU;IACd,GAAG,EAAE,WAAW;IAChB,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,IAAI;CACF,CAAC","sourcesContent":["import { ValueOf } from 'type-fest';\n\n/**\n * @see https://docs.tosspayments.com/reference/codes#%EC%9D%80%ED%96%89-%EC%BD%94%EB%93%9C\n */\nexport const Bank = {\n 경남: `KYONGNAMBANK`,\n 광주: `GWANGJUBANK`,\n 국민: `KOOKMIN`,\n 기업: `IBK`,\n 농협: `NONGHYEOP`,\n 대구: `DAEGUBANK`,\n 부산: `BUSANBANK`,\n 산업: `KDB`,\n 새마을: `SAEMAUL`,\n 산림: `SANLIM`,\n 수협: `SUHYEOP`,\n 신한: `SHINHAN`,\n 신협: `SHINHYUP`,\n 씨티: `CITI`,\n 우리: `WOORI`,\n 우체국: `POST`,\n 저축: `SAVINGBANK`,\n 전북: `JEONBUKBANK`,\n 제주: `JEJUBANK`,\n 카카오: `KAKAOBANK`,\n 케이: `KBANK`,\n 토스: `TOSSBANK`,\n 하나: `HANA`,\n SC제일: `SC`,\n} as const;\n\nexport type Bank = keyof typeof Bank;\n\nexport type BankCode = ValueOf;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/dist/CardCompany.d.ts b/node_modules/@tosspayments/sdk-constants/dist/CardCompany.d.ts deleted file mode 100644 index 56d1bb35..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/CardCompany.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { ValueOf } from 'type-fest'; -export declare const CardCompany: { - readonly 신한: "SHINHAN"; - readonly 현대: "HYUNDAI"; - readonly 삼성: "SAMSUNG"; - readonly 우리: "WOORI"; - readonly 국민: "KOOKMIN"; - readonly 롯데: "LOTTE"; - readonly 농협: "NONGHYEOP"; - readonly 하나: "HANA"; - readonly 비씨: "BC"; - readonly 산업: "KDBBANK"; - readonly 토스뱅크: "TOSSBANK"; - readonly 카카오뱅크: "KAKAOBANK"; - readonly KDB: "KDB"; - readonly 수협: "SUHYEOP"; - readonly 전북: "JEONBUKBANK"; - readonly 우체국: "POST"; - readonly 새마을: "SAEMAUL"; - readonly 씨티: "CITI"; - readonly 저축: "SAVINGBANK"; - readonly 제주: "JEJUBANK"; - readonly 광주: "GWANGJUBANK"; - readonly 신협: "SHINHYEOP"; - readonly JCB: "JCB"; - readonly 유니온페이: "UNIONPAY"; - readonly 마스터: "MASTER"; - readonly 비자: "VISA"; - readonly 다이너스: "DINERS"; - readonly 디스커버: "DISCOVER"; -}; -export declare type CardCompany = keyof typeof CardCompany; -export declare type CardCompanyCode = ValueOf; diff --git a/node_modules/@tosspayments/sdk-constants/dist/CardCompany.js b/node_modules/@tosspayments/sdk-constants/dist/CardCompany.js deleted file mode 100644 index bbe92f09..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/CardCompany.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CardCompany = void 0; -exports.CardCompany = { - 신한: 'SHINHAN', - 현대: 'HYUNDAI', - 삼성: 'SAMSUNG', - 우리: 'WOORI', - 국민: 'KOOKMIN', - 롯데: 'LOTTE', - 농협: 'NONGHYEOP', - 하나: 'HANA', - 비씨: 'BC', - 산업: 'KDBBANK', - 토스뱅크: 'TOSSBANK', - 카카오뱅크: 'KAKAOBANK', - KDB: 'KDB', - 수협: 'SUHYEOP', - 전북: 'JEONBUKBANK', - 우체국: 'POST', - 새마을: 'SAEMAUL', - 씨티: 'CITI', - 저축: 'SAVINGBANK', - 제주: 'JEJUBANK', - 광주: 'GWANGJUBANK', - 신협: 'SHINHYEOP', - JCB: 'JCB', - 유니온페이: 'UNIONPAY', - 마스터: 'MASTER', - 비자: 'VISA', - 다이너스: 'DINERS', - 디스커버: 'DISCOVER', -}; -//# sourceMappingURL=CardCompany.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/dist/CardCompany.js.map b/node_modules/@tosspayments/sdk-constants/dist/CardCompany.js.map deleted file mode 100644 index 60d8acb9..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/CardCompany.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CardCompany.js","sourceRoot":"","sources":["../src/CardCompany.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAG;IACzB,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,aAAa;IACjB,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,SAAS;IACd,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,WAAW;IACf,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,UAAU;IACjB,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,UAAU;CACR,CAAC","sourcesContent":["import { ValueOf } from 'type-fest';\n\nexport const CardCompany = {\n 신한: 'SHINHAN',\n 현대: 'HYUNDAI',\n 삼성: 'SAMSUNG',\n 우리: 'WOORI',\n 국민: 'KOOKMIN',\n 롯데: 'LOTTE',\n 농협: 'NONGHYEOP',\n 하나: 'HANA',\n 비씨: 'BC',\n 산업: 'KDBBANK',\n 토스뱅크: 'TOSSBANK',\n 카카오뱅크: 'KAKAOBANK',\n KDB: 'KDB',\n 수협: 'SUHYEOP',\n 전북: 'JEONBUKBANK',\n 우체국: 'POST',\n 새마을: 'SAEMAUL',\n 씨티: 'CITI',\n 저축: 'SAVINGBANK',\n 제주: 'JEJUBANK',\n 광주: 'GWANGJUBANK',\n 신협: 'SHINHYEOP',\n JCB: 'JCB',\n 유니온페이: 'UNIONPAY',\n 마스터: 'MASTER',\n 비자: 'VISA',\n 다이너스: 'DINERS',\n 디스커버: 'DISCOVER',\n} as const;\n\nexport type CardCompany = keyof typeof CardCompany;\n\nexport type CardCompanyCode = ValueOf;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.d.ts b/node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.d.ts deleted file mode 100644 index e2ff3755..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ValueOf } from 'type-fest'; -export declare const EasyPayProvider: { - readonly 토스페이: "TOSSPAY"; - readonly 네이버페이: "NAVERPAY"; - readonly 삼성페이: "SAMSUNGPAY"; - readonly 애플페이: "APPLEPAY"; - readonly 엘페이: "LPAY"; - readonly 카카오페이: "KAKAOPAY"; - readonly 페이코: "PAYCO"; - readonly SSG페이: "SSG"; -}; -export declare type EasyPayProvider = keyof typeof EasyPayProvider; -export declare type EasyPayProviderCode = ValueOf; diff --git a/node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.js b/node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.js deleted file mode 100644 index 37aca11e..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EasyPayProvider = void 0; -exports.EasyPayProvider = { - 토스페이: `TOSSPAY`, - 네이버페이: `NAVERPAY`, - 삼성페이: `SAMSUNGPAY`, - 애플페이: `APPLEPAY`, - 엘페이: `LPAY`, - 카카오페이: `KAKAOPAY`, - 페이코: `PAYCO`, - SSG페이: `SSG`, -}; -//# sourceMappingURL=EasyPayProvider.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.js.map b/node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.js.map deleted file mode 100644 index b53960c1..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/EasyPayProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EasyPayProvider.js","sourceRoot":"","sources":["../src/EasyPayProvider.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAG;IAC7B,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,UAAU;IACjB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,UAAU;IAChB,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,UAAU;IACjB,GAAG,EAAE,OAAO;IACZ,KAAK,EAAE,KAAK;CACJ,CAAC","sourcesContent":["import { ValueOf } from 'type-fest';\n\nexport const EasyPayProvider = {\n 토스페이: `TOSSPAY`,\n 네이버페이: `NAVERPAY`,\n 삼성페이: `SAMSUNGPAY`,\n 애플페이: `APPLEPAY`,\n 엘페이: `LPAY`,\n 카카오페이: `KAKAOPAY`,\n 페이코: `PAYCO`,\n SSG페이: `SSG`,\n} as const;\n\nexport type EasyPayProvider = keyof typeof EasyPayProvider;\n\nexport type EasyPayProviderCode = ValueOf;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.d.ts b/node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.d.ts deleted file mode 100644 index 1a71a6bd..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare const MobileCarrier: { - readonly KT: "KT"; - readonly LGU: "LGU"; - readonly SKT: "SKT"; - readonly HELLO: "HELLO"; - readonly KCT: "KCT"; - readonly SK7: "SK7"; -}; -export declare type MobileCarrier = keyof typeof MobileCarrier; diff --git a/node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.js b/node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.js deleted file mode 100644 index ab6eb3ea..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MobileCarrier = void 0; -exports.MobileCarrier = { - KT: 'KT', - LGU: 'LGU', - SKT: 'SKT', - HELLO: 'HELLO', - KCT: 'KCT', - SK7: 'SK7', -}; -//# sourceMappingURL=MobileCarrier.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.js.map b/node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.js.map deleted file mode 100644 index 51d86344..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/MobileCarrier.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MobileCarrier.js","sourceRoot":"","sources":["../src/MobileCarrier.ts"],"names":[],"mappings":";;;AAAa,QAAA,aAAa,GAAG;IAC3B,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACF,CAAC","sourcesContent":["export const MobileCarrier = {\n KT: 'KT',\n LGU: 'LGU',\n SKT: 'SKT',\n HELLO: 'HELLO',\n KCT: 'KCT',\n SK7: 'SK7',\n} as const;\n\nexport type MobileCarrier = keyof typeof MobileCarrier;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/dist/index.d.ts b/node_modules/@tosspayments/sdk-constants/dist/index.d.ts deleted file mode 100644 index aecb7823..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './Bank'; -export * from './CardCompany'; -export * from './EasyPayProvider'; -export * from './MobileCarrier'; diff --git a/node_modules/@tosspayments/sdk-constants/dist/index.js b/node_modules/@tosspayments/sdk-constants/dist/index.js deleted file mode 100644 index 4f83f7df..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); -}) : (function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -})); -var __exportStar = (this && this.__exportStar) || function(m, exports) { - for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -__exportStar(require("./Bank"), exports); -__exportStar(require("./CardCompany"), exports); -__exportStar(require("./EasyPayProvider"), exports); -__exportStar(require("./MobileCarrier"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/dist/index.js.map b/node_modules/@tosspayments/sdk-constants/dist/index.js.map deleted file mode 100644 index 1a4695d7..00000000 --- a/node_modules/@tosspayments/sdk-constants/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,yCAAuB;AACvB,gDAA8B;AAC9B,oDAAkC;AAClC,kDAAgC","sourcesContent":["export * from './Bank';\nexport * from './CardCompany';\nexport * from './EasyPayProvider';\nexport * from './MobileCarrier';\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/Bank.d.ts b/node_modules/@tosspayments/sdk-constants/esm/Bank.d.ts deleted file mode 100644 index 4945ed44..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/Bank.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { ValueOf } from 'type-fest'; -/** - * @see https://docs.tosspayments.com/reference/codes#%EC%9D%80%ED%96%89-%EC%BD%94%EB%93%9C - */ -export declare const Bank: { - readonly 경남: "KYONGNAMBANK"; - readonly 광주: "GWANGJUBANK"; - readonly 국민: "KOOKMIN"; - readonly 기업: "IBK"; - readonly 농협: "NONGHYEOP"; - readonly 대구: "DAEGUBANK"; - readonly 부산: "BUSANBANK"; - readonly 산업: "KDB"; - readonly 새마을: "SAEMAUL"; - readonly 산림: "SANLIM"; - readonly 수협: "SUHYEOP"; - readonly 신한: "SHINHAN"; - readonly 신협: "SHINHYUP"; - readonly 씨티: "CITI"; - readonly 우리: "WOORI"; - readonly 우체국: "POST"; - readonly 저축: "SAVINGBANK"; - readonly 전북: "JEONBUKBANK"; - readonly 제주: "JEJUBANK"; - readonly 카카오: "KAKAOBANK"; - readonly 케이: "KBANK"; - readonly 토스: "TOSSBANK"; - readonly 하나: "HANA"; - readonly SC제일: "SC"; -}; -export declare type Bank = keyof typeof Bank; -export declare type BankCode = ValueOf; diff --git a/node_modules/@tosspayments/sdk-constants/esm/Bank.js b/node_modules/@tosspayments/sdk-constants/esm/Bank.js deleted file mode 100644 index 063ab047..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/Bank.js +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @see https://docs.tosspayments.com/reference/codes#%EC%9D%80%ED%96%89-%EC%BD%94%EB%93%9C - */ -export const Bank = { - 경남: `KYONGNAMBANK`, - 광주: `GWANGJUBANK`, - 국민: `KOOKMIN`, - 기업: `IBK`, - 농협: `NONGHYEOP`, - 대구: `DAEGUBANK`, - 부산: `BUSANBANK`, - 산업: `KDB`, - 새마을: `SAEMAUL`, - 산림: `SANLIM`, - 수협: `SUHYEOP`, - 신한: `SHINHAN`, - 신협: `SHINHYUP`, - 씨티: `CITI`, - 우리: `WOORI`, - 우체국: `POST`, - 저축: `SAVINGBANK`, - 전북: `JEONBUKBANK`, - 제주: `JEJUBANK`, - 카카오: `KAKAOBANK`, - 케이: `KBANK`, - 토스: `TOSSBANK`, - 하나: `HANA`, - SC제일: `SC`, -}; -//# sourceMappingURL=Bank.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/Bank.js.map b/node_modules/@tosspayments/sdk-constants/esm/Bank.js.map deleted file mode 100644 index e8255154..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/Bank.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Bank.js","sourceRoot":"","sources":["../src/Bank.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG;IAClB,EAAE,EAAE,cAAc;IAClB,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,KAAK;IACT,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,KAAK;IACT,GAAG,EAAE,SAAS;IACd,EAAE,EAAE,QAAQ;IACZ,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,OAAO;IACX,GAAG,EAAE,MAAM;IACX,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,UAAU;IACd,GAAG,EAAE,WAAW;IAChB,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,IAAI;CACF,CAAC","sourcesContent":["import { ValueOf } from 'type-fest';\n\n/**\n * @see https://docs.tosspayments.com/reference/codes#%EC%9D%80%ED%96%89-%EC%BD%94%EB%93%9C\n */\nexport const Bank = {\n 경남: `KYONGNAMBANK`,\n 광주: `GWANGJUBANK`,\n 국민: `KOOKMIN`,\n 기업: `IBK`,\n 농협: `NONGHYEOP`,\n 대구: `DAEGUBANK`,\n 부산: `BUSANBANK`,\n 산업: `KDB`,\n 새마을: `SAEMAUL`,\n 산림: `SANLIM`,\n 수협: `SUHYEOP`,\n 신한: `SHINHAN`,\n 신협: `SHINHYUP`,\n 씨티: `CITI`,\n 우리: `WOORI`,\n 우체국: `POST`,\n 저축: `SAVINGBANK`,\n 전북: `JEONBUKBANK`,\n 제주: `JEJUBANK`,\n 카카오: `KAKAOBANK`,\n 케이: `KBANK`,\n 토스: `TOSSBANK`,\n 하나: `HANA`,\n SC제일: `SC`,\n} as const;\n\nexport type Bank = keyof typeof Bank;\n\nexport type BankCode = ValueOf;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/CardCompany.d.ts b/node_modules/@tosspayments/sdk-constants/esm/CardCompany.d.ts deleted file mode 100644 index 56d1bb35..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/CardCompany.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { ValueOf } from 'type-fest'; -export declare const CardCompany: { - readonly 신한: "SHINHAN"; - readonly 현대: "HYUNDAI"; - readonly 삼성: "SAMSUNG"; - readonly 우리: "WOORI"; - readonly 국민: "KOOKMIN"; - readonly 롯데: "LOTTE"; - readonly 농협: "NONGHYEOP"; - readonly 하나: "HANA"; - readonly 비씨: "BC"; - readonly 산업: "KDBBANK"; - readonly 토스뱅크: "TOSSBANK"; - readonly 카카오뱅크: "KAKAOBANK"; - readonly KDB: "KDB"; - readonly 수협: "SUHYEOP"; - readonly 전북: "JEONBUKBANK"; - readonly 우체국: "POST"; - readonly 새마을: "SAEMAUL"; - readonly 씨티: "CITI"; - readonly 저축: "SAVINGBANK"; - readonly 제주: "JEJUBANK"; - readonly 광주: "GWANGJUBANK"; - readonly 신협: "SHINHYEOP"; - readonly JCB: "JCB"; - readonly 유니온페이: "UNIONPAY"; - readonly 마스터: "MASTER"; - readonly 비자: "VISA"; - readonly 다이너스: "DINERS"; - readonly 디스커버: "DISCOVER"; -}; -export declare type CardCompany = keyof typeof CardCompany; -export declare type CardCompanyCode = ValueOf; diff --git a/node_modules/@tosspayments/sdk-constants/esm/CardCompany.js b/node_modules/@tosspayments/sdk-constants/esm/CardCompany.js deleted file mode 100644 index d6de0bfa..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/CardCompany.js +++ /dev/null @@ -1,31 +0,0 @@ -export const CardCompany = { - 신한: 'SHINHAN', - 현대: 'HYUNDAI', - 삼성: 'SAMSUNG', - 우리: 'WOORI', - 국민: 'KOOKMIN', - 롯데: 'LOTTE', - 농협: 'NONGHYEOP', - 하나: 'HANA', - 비씨: 'BC', - 산업: 'KDBBANK', - 토스뱅크: 'TOSSBANK', - 카카오뱅크: 'KAKAOBANK', - KDB: 'KDB', - 수협: 'SUHYEOP', - 전북: 'JEONBUKBANK', - 우체국: 'POST', - 새마을: 'SAEMAUL', - 씨티: 'CITI', - 저축: 'SAVINGBANK', - 제주: 'JEJUBANK', - 광주: 'GWANGJUBANK', - 신협: 'SHINHYEOP', - JCB: 'JCB', - 유니온페이: 'UNIONPAY', - 마스터: 'MASTER', - 비자: 'VISA', - 다이너스: 'DINERS', - 디스커버: 'DISCOVER', -}; -//# sourceMappingURL=CardCompany.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/CardCompany.js.map b/node_modules/@tosspayments/sdk-constants/esm/CardCompany.js.map deleted file mode 100644 index bb641cfb..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/CardCompany.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CardCompany.js","sourceRoot":"","sources":["../src/CardCompany.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,WAAW;IACf,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,SAAS;IACb,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,KAAK;IACV,EAAE,EAAE,SAAS;IACb,EAAE,EAAE,aAAa;IACjB,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,SAAS;IACd,EAAE,EAAE,MAAM;IACV,EAAE,EAAE,YAAY;IAChB,EAAE,EAAE,UAAU;IACd,EAAE,EAAE,aAAa;IACjB,EAAE,EAAE,WAAW;IACf,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,UAAU;IACjB,GAAG,EAAE,QAAQ;IACb,EAAE,EAAE,MAAM;IACV,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,UAAU;CACR,CAAC","sourcesContent":["import { ValueOf } from 'type-fest';\n\nexport const CardCompany = {\n 신한: 'SHINHAN',\n 현대: 'HYUNDAI',\n 삼성: 'SAMSUNG',\n 우리: 'WOORI',\n 국민: 'KOOKMIN',\n 롯데: 'LOTTE',\n 농협: 'NONGHYEOP',\n 하나: 'HANA',\n 비씨: 'BC',\n 산업: 'KDBBANK',\n 토스뱅크: 'TOSSBANK',\n 카카오뱅크: 'KAKAOBANK',\n KDB: 'KDB',\n 수협: 'SUHYEOP',\n 전북: 'JEONBUKBANK',\n 우체국: 'POST',\n 새마을: 'SAEMAUL',\n 씨티: 'CITI',\n 저축: 'SAVINGBANK',\n 제주: 'JEJUBANK',\n 광주: 'GWANGJUBANK',\n 신협: 'SHINHYEOP',\n JCB: 'JCB',\n 유니온페이: 'UNIONPAY',\n 마스터: 'MASTER',\n 비자: 'VISA',\n 다이너스: 'DINERS',\n 디스커버: 'DISCOVER',\n} as const;\n\nexport type CardCompany = keyof typeof CardCompany;\n\nexport type CardCompanyCode = ValueOf;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.d.ts b/node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.d.ts deleted file mode 100644 index e2ff3755..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ValueOf } from 'type-fest'; -export declare const EasyPayProvider: { - readonly 토스페이: "TOSSPAY"; - readonly 네이버페이: "NAVERPAY"; - readonly 삼성페이: "SAMSUNGPAY"; - readonly 애플페이: "APPLEPAY"; - readonly 엘페이: "LPAY"; - readonly 카카오페이: "KAKAOPAY"; - readonly 페이코: "PAYCO"; - readonly SSG페이: "SSG"; -}; -export declare type EasyPayProvider = keyof typeof EasyPayProvider; -export declare type EasyPayProviderCode = ValueOf; diff --git a/node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.js b/node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.js deleted file mode 100644 index 17e7981b..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.js +++ /dev/null @@ -1,11 +0,0 @@ -export const EasyPayProvider = { - 토스페이: `TOSSPAY`, - 네이버페이: `NAVERPAY`, - 삼성페이: `SAMSUNGPAY`, - 애플페이: `APPLEPAY`, - 엘페이: `LPAY`, - 카카오페이: `KAKAOPAY`, - 페이코: `PAYCO`, - SSG페이: `SSG`, -}; -//# sourceMappingURL=EasyPayProvider.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.js.map b/node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.js.map deleted file mode 100644 index 6a92b7e3..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/EasyPayProvider.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"EasyPayProvider.js","sourceRoot":"","sources":["../src/EasyPayProvider.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,UAAU;IACjB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,UAAU;IAChB,GAAG,EAAE,MAAM;IACX,KAAK,EAAE,UAAU;IACjB,GAAG,EAAE,OAAO;IACZ,KAAK,EAAE,KAAK;CACJ,CAAC","sourcesContent":["import { ValueOf } from 'type-fest';\n\nexport const EasyPayProvider = {\n 토스페이: `TOSSPAY`,\n 네이버페이: `NAVERPAY`,\n 삼성페이: `SAMSUNGPAY`,\n 애플페이: `APPLEPAY`,\n 엘페이: `LPAY`,\n 카카오페이: `KAKAOPAY`,\n 페이코: `PAYCO`,\n SSG페이: `SSG`,\n} as const;\n\nexport type EasyPayProvider = keyof typeof EasyPayProvider;\n\nexport type EasyPayProviderCode = ValueOf;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.d.ts b/node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.d.ts deleted file mode 100644 index 1a71a6bd..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export declare const MobileCarrier: { - readonly KT: "KT"; - readonly LGU: "LGU"; - readonly SKT: "SKT"; - readonly HELLO: "HELLO"; - readonly KCT: "KCT"; - readonly SK7: "SK7"; -}; -export declare type MobileCarrier = keyof typeof MobileCarrier; diff --git a/node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.js b/node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.js deleted file mode 100644 index e1d0a3c8..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.js +++ /dev/null @@ -1,9 +0,0 @@ -export const MobileCarrier = { - KT: 'KT', - LGU: 'LGU', - SKT: 'SKT', - HELLO: 'HELLO', - KCT: 'KCT', - SK7: 'SK7', -}; -//# sourceMappingURL=MobileCarrier.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.js.map b/node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.js.map deleted file mode 100644 index f0908e7d..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/MobileCarrier.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MobileCarrier.js","sourceRoot":"","sources":["../src/MobileCarrier.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,EAAE,EAAE,IAAI;IACR,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,KAAK,EAAE,OAAO;IACd,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACF,CAAC","sourcesContent":["export const MobileCarrier = {\n KT: 'KT',\n LGU: 'LGU',\n SKT: 'SKT',\n HELLO: 'HELLO',\n KCT: 'KCT',\n SK7: 'SK7',\n} as const;\n\nexport type MobileCarrier = keyof typeof MobileCarrier;\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/index.d.ts b/node_modules/@tosspayments/sdk-constants/esm/index.d.ts deleted file mode 100644 index aecb7823..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './Bank'; -export * from './CardCompany'; -export * from './EasyPayProvider'; -export * from './MobileCarrier'; diff --git a/node_modules/@tosspayments/sdk-constants/esm/index.js b/node_modules/@tosspayments/sdk-constants/esm/index.js deleted file mode 100644 index 3a94f7bd..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/index.js +++ /dev/null @@ -1,5 +0,0 @@ -export * from './Bank'; -export * from './CardCompany'; -export * from './EasyPayProvider'; -export * from './MobileCarrier'; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/esm/index.js.map b/node_modules/@tosspayments/sdk-constants/esm/index.js.map deleted file mode 100644 index 6e446c1b..00000000 --- a/node_modules/@tosspayments/sdk-constants/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC","sourcesContent":["export * from './Bank';\nexport * from './CardCompany';\nexport * from './EasyPayProvider';\nexport * from './MobileCarrier';\n"]} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/package.json b/node_modules/@tosspayments/sdk-constants/package.json deleted file mode 100644 index e438e6e9..00000000 --- a/node_modules/@tosspayments/sdk-constants/package.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "name": "@tosspayments/sdk-constants", - "version": "0.2.2", - "description": "Enums and Constants used in Toss Payments SDK.", - "license": "MIT", - "main": "dist/index.js", - "scripts": { - "lint": "yarn run -T eslint '{pages,src}/**/*.{js,jsx,ts,tsx}'", - "lint:fix": "yarn lint --fix", - "typecheck": "tsc --noEmit", - "build": "tsc -p tsconfig.json && tsc -p tsconfig.esm.json", - "prepack": "yarn build" - }, - "devDependencies": { - "@types/node": "^17.0.18", - "typescript": "^4.5.5" - }, - "publishConfig": { - "access": "public", - "main": "dist/index.js", - "types": "dist/index.d.ts", - "module": "esm/index.js" - }, - "dependencies": { - "type-fest": "^2.11.2" - }, - "module": "esm/index.js", - "types": "dist/index.d.ts" -} \ No newline at end of file diff --git a/node_modules/@tosspayments/sdk-constants/src/Bank.ts b/node_modules/@tosspayments/sdk-constants/src/Bank.ts deleted file mode 100644 index c24b89e3..00000000 --- a/node_modules/@tosspayments/sdk-constants/src/Bank.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { ValueOf } from 'type-fest'; - -/** - * @see https://docs.tosspayments.com/reference/codes#%EC%9D%80%ED%96%89-%EC%BD%94%EB%93%9C - */ -export const Bank = { - 경남: `KYONGNAMBANK`, - 광주: `GWANGJUBANK`, - 국민: `KOOKMIN`, - 기업: `IBK`, - 농협: `NONGHYEOP`, - 대구: `DAEGUBANK`, - 부산: `BUSANBANK`, - 산업: `KDB`, - 새마을: `SAEMAUL`, - 산림: `SANLIM`, - 수협: `SUHYEOP`, - 신한: `SHINHAN`, - 신협: `SHINHYUP`, - 씨티: `CITI`, - 우리: `WOORI`, - 우체국: `POST`, - 저축: `SAVINGBANK`, - 전북: `JEONBUKBANK`, - 제주: `JEJUBANK`, - 카카오: `KAKAOBANK`, - 케이: `KBANK`, - 토스: `TOSSBANK`, - 하나: `HANA`, - SC제일: `SC`, -} as const; - -export type Bank = keyof typeof Bank; - -export type BankCode = ValueOf; diff --git a/node_modules/@tosspayments/sdk-constants/src/CardCompany.ts b/node_modules/@tosspayments/sdk-constants/src/CardCompany.ts deleted file mode 100644 index d8d2811e..00000000 --- a/node_modules/@tosspayments/sdk-constants/src/CardCompany.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { ValueOf } from 'type-fest'; - -export const CardCompany = { - 신한: 'SHINHAN', - 현대: 'HYUNDAI', - 삼성: 'SAMSUNG', - 우리: 'WOORI', - 국민: 'KOOKMIN', - 롯데: 'LOTTE', - 농협: 'NONGHYEOP', - 하나: 'HANA', - 비씨: 'BC', - 산업: 'KDBBANK', - 토스뱅크: 'TOSSBANK', - 카카오뱅크: 'KAKAOBANK', - KDB: 'KDB', - 수협: 'SUHYEOP', - 전북: 'JEONBUKBANK', - 우체국: 'POST', - 새마을: 'SAEMAUL', - 씨티: 'CITI', - 저축: 'SAVINGBANK', - 제주: 'JEJUBANK', - 광주: 'GWANGJUBANK', - 신협: 'SHINHYEOP', - JCB: 'JCB', - 유니온페이: 'UNIONPAY', - 마스터: 'MASTER', - 비자: 'VISA', - 다이너스: 'DINERS', - 디스커버: 'DISCOVER', -} as const; - -export type CardCompany = keyof typeof CardCompany; - -export type CardCompanyCode = ValueOf; diff --git a/node_modules/@tosspayments/sdk-constants/src/EasyPayProvider.ts b/node_modules/@tosspayments/sdk-constants/src/EasyPayProvider.ts deleted file mode 100644 index b58fd66d..00000000 --- a/node_modules/@tosspayments/sdk-constants/src/EasyPayProvider.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { ValueOf } from 'type-fest'; - -export const EasyPayProvider = { - 토스페이: `TOSSPAY`, - 네이버페이: `NAVERPAY`, - 삼성페이: `SAMSUNGPAY`, - 애플페이: `APPLEPAY`, - 엘페이: `LPAY`, - 카카오페이: `KAKAOPAY`, - 페이코: `PAYCO`, - SSG페이: `SSG`, -} as const; - -export type EasyPayProvider = keyof typeof EasyPayProvider; - -export type EasyPayProviderCode = ValueOf; diff --git a/node_modules/@tosspayments/sdk-constants/src/MobileCarrier.ts b/node_modules/@tosspayments/sdk-constants/src/MobileCarrier.ts deleted file mode 100644 index 97101dfd..00000000 --- a/node_modules/@tosspayments/sdk-constants/src/MobileCarrier.ts +++ /dev/null @@ -1,10 +0,0 @@ -export const MobileCarrier = { - KT: 'KT', - LGU: 'LGU', - SKT: 'SKT', - HELLO: 'HELLO', - KCT: 'KCT', - SK7: 'SK7', -} as const; - -export type MobileCarrier = keyof typeof MobileCarrier; diff --git a/node_modules/@tosspayments/sdk-constants/src/index.ts b/node_modules/@tosspayments/sdk-constants/src/index.ts deleted file mode 100644 index aecb7823..00000000 --- a/node_modules/@tosspayments/sdk-constants/src/index.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from './Bank'; -export * from './CardCompany'; -export * from './EasyPayProvider'; -export * from './MobileCarrier'; diff --git a/node_modules/@tosspayments/sdk-constants/tsconfig.esm.json b/node_modules/@tosspayments/sdk-constants/tsconfig.esm.json deleted file mode 100644 index 3fe034b4..00000000 --- a/node_modules/@tosspayments/sdk-constants/tsconfig.esm.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "./tsconfig.json", - "compilerOptions": { - "module": "esnext", - "outDir": "./esm" - } -} diff --git a/node_modules/@tosspayments/sdk-constants/tsconfig.json b/node_modules/@tosspayments/sdk-constants/tsconfig.json deleted file mode 100644 index 80400fd8..00000000 --- a/node_modules/@tosspayments/sdk-constants/tsconfig.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "extends": "../../../tsconfig.json", - "compilerOptions": { - "target": "es6", - "module": "commonjs", - "declaration": true, - "outDir": "./dist" - }, - "include": ["src"] -} diff --git a/node_modules/type-fest/index.d.ts b/node_modules/type-fest/index.d.ts deleted file mode 100644 index ee20662e..00000000 --- a/node_modules/type-fest/index.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -// Basic -export * from './source/primitive'; -export * from './source/typed-array'; -export * from './source/basic'; -export * from './source/observable-like'; - -// Utilities -export {Except} from './source/except'; -export {Mutable} from './source/mutable'; -export {Writable} from './source/writable'; -export {Merge} from './source/merge'; -export {MergeExclusive} from './source/merge-exclusive'; -export {RequireAtLeastOne} from './source/require-at-least-one'; -export {RequireExactlyOne} from './source/require-exactly-one'; -export {RequireAllOrNone} from './source/require-all-or-none'; -export {RemoveIndexSignature} from './source/remove-index-signature'; -export {PartialDeep, PartialDeepOptions} from './source/partial-deep'; -export {PartialOnUndefinedDeep, PartialOnUndefinedDeepOptions} from './source/partial-on-undefined-deep'; -export {ReadonlyDeep} from './source/readonly-deep'; -export {LiteralUnion} from './source/literal-union'; -export {Promisable} from './source/promisable'; -export {Opaque, UnwrapOpaque} from './source/opaque'; -export {InvariantOf} from './source/invariant-of'; -export {SetOptional} from './source/set-optional'; -export {SetRequired} from './source/set-required'; -export {SetNonNullable} from './source/set-non-nullable'; -export {ValueOf} from './source/value-of'; -export {PromiseValue} from './source/promise-value'; -export {AsyncReturnType} from './source/async-return-type'; -export {ConditionalExcept} from './source/conditional-except'; -export {ConditionalKeys} from './source/conditional-keys'; -export {ConditionalPick} from './source/conditional-pick'; -export {UnionToIntersection} from './source/union-to-intersection'; -export {Stringified} from './source/stringified'; -export {FixedLengthArray} from './source/fixed-length-array'; -export {MultidimensionalArray} from './source/multidimensional-array'; -export {MultidimensionalReadonlyArray} from './source/multidimensional-readonly-array'; -export {IterableElement} from './source/iterable-element'; -export {Entry} from './source/entry'; -export {Entries} from './source/entries'; -export {SetReturnType} from './source/set-return-type'; -export {Asyncify} from './source/asyncify'; -export {Simplify, SimplifyOptions} from './source/simplify'; -export {Jsonify} from './source/jsonify'; -export {Schema} from './source/schema'; -export {LiteralToPrimitive} from './source/literal-to-primitive'; -export { - PositiveInfinity, - NegativeInfinity, - Finite, - Integer, - Float, - NegativeFloat, - Negative, - NonNegative, - NegativeInteger, - NonNegativeInteger, -} from './source/numeric'; -export {StringKeyOf} from './source/string-key-of'; -export {Exact} from './source/exact'; -export {ReadonlyTuple} from './source/readonly-tuple'; -export {OptionalKeysOf} from './source/optional-keys-of'; -export {HasOptionalKeys} from './source/has-optional-keys'; -export {RequiredKeysOf} from './source/required-keys-of'; -export {HasRequiredKeys} from './source/has-required-keys'; -export {Spread} from './source/spread'; - -// Template literal types -export {CamelCase} from './source/camel-case'; -export {CamelCasedProperties} from './source/camel-cased-properties'; -export {CamelCasedPropertiesDeep} from './source/camel-cased-properties-deep'; -export {KebabCase} from './source/kebab-case'; -export {KebabCasedProperties} from './source/kebab-cased-properties'; -export {KebabCasedPropertiesDeep} from './source/kebab-cased-properties-deep'; -export {PascalCase} from './source/pascal-case'; -export {PascalCasedProperties} from './source/pascal-cased-properties'; -export {PascalCasedPropertiesDeep} from './source/pascal-cased-properties-deep'; -export {SnakeCase} from './source/snake-case'; -export {SnakeCasedProperties} from './source/snake-cased-properties'; -export {SnakeCasedPropertiesDeep} from './source/snake-cased-properties-deep'; -export {ScreamingSnakeCase} from './source/screaming-snake-case'; -export {DelimiterCase} from './source/delimiter-case'; -export {DelimiterCasedProperties} from './source/delimiter-cased-properties'; -export {DelimiterCasedPropertiesDeep} from './source/delimiter-cased-properties-deep'; -export {Join} from './source/join'; -export {Split} from './source/split'; -export {Trim} from './source/trim'; -export {Replace} from './source/replace'; -export {Includes} from './source/includes'; -export {Get} from './source/get'; -export {LastArrayElement} from './source/last-array-element'; - -// Miscellaneous -export {PackageJson} from './source/package-json'; -export {TsConfigJson} from './source/tsconfig-json'; diff --git a/node_modules/type-fest/package.json b/node_modules/type-fest/package.json deleted file mode 100644 index 319558a2..00000000 --- a/node_modules/type-fest/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "type-fest", - "version": "2.19.0", - "description": "A collection of essential TypeScript types", - "license": "(MIT OR CC0-1.0)", - "repository": "sindresorhus/type-fest", - "funding": "https://github.com/sponsors/sindresorhus", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "https://sindresorhus.com" - }, - "engines": { - "node": ">=12.20" - }, - "scripts": { - "test": "xo && tsd && tsc && node script/test/source-files-extension.js" - }, - "files": [ - "index.d.ts", - "source" - ], - "keywords": [ - "typescript", - "ts", - "types", - "utility", - "util", - "utilities", - "omit", - "merge", - "json" - ], - "devDependencies": { - "@sindresorhus/tsconfig": "~0.7.0", - "expect-type": "^0.13.0", - "tsd": "^0.20.0", - "typescript": "^4.6.3", - "xo": "^0.43.0" - }, - "types": "./index.d.ts", - "xo": { - "rules": { - "@typescript-eslint/ban-types": "off", - "@typescript-eslint/indent": "off", - "node/no-unsupported-features/es-builtins": "off", - "import/extensions": "off", - "@typescript-eslint/no-redeclare": "off", - "@typescript-eslint/no-confusing-void-expression": "off" - } - } -} diff --git a/node_modules/type-fest/readme.md b/node_modules/type-fest/readme.md deleted file mode 100644 index 0d310aad..00000000 --- a/node_modules/type-fest/readme.md +++ /dev/null @@ -1,905 +0,0 @@ -
-
-
- type-fest -
-
- A collection of essential TypeScript types -
-
-
-
-
- -
-
-
-
-
- -[![](https://img.shields.io/badge/unicorn-approved-ff69b4.svg)](https://giphy.com/gifs/illustration-rainbow-unicorn-26AHG5KGFxSkUWw1i) -[![npm dependents](https://badgen.net/npm/dependents/type-fest)](https://www.npmjs.com/package/type-fest?activeTab=dependents) -[![npm downloads](https://badgen.net/npm/dt/type-fest)](https://www.npmjs.com/package/type-fest) -[![Docs](https://paka.dev/badges/v0/cute.svg)](https://paka.dev/npm/type-fest) - -Many of the types here should have been built-in. You can help by suggesting some of them to the [TypeScript project](https://github.com/Microsoft/TypeScript/blob/main/CONTRIBUTING.md). - -Either add this package as a dependency or copy-paste the needed types. No credit required. 👌 - -PR welcome for additional commonly needed types and docs improvements. Read the [contributing guidelines](.github/contributing.md) first. - -**Help wanted with reviewing [proposals](https://github.com/sindresorhus/type-fest/issues) and [pull requests](https://github.com/sindresorhus/type-fest/pulls).** - -## Install - -```sh -npm install type-fest -``` - -*Requires TypeScript >=4.2* - -## Usage - -```ts -import type {Except} from 'type-fest'; - -type Foo = { - unicorn: string; - rainbow: boolean; -}; - -type FooWithoutRainbow = Except; -//=> {unicorn: string} -``` - -## API - -Click the type names for complete docs. - -### Basic - -- [`Primitive`](source/primitive.d.ts) - Matches any [primitive value](https://developer.mozilla.org/en-US/docs/Glossary/Primitive). -- [`Class`](source/basic.d.ts) - Matches a [`class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes). -- [`Constructor`](source/basic.d.ts) - Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes). -- [`TypedArray`](source/typed-array.d.ts) - Matches any [typed array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray), like `Uint8Array` or `Float64Array`. -- [`ObservableLike`](source/observable-like.d.ts) - Matches a value that is like an [Observable](https://github.com/tc39/proposal-observable). - -### Utilities - -- [`Except`](source/except.d.ts) - Create a type from an object type without certain keys. This is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys). -- [`Writable`](source/writable.d.ts) - Create a type that strips `readonly` from all or some of an object's keys. The inverse of `Readonly`. Formerly named `Mutable`. -- [`Merge`](source/merge.d.ts) - Merge two types into a new type. Keys of the second type overrides keys of the first type. -- [`MergeExclusive`](source/merge-exclusive.d.ts) - Create a type that has mutually exclusive keys. -- [`RequireAtLeastOne`](source/require-at-least-one.d.ts) - Create a type that requires at least one of the given keys. -- [`RequireExactlyOne`](source/require-exactly-one.d.ts) - Create a type that requires exactly a single key of the given keys and disallows more. -- [`RequireAllOrNone`](source/require-all-or-none.d.ts) - Create a type that requires all of the given keys or none of the given keys. -- [`RemoveIndexSignature`](source/remove-index-signature.d.ts) - Create a type that only has explicitly defined properties, absent of any index signatures. -- [`PartialDeep`](source/partial-deep.d.ts) - Create a deeply optional version of another type. Use [`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype) if you only need one level deep. -- [`PartialOnUndefinedDeep`](source/partial-on-undefined-deep.d.ts) - Create a deep version of another type where all keys accepting `undefined` type are set to optional. -- [`ReadonlyDeep`](source/readonly-deep.d.ts) - Create a deeply immutable version of an `object`/`Map`/`Set`/`Array` type. Use [`Readonly`](https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype) if you only need one level deep. -- [`LiteralUnion`](source/literal-union.d.ts) - Create a union type by combining primitive types and literal types without sacrificing auto-completion in IDEs for the literal type part of the union. Workaround for [Microsoft/TypeScript#29729](https://github.com/Microsoft/TypeScript/issues/29729). -- [`Opaque`](source/opaque.d.ts) - Create an [opaque type](https://codemix.com/opaque-types-in-javascript/). -- [`UnwrapOpaque`](source/opaque.d.ts) - Revert an [opaque type](https://codemix.com/opaque-types-in-javascript/) back to its original type. -- [`InvariantOf`](source/invariant-of.d.ts) - Create an [invariant type](https://basarat.gitbook.io/typescript/type-system/type-compatibility#footnote-invariance), which is a type that does not accept supertypes and subtypes. -- [`SetOptional`](source/set-optional.d.ts) - Create a type that makes the given keys optional. -- [`SetRequired`](source/set-required.d.ts) - Create a type that makes the given keys required. -- [`SetNonNullable`](source/set-non-nullable.d.ts) - Create a type that makes the given keys non-nullable. -- [`ValueOf`](source/value-of.d.ts) - Create a union of the given object's values, and optionally specify which keys to get the values from. -- [`ConditionalKeys`](source/conditional-keys.d.ts) - Extract keys from a shape where values extend the given `Condition` type. -- [`ConditionalPick`](source/conditional-pick.d.ts) - Like `Pick` except it selects properties from a shape where the values extend the given `Condition` type. -- [`ConditionalExcept`](source/conditional-except.d.ts) - Like `Omit` except it removes properties from a shape where the values extend the given `Condition` type. -- [`UnionToIntersection`](source/union-to-intersection.d.ts) - Convert a union type to an intersection type. -- [`LiteralToPrimitive`](source/literal-to-primitive.d.ts) - Convert a [literal type](https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#literal-types) to the [primitive type](source/primitive.d.ts) it belongs to. -- [`Stringified`](source/stringified.d.ts) - Create a type with the keys of the given type changed to `string` type. -- [`IterableElement`](source/iterable-element.d.ts) - Get the element type of an `Iterable`/`AsyncIterable`. For example, an array or a generator. -- [`Entry`](source/entry.d.ts) - Create a type that represents the type of an entry of a collection. -- [`Entries`](source/entries.d.ts) - Create a type that represents the type of the entries of a collection. -- [`SetReturnType`](source/set-return-type.d.ts) - Create a function type with a return type of your choice and the same parameters as the given function type. -- [`Simplify`](source/simplify.d.ts) - Useful to flatten the type output to improve type hints shown in editors. And also to transform an interface into a type to aide with assignability. -- [`Get`](source/get.d.ts) - Get a deeply-nested property from an object using a key path, like [Lodash's `.get()`](https://lodash.com/docs/latest#get) function. -- [`StringKeyOf`](source/string-key-of.d.ts) - Get keys of the given type as strings. -- [`Schema`](source/schema.d.ts) - Create a deep version of another object type where property values are recursively replaced into a given value type. -- [`Exact`](source/exact.d.ts) - Create a type that does not allow extra properties. -- [`OptionalKeysOf`](source/optional-keys-of.d.ts) - Extract all optional keys from the given type. -- [`HasOptionalKeys`](source/has-optional-keys.d.ts) - Create a `true`/`false` type depending on whether the given type has any optional fields. -- [`RequiredKeysOf`](source/required-keys-of.d.ts) - Extract all required keys from the given type. -- [`HasRequiredKeys`](source/has-required-keys.d.ts) - Create a `true`/`false` type depending on whether the given type has any required fields. -- [`Spread`](source/spread.d.ts) - Mimic the type inferred by TypeScript when merging two objects or two arrays/tuples using the spread syntax. - -### JSON - -- [`Jsonify`](source/jsonify.d.ts) - Transform a type to one that is assignable to the `JsonValue` type. -- [`JsonPrimitive`](source/basic.d.ts) - Matches a JSON primitive. -- [`JsonObject`](source/basic.d.ts) - Matches a JSON object. -- [`JsonArray`](source/basic.d.ts) - Matches a JSON array. -- [`JsonValue`](source/basic.d.ts) - Matches any valid JSON value. - -### Async - -- [`Promisable`](source/promisable.d.ts) - Create a type that represents either the value or the value wrapped in `PromiseLike`. -- [`AsyncReturnType`](source/async-return-type.d.ts) - Unwrap the return type of a function that returns a `Promise`. -- [`Asyncify`](source/asyncify.d.ts) - Create an async version of the given function type. - -### String - -- [`Trim`](source/trim.d.ts) - Remove leading and trailing spaces from a string. -- [`Split`](source/split.d.ts) - Represents an array of strings split using a given character or character set. -- [`Replace`](source/replace.d.ts) - Represents a string with some or all matches replaced by a replacement. - -### Array - -- [`Includes`](source/includes.d.ts) - Returns a boolean for whether the given array includes the given item. -- [`Join`](source/join.d.ts) - Join an array of strings and/or numbers using the given string as a delimiter. -- [`LastArrayElement`](source/last-array-element.d.ts) - Extracts the type of the last element of an array. -- [`FixedLengthArray`](source/fixed-length-array.d.ts) - Create a type that represents an array of the given type and length. -- [`MultidimensionalArray`](source/multidimensional-array.d.ts) - Create a type that represents a multidimensional array of the given type and dimensions. -- [`MultidimensionalReadonlyArray`](source/multidimensional-readonly-array.d.ts) - Create a type that represents a multidimensional readonly array of the given type and dimensions. -- [`ReadonlyTuple`](source/readonly-tuple.d.ts) - Create a type that represents a read-only tuple of the given type and length. - -### Numeric - -- [`PositiveInfinity`](source/numeric.d.ts) - Matches the hidden `Infinity` type. -- [`NegativeInfinity`](source/numeric.d.ts) - Matches the hidden `-Infinity` type. -- [`Finite`](source/numeric.d.ts) - A finite `number`. -- [`Integer`](source/numeric.d.ts) - A `number` that is an integer. -- [`Float`](source/numeric.d.ts) - A `number` that is not an integer. -- [`NegativeFloat`](source/numeric.d.ts) - A negative (`-∞ < x < 0`) `number` that is not an integer. -- [`Negative`](source/numeric.d.ts) - A negative `number`/`bigint` (`-∞ < x < 0`) -- [`NonNegative`](source/numeric.d.ts) - A non-negative `number`/`bigint` (`0 <= x < ∞`). -- [`NegativeInteger`](source/numeric.d.ts) - A negative (`-∞ < x < 0`) `number` that is an integer. -- [`NonNegativeInteger`](source/numeric.d.ts) - A non-negative (`0 <= x < ∞`) `number` that is an integer. - -### Change case - -- [`CamelCase`](source/camel-case.d.ts) - Convert a string literal to camel-case (`fooBar`). -- [`CamelCasedProperties`](source/camel-cased-properties.d.ts) - Convert object properties to camel-case (`fooBar`). -- [`CamelCasedPropertiesDeep`](source/camel-cased-properties-deep.d.ts) - Convert object properties to camel-case recursively (`fooBar`). -- [`KebabCase`](source/kebab-case.d.ts) - Convert a string literal to kebab-case (`foo-bar`). -- [`KebabCasedProperties`](source/kebab-cased-properties.d.ts) - Convert a object properties to kebab-case recursively (`foo-bar`). -- [`KebabCasedPropertiesDeep`](source/kebab-cased-properties-deep.d.ts) - Convert object properties to kebab-case (`foo-bar`). -- [`PascalCase`](source/pascal-case.d.ts) - Converts a string literal to pascal-case (`FooBar`) -- [`PascalCasedProperties`](source/pascal-cased-properties.d.ts) - Converts object properties to pascal-case (`FooBar`) -- [`PascalCasedPropertiesDeep`](source/pascal-cased-properties-deep.d.ts) - Converts object properties to pascal-case (`FooBar`) -- [`SnakeCase`](source/snake-case.d.ts) - Convert a string literal to snake-case (`foo_bar`). -- [`SnakeCasedProperties`](source/snake-cased-properties-deep.d.ts) - Convert object properties to snake-case (`foo_bar`). -- [`SnakeCasedPropertiesDeep`](source/snake-cased-properties-deep.d.ts) - Convert object properties to snake-case recursively (`foo_bar`). -- [`ScreamingSnakeCase`](source/screaming-snake-case.d.ts) - Convert a string literal to screaming-snake-case (`FOO_BAR`). -- [`DelimiterCase`](source/delimiter-case.d.ts) - Convert a string literal to a custom string delimiter casing. -- [`DelimiterCasedProperties`](source/delimiter-cased-properties.d.ts) - Convert object properties to a custom string delimiter casing. -- [`DelimiterCasedPropertiesDeep`](source/delimiter-cased-properties-deep.d.ts) - Convert object properties to a custom string delimiter casing recursively. - -### Miscellaneous - -- [`PackageJson`](source/package-json.d.ts) - Type for [npm's `package.json` file](https://docs.npmjs.com/creating-a-package-json-file). It also includes support for [TypeScript Declaration Files](https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html) and [Yarn Workspaces](https://classic.yarnpkg.com/lang/en/docs/workspaces/). -- [`TsConfigJson`](source/tsconfig-json.d.ts) - Type for [TypeScript's `tsconfig.json` file](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html) (TypeScript 4.4). - -## Declined types - -*If we decline a type addition, we will make sure to document the better solution here.* - -- [`Diff` and `Spread`](https://github.com/sindresorhus/type-fest/pull/7) - The pull request author didn't provide any real-world use-cases and the PR went stale. If you think this type is useful, provide some real-world use-cases and we might reconsider. -- [`Dictionary`](https://github.com/sindresorhus/type-fest/issues/33) - You only save a few characters (`Dictionary` vs `Record`) from [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type), which is more flexible and well-known. Also, you shouldn't use an object as a dictionary. We have `Map` in JavaScript now. -- [`ExtractProperties` and `ExtractMethods`](https://github.com/sindresorhus/type-fest/pull/4) - The types violate the single responsibility principle. Instead, refine your types into more granular type hierarchies. -- [`Url2Json`](https://github.com/sindresorhus/type-fest/pull/262) - Inferring search parameters from a URL string is a cute idea, but not very useful in practice, since search parameters are usually dynamic and defined separately. -- [`Nullish`](https://github.com/sindresorhus/type-fest/pull/318) - The type only saves a couple of characters, not everyone knows what "nullish" means, and I'm also trying to [get away from `null`](https://github.com/sindresorhus/meta/discussions/7). -- [`TitleCase`](https://github.com/sindresorhus/type-fest/pull/303) - It's not solving a common need and is a better fit for a separate package. -- [`ExtendOr` and `ExtendAnd`](https://github.com/sindresorhus/type-fest/pull/247) - The benefits don't outweigh having to learn what they mean. -- [`PackageJsonExtras`](https://github.com/sindresorhus/type-fest/issues/371) - There are too many possible configurations that can be put into `package.json`. If you would like to extend `PackageJson` to support an additional configuration in your project, please see the *Extending existing types* section below. - -## Alternative type names - -*If you know one of our types by a different name, add it here for discovery.* - -- `PartialBy` - See [`SetOptional`](https://github.com/sindresorhus/type-fest/blob/main/source/set-optional.d.ts) -- `RecordDeep`- See [`Schema`](https://github.com/sindresorhus/type-fest/blob/main/source/schema.d.ts) - -## Tips - -### Extending existing types - -- [`PackageJson`](source/package-json.d.ts) - There are a lot of tools that place extra configurations inside the `package.json` file. You can extend `PackageJson` to support these additional configurations. -
- - Example - - - [Playground](https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBDAnmApnA3gBQIYGMDW2A5igFIDOEAdnNuXAEJ0o4HFmVUC+cAZlBBBwA5ElQBaXinIxhAbgCwAKFCRYCZGnQAZYFRgooPfoJHSANntmKlysWlaESFanAC8jZo-YuaAMgwLKwBhal5gIgB+AC44XX1DADpQqnCiLhsgA) - - ```ts - import type {PackageJson as BasePackageJson} from 'type-fest'; - import type {Linter} from 'eslint'; - - type PackageJson = BasePackageJson & {eslintConfig?: Linter.Config}; - ``` -
- -### Related - -- [typed-query-selector](https://github.com/g-plane/typed-query-selector) - Enhances `document.querySelector` and `document.querySelectorAll` with a template literal type that matches element types returned from an HTML element query selector. -- [`Linter.Config`](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/eslint/index.d.ts) - Definitions for the [ESLint configuration schema](https://eslint.org/docs/user-guide/configuring/language-options). - -### Built-in types - -There are many advanced types most users don't know about. - -- [`Partial`](https://www.typescriptlang.org/docs/handbook/utility-types.html#partialtype) - Make all properties in `T` optional. -
- - Example - - - [Playground](https://www.typescriptlang.org/play/#code/JYOwLgpgTgZghgYwgAgHIHsAmEDC6QzADmyA3gLABQyycADnanALYQBcyAzmFKEQNxUaddFDAcQAV2YAjaIMoBfKlQQAbOJ05osEAIIMAQpOBrsUMkOR1eANziRkCfISKSoD4Pg4ZseAsTIALyW1DS0DEysHADkvvoMMQA0VsKi4sgAzAAMuVaKClY2wPaOknSYDrguADwA0sgQAB6QIJjaANYQAJ7oMDp+LsQAfAAUXd0cdUnI9mo+uv6uANp1ALoAlKHhyGAAFsCcAHTOAW4eYF4gyxNrwbNwago0ypRWp66jH8QcAApwYmAjxq8SWIy2FDCNDA3ToKFBQyIdR69wmfQG1TOhShyBgomQX3w3GQE2Q6IA8jIAFYQBBgI4TTiEs5bTQYsFInrLTbbHZOIlgZDlSqQABqj0kKBC3yINx6a2xfOQwH6o2FVXFaklwSCIUkbQghBAEEwENSfNOlykEGefNe5uhB2O6sgS3GPRmLogmslG1tLxUOKgEDA7hAuydtteryAA) - - ```ts - interface NodeConfig { - appName: string; - port: number; - } - - class NodeAppBuilder { - private configuration: NodeConfig = { - appName: 'NodeApp', - port: 3000 - }; - - private updateConfig(key: Key, value: NodeConfig[Key]) { - this.configuration[key] = value; - } - - config(config: Partial) { - type NodeConfigKey = keyof NodeConfig; - - for (const key of Object.keys(config) as NodeConfigKey[]) { - const updateValue = config[key]; - - if (updateValue === undefined) { - continue; - } - - this.updateConfig(key, updateValue); - } - - return this; - } - } - - // `Partial`` allows us to provide only a part of the - // NodeConfig interface. - new NodeAppBuilder().config({appName: 'ToDoApp'}); - ``` -
- -- [`Required`](https://www.typescriptlang.org/docs/handbook/utility-types.html#requiredtype) - Make all properties in `T` required. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/AQ4SwOwFwUwJwGYEMDGNgGED21VQGJZwC2wA3gFCjXAzFJgA2A-AFzADOUckA5gNxUaIYjA4ckvGG07c+g6gF8KQkAgCuEFFDA5O6gEbEwUbLm2ESwABQIixACJIoSdgCUYAR3Vg4MACYAPGYuFvYAfACU5Ko0APRxwADKMBD+wFAAFuh2Vv7OSBlYGdmc8ABu8LHKsRyGxqY4oQT21pTCIHQMjOwA5DAAHgACxAAOjDAAdChYxL0ANLHUouKSMH0AEmAAhJhY6ozpAJ77GTCMjMCiV0ToSAb7UJPPC9WRgrEJwAAqR6MwSRQPFGUFocDgRHYxnEfGAowh-zgUCOwF6KwkUl6tXqJhCeEsxDaS1AXSYfUGI3GUxmc0WSneQA) - - ```ts - interface ContactForm { - email?: string; - message?: string; - } - - function submitContactForm(formData: Required) { - // Send the form data to the server. - } - - submitContactForm({ - email: 'ex@mple.com', - message: 'Hi! Could you tell me more about…', - }); - - // TypeScript error: missing property 'message' - submitContactForm({ - email: 'ex@mple.com', - }); - ``` -
- -- [`Readonly`](https://www.typescriptlang.org/docs/handbook/utility-types.html#readonlytype) - Make all properties in `T` readonly. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/AQ4UwOwVwW2AZA9gc3mAbmANsA3gKFCOAHkAzMgGkOJABEwAjKZa2kAUQCcvEu32AMQCGAF2FYBIAL4BufDRABLCKLBcywgMZgEKZOoDCiCGSXI8i4hGEwwALmABnUVxXJ57YFgzZHSVF8sT1BpBSItLGEnJz1kAy5LLy0TM2RHACUwYQATEywATwAeAITjU3MAPnkrCJMXLigtUT4AClxgGztKbyDgaX99I1TzAEokr1BRAAslJwA6FIqLAF48TtswHp9MHDla9hJGACswZvmyLjAwAC8wVpm5xZHkUZDaMKIwqyWXYCW0oN4sNlsA1h0ug5gAByACyBQAggAHJHQ7ZBIFoXbzBjMCz7OoQP5YIaJNYQMAAdziCVaALGNSIAHomcAACoFJFgADKWjcSNEwG4vC4ji0wggEEQguiTnMEGALWAV1yAFp8gVgEjeFyuKICvMrCTgVxnst5jtsGC4ljsPNhXxGaAWcAAOq6YRXYDCRg+RWIcA5JSC+kWdCepQ+v3RYCU3RInzRMCGwlpC19NYBW1Ye08R1AA) - - ```ts - enum LogLevel { - Off, - Debug, - Error, - Fatal - }; - - interface LoggerConfig { - name: string; - level: LogLevel; - } - - class Logger { - config: Readonly; - - constructor({name, level}: LoggerConfig) { - this.config = {name, level}; - Object.freeze(this.config); - } - } - - const config: LoggerConfig = { - name: 'MyApp', - level: LogLevel.Debug - }; - - const logger = new Logger(config); - - // TypeScript Error: cannot assign to read-only property. - logger.config.level = LogLevel.Error; - - // We are able to edit config variable as we please. - config.level = LogLevel.Error; - ``` -
- -- [`Pick`](https://www.typescriptlang.org/docs/handbook/utility-types.html#picktype-keys) - From `T`, pick a set of properties whose keys are in the union `K`. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/AQ4SwOwFwUwJwGYEMDGNgEE5TCgNugN4BQoZwOUBAXMAM5RyQDmA3KeSFABYCuAtgCMISMHloMmENh04oA9tBjQJjFuzIBfYrOAB6PcADCcGElh1gEGAHcKATwAO6ebyjB5CTNlwFwSxFR0BX5HeToYABNgBDh5fm8cfBg6AHIKG3ldA2BHOOcfFNpUygJ0pAhokr4hETFUgDpswywkggAFUwA3MFtgAF5gQgowKhhVKTYKGuFRcXo1aVZgbTIoJ3RW3xhOmB6+wfbcAGsAHi3kgBpgEtGy4AAfG54BWfqAPnZm4AAlZUj4MAkMA8GAGB4vEgfMlLLw6CwPBA8PYRmMgZVgAC6CgmI4cIommQELwICh8RBgKZKvALh1ur0bHQABR5PYMui0Wk7em2ADaAF0AJS0AASABUALIAGQAogR+Mp3CROCAFBBwVC2ikBpj5CgBIqGjizLA5TAFdAmalImAuqlBRoVQh5HBgEy1eDWfs7J5cjzGYKhroVfpDEhHM4MV6GRR5NN0JrtnRg6BVirTFBeHAKYmYY6QNpdB73LmCJZBlSAXAubtvczeSmQMNSuMbmKNgBlHFgPEUNwusBIPAAQlS1xetTmxT0SDoESgdD0C4aACtHMwxytLrohawgA) - - ```ts - interface Article { - title: string; - thumbnail: string; - content: string; - } - - // Creates new type out of the `Article` interface composed - // from the Articles' two properties: `title` and `thumbnail`. - // `ArticlePreview = {title: string; thumbnail: string}` - type ArticlePreview = Pick; - - // Render a list of articles using only title and description. - function renderArticlePreviews(previews: ArticlePreview[]): HTMLElement { - const articles = document.createElement('div'); - - for (const preview of previews) { - // Append preview to the articles. - } - - return articles; - } - - const articles = renderArticlePreviews([ - { - title: 'TypeScript tutorial!', - thumbnail: '/assets/ts.jpg' - } - ]); - ``` -
- -- [`Record`](https://www.typescriptlang.org/docs/handbook/utility-types.html#recordkeys-type) - Construct a type with a set of properties `K` of type `T`. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/AQ4ejYAUHsGcCWAXBMB2dgwGbAKYC2ADgDYwCeeemCaWArgE7ADGMxAhmuQHQBQoYEnJE8wALKEARnkaxEKdMAC8wAOS0kstGuAAfdQBM8ANzxlRjXQbVaWACwC0JPB0NqA3HwGgIwAJJoWozYHCxixnAsjAhStADmwESMMJYo1Fi4HMCIaPEu+MRklHj8gpqyoeHAAKJFFFTAAN4+giDYCIxwSAByHAR4AFw5SDF5Xm2gJBzdfQPD3WPxE5PAlBxdAPLYNQAelgh4aOHDaPQEMowrIAC+3oJ+AMKMrlrAXFhSAFZ4LEhC9g4-0BmA4JBISXgiCkBQABpILrJ5MhUGhYcATGD6Bk4Hh-jNgABrPDkOBlXyQAAq9ngYmJpOAAHcEOCRjAXqwYODfoo6DhakUSph+Uh7GI4P0xER4Cj0OSQGwMP8tP1hgAlX7swwAHgRl2RvIANALSA08ABtAC6AD4VM1Wm0Kow0MMrYaHYJjGYLLJXZb3at1HYnC43Go-QHQDcvA6-JsmEJXARgCDgMYWAhjIYhDAU+YiMAAFIwex0ZmilMITCGF79TLAGRsAgJYAAZRwSEZGzEABFTOZUrJ5Yn+jwnWgeER6HB7AAKJrADpdXqS4ZqYultTG6azVfqHswPBbtauLY7fayQ7HIbAAAMwBuAEoYw9IBq2Ixs9h2eFMOQYPQObALQKJgggABeYhghCIpikkKRpOQRIknAsZUiIeCttECBEP8NSMCkjDDAARMGziuIYxHwYOjDCMBmDNnAuTxA6irdCOBB1Lh5Dqpqn66tISIykawBnOCtqqC0gbjqc9DgpGkxegOliyfJDrRkAA) - - ```ts - // Positions of employees in our company. - type MemberPosition = 'intern' | 'developer' | 'tech-lead'; - - // Interface describing properties of a single employee. - interface Employee { - firstName: string; - lastName: string; - yearsOfExperience: number; - } - - // Create an object that has all possible `MemberPosition` values set as keys. - // Those keys will store a collection of Employees of the same position. - const team: Record = { - intern: [], - developer: [], - 'tech-lead': [], - }; - - // Our team has decided to help John with his dream of becoming Software Developer. - team.intern.push({ - firstName: 'John', - lastName: 'Doe', - yearsOfExperience: 0 - }); - - // `Record` forces you to initialize all of the property keys. - // TypeScript Error: "tech-lead" property is missing - const teamEmpty: Record = { - intern: null, - developer: null, - }; - ``` -
- -- [`Exclude`](https://www.typescriptlang.org/docs/handbook/utility-types.html#excludetype-excludedunion) - Exclude from `T` those types that are assignable to `U`. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/JYOwLgpgTgZghgYwgAgMrQG7QMIHsQzADmyA3gFDLIAOuUYAXMiAK4A2byAPsgM5hRQJHqwC2AI2gBucgF9y5MAE9qKAEoQAjiwj8AEnBAATNtGQBeZAAooWphu26wAGmS3e93bRC8IASgsAPmRDJRlyAHoI5ABRAA8ENhYjFFYOZGVVZBgoXFFkAAM0zh5+QRBhZhYJaAKAOkjogEkQZAQ4X2QAdwALCFbaemRgXmQtFjhOMFwq9K6ULuB0lk6U+HYwZAxJnQaYFhAEMGB8ZCIIMAAFOjAANR2IK0HGWISklIAedCgsKDwCYgAbQA5M9gQBdVzFQJ+JhiSRQMiUYYwayZCC4VHPCzmSzAspCYEBWxgFhQAZwKC+FpgJ43VwARgADH4ZFQSWSBjcZPJyPtDsdTvxKWBvr8rD1DCZoJ5HPopaYoK4EPhCEQmGKcKriLCtrhgEYkVQVT5Nr4fmZLLZtMBbFZgT0wGBqES6ghbHBIJqoBKFdBWQpjfh+DQbhY2tqiHVsbjLMVkAB+ZAAZiZaeQTHOVxu9ySjxNaujNwDVHNvzqbBGkBAdPoAfkQA) - - ```ts - interface ServerConfig { - port: null | string | number; - } - - type RequestHandler = (request: Request, response: Response) => void; - - // Exclude `null` type from `null | string | number`. - // In case the port is equal to `null`, we will use default value. - function getPortValue(port: Exclude): number { - if (typeof port === 'string') { - return parseInt(port, 10); - } - - return port; - } - - function startServer(handler: RequestHandler, config: ServerConfig): void { - const server = require('http').createServer(handler); - - const port = config.port === null ? 3000 : getPortValue(config.port); - server.listen(port); - } - ``` -
- -- [`Extract`](https://www.typescriptlang.org/docs/handbook/utility-types.html#extracttype-union) - Extract from `T` those types that are assignable to `U`. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/CYUwxgNghgTiAEAzArgOzAFwJYHtXzSwEdkQBJYACgEoAueVZAWwCMQYBuAKDDwGcM8MgBF4AXngBlAJ6scESgHIRi6ty5ZUGdoihgEABXZ888AN5d48ANoiAuvUat23K6ihMQ9ATE0BzV3goPy8GZjZOLgBfLi4Aejj4AEEICBwAdz54MAALKFQQ+BxEeAAHY1NgKAwoIKy0grr4DByEUpgccpgMaXgAaxBerCzi+B9-ZulygDouFHRsU1z8kKMYE1RhaqgAHkt4AHkWACt4EAAPbVRgLLWNgBp9gGlBs8uQa6yAUUuYPQwdgNpKM7nh7mMML4CgA+R5WABqUAgpDeVxuhxO1he0jsXGh8EoOBO9COx3BQPo2PBADckaR6IjkSA6PBqTgsMBzPsicdrEC7OJWXSQNwYvFEgAVTS9JLXODpeDpKBZFg4GCoWa8VACIJykAKiQWKy2YQOAioYikCg0OEMDyhRSy4DyxS24KhAAMjyi6gS8AAwjh5OD0iBFHAkJoEOksC1mnkMJq8gUQKDNttKPlnfrwYp3J5XfBHXqoKpfYkAOI4ansTxaeDADmoRSCCBYAbxhC6TDx6rwYHIRX5bScjA4bLJwoDmDwDkfbA9JMrVMVdM1TN69LgkTgwgkchUahqIA) - - ```ts - declare function uniqueId(): number; - - const ID = Symbol('ID'); - - interface Person { - [ID]: number; - name: string; - age: number; - } - - // Allows changing the person data as long as the property key is of string type. - function changePersonData< - Obj extends Person, - Key extends Extract, - Value extends Obj[Key] - > (obj: Obj, key: Key, value: Value): void { - obj[key] = value; - } - - // Tiny Andrew was born. - const andrew = { - [ID]: uniqueId(), - name: 'Andrew', - age: 0, - }; - - // Cool, we're fine with that. - changePersonData(andrew, 'name', 'Pony'); - - // Goverment didn't like the fact that you wanted to change your identity. - changePersonData(andrew, ID, uniqueId()); - ``` -
- -- [`NonNullable`](https://www.typescriptlang.org/docs/handbook/utility-types.html#nonnullabletype) - Exclude `null` and `undefined` from `T`. -
- - Example - - Works with strictNullChecks set to true. - - [Playground](https://typescript-play.js.org/?target=6#code/C4TwDgpgBACg9gJ2AOQK4FsBGEFQLxQDOwCAlgHYDmUAPlORtrnQwDasDcAUFwPQBU-WAEMkUOADMowqAGNWwwoSgATCBIqlgpOOSjAAFsOBRSy1IQgr9cKJlSlW1mZYQA3HFH68u8xcoBlHA8EACEHJ08Aby4oKDBUTFZSWXjEFEYcAEIALihkXTR2YSSIAB54JDQsHAA+blj4xOTUsHSACkMzPKD3HHDHNQQAGjSkPMqMmoQASh7g-oihqBi4uNIpdraxPAI2VhmVxrX9AzMAOm2ppnwoAA4ABifuE4BfKAhWSyOTuK7CS7pao3AhXF5rV48E4ICDAVAIPT-cGQyG+XTEIgLMJLTx7CAAdygvRCA0iCHaMwarhJOIQjUBSHaACJHk8mYdeLwxtdcVAAOSsh58+lXdr7Dlcq7A3n3J4PEUdADMcspUE53OluAIUGVTx46oAKuAIAFZGQwCYAKIIBCILjUxaDHAMnla+iodjcIA) - - ```ts - type PortNumber = string | number | null; - - /** Part of a class definition that is used to build a server */ - class ServerBuilder { - portNumber!: NonNullable; - - port(this: ServerBuilder, port: PortNumber): ServerBuilder { - if (port == null) { - this.portNumber = 8000; - } else { - this.portNumber = port; - } - - return this; - } - } - - const serverBuilder = new ServerBuilder(); - - serverBuilder - .port('8000') // portNumber = '8000' - .port(null) // portNumber = 8000 - .port(3000); // portNumber = 3000 - - // TypeScript error - serverBuilder.portNumber = null; - ``` -
- -- [`Parameters`](https://www.typescriptlang.org/docs/handbook/utility-types.html#parameterstype) - Obtain the parameters of a function type in a tuple. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/GYVwdgxgLglg9mABAZwBYmMANgUwBQxgAOIUAXIgIZgCeA2gLoCUFAbnDACaIDeAUIkQB6IYgCypSlBxUATrMo1ECsJzgBbLEoipqAc0J7EMKMgDkiHLnU4wp46pwAPHMgB0fAL58+oSLARECEosLAA5ABUYG2QAHgAxJGdpVWREPDdMylk9ZApqemZEAF4APipacrw-CApEgBogkKwAYThwckQwEHUAIxxZJl4BYVEImiIZKF0oZRwiWVdbeygJmThgOYgcGFYcbhqApCJsyhtpWXcR1cnEePBoeDAABVPzgbTixFeFd8uEsClADcIxGiygIFkSEOT3SmTc2VydQeRx+ZxwF2QQ34gkEwDgsnSuFmMBKiAADEDjIhYk1Qm0OlSYABqZnYka4xA1DJZHJYkGc7yCbyeRA+CAIZCzNAYbA4CIAdxg2zJwVCkWirjwMswuEaACYmCCgA) - - ```ts - function shuffle(input: any[]): void { - // Mutate array randomly changing its' elements indexes. - } - - function callNTimes any> (func: Fn, callCount: number) { - // Type that represents the type of the received function parameters. - type FunctionParameters = Parameters; - - return function (...args: FunctionParameters) { - for (let i = 0; i < callCount; i++) { - func(...args); - } - } - } - - const shuffleTwice = callNTimes(shuffle, 2); - ``` -
- -- [`ConstructorParameters`](https://www.typescriptlang.org/docs/handbook/utility-types.html#constructorparameterstype) - Obtain the parameters of a constructor function type in a tuple. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/MYGwhgzhAECCBOAXAlqApgWQPYBM0mgG8AoaaFRENALmgkXmQDsBzAblOmCycTV4D8teo1YdO3JiICuwRFngAKClWENmLAJRFOZRAAtkEAHQq00ALzlklNBzIBfYk+KhIMAJJTEYJsDQAwmDA+mgAPAAq0GgAHnxMODCKTGgA7tCKxllg8CwQtL4AngDaALraFgB80EWa1SRkAA6MAG5gfNAB4FABPDJyCrQR9tDNyG0dwMGhtBhgjWEiGgA00F70vv4RhY3hEZXVVinpc42KmuJkkv3y8Bly8EPaDWTkhiZd7r3e8LK3llwGCMXGQWGhEOsfH5zJlsrl8p0+gw-goAAo5MAAW3BaHgEEilU0tEhmzQ212BJ0ry4SOg+kg+gBBiMximIGA0nAfAQLGk2N4EAAEgzYcYcnkLsRdDTvNEYkYUKwSdCme9WdM0MYwYhFPSIPpJdTkAAzDKxBUaZX+aAAQgsVmkCTQxuYaBw2ng4Ok8CYcotSu8pMur09iG9vuObxZnx6SN+AyUWTF8MN0CcZE4Ywm5jZHK5aB5fP4iCFIqT4oRRTKRLo6lYVNeAHpG50wOzOe1zHr9NLQ+HoABybsD4HOKXXRA1JCoKhBELmI5pNaB6Fz0KKBAodDYPAgSUTmqYsAALx4m5nC6nW9nGq14KtaEUA9gR9PvuNCjQ9BgACNvcwNBtAcLiAA) - - ```ts - class ArticleModel { - title: string; - content?: string; - - constructor(title: string) { - this.title = title; - } - } - - class InstanceCache any)> { - private ClassConstructor: T; - private cache: Map> = new Map(); - - constructor (ctr: T) { - this.ClassConstructor = ctr; - } - - getInstance (...args: ConstructorParameters): InstanceType { - const hash = this.calculateArgumentsHash(...args); - - const existingInstance = this.cache.get(hash); - if (existingInstance !== undefined) { - return existingInstance; - } - - return new this.ClassConstructor(...args); - } - - private calculateArgumentsHash(...args: any[]): string { - // Calculate hash. - return 'hash'; - } - } - - const articleCache = new InstanceCache(ArticleModel); - const amazonArticle = articleCache.getInstance('Amazon forests burining!'); - ``` -
- -- [`ReturnType`](https://www.typescriptlang.org/docs/handbook/utility-types.html#returntypetype) - Obtain the return type of a function type. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/MYGwhgzhAECSAmICmBlJAnAbgS2E6A3gFDTTwD2AcuQC4AW2AdgOYAUAlAFzSbnbyEAvkWFFQkGJSQB3GMVI1sNZNwg10TZgG4S0YOUY0kh1es07d+xmvQBXYDXLpWi5UlMaWAGj0GjJ6BtNdkJdBQYIADpXZGgAXmgYpB1ScOwoq38aeN9DYxoU6GFRKzVoJjUwRjwAYXJbPPRuAFkwAAcAHgAxBodsAx9GWwBbACMMAD4cxhloVraOCyYjdAAzMDxoOut1e0d0UNIZ6WhWSPOwdGYIbiqATwBtAF0uaHudUQB6ACpv6ABpJBINqJdAbADW0Do5BOw3u5R2VTwMHIq2gAANtjZ0bkbHsnFCwJh8ONjHp0EgwEZ4JFoN9PkRVr1FAZoMwkDRYIjqkgOrosepoEgAB7+eAwAV2BxOLy6ACCVxgIrFEoMeOl6AACpcwMMORgIB1JRMiBNWKVdhruJKfOdIpdrtwFddXlzKjyACp3Nq842HaDIbL6BrZBIVGhIpB1EMYSLsmjmtWW-YhAA+qegAAYLKQLQj3ZsEsdccmnGcLor2Dn8xGedHGpEIBzEzspfsfMHDNAANTQACMVaIljV5GQkRA5DYmIpVKQAgAJARO9le33BDXIyi0YuLW2nJFGLqkOvxFB0YPdBSaLZ0IwNzyPkO8-xkGgsLh8Al427a3hWAhXwwHA8EHT5PmgAB1bAQBAANJ24adKWpft72RaBUTgRBUCAj89HAM8xCTaBjggABRQx0DuHJv25P9dCkWRZVIAAiBjoFImpmjlFBgA0NpsjadByDacgIDAEAIAAQmYpjoGYgAZSBsmGPw6DtZiiFA8CoJguDmAQmoZ2QvtUKQLdoAYmBTwgdEiCAA) - - ```ts - /** Provides every element of the iterable `iter` into the `callback` function and stores the results in an array. */ - function mapIter< - Elem, - Func extends (elem: Elem) => any, - Ret extends ReturnType - >(iter: Iterable, callback: Func): Ret[] { - const mapped: Ret[] = []; - - for (const elem of iter) { - mapped.push(callback(elem)); - } - - return mapped; - } - - const setObject: Set = new Set(); - const mapObject: Map = new Map(); - - mapIter(setObject, (value: string) => value.indexOf('Foo')); // number[] - - mapIter(mapObject, ([key, value]: [number, string]) => { - return key % 2 === 0 ? value : 'Odd'; - }); // string[] - ``` -
- -- [`InstanceType`](https://www.typescriptlang.org/docs/handbook/utility-types.html#instancetypetype) - Obtain the instance type of a constructor function type. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/MYGwhgzhAECSAmICmBlJAnAbgS2E6A3gFDTTwD2AcuQC4AW2AdgOYAUAlAFzSbnbyEAvkWFFQkGJSQB3GMVI1sNZNwg10TZgG4S0YOUY0kh1es07d+xmvQBXYDXLpWi5UlMaWAGj0GjJ6BtNdkJdBQYIADpXZGgAXmgYpB1ScOwoq38aeN9DYxoU6GFRKzVoJjUwRjwAYXJbPPRuAFkwAAcAHgAxBodsAx9GWwBbACMMAD4cxhloVraOCyYjdAAzMDxoOut1e0d0UNIZ6WhWSPOwdGYIbiqATwBtAF0uaHudUQB6ACpv6ABpJBINqJdAbADW0Do5BOw3u5R2VTwMHIq2gAANtjZ0bkbHsnFCwJh8ONjHp0EgwEZ4JFoN9PkRVr1FAZoMwkDRYIjqkgOrosepoEgAB7+eAwAV2BxOLy6ACCVxgIrFEoMeOl6AACpcwMMORgIB1JRMiBNWKVdhruJKfOdIpdrtwFddXlzKjyACp3Nq842HaDIbL6BrZBIVGhIpB1EMYSLsmjmtWW-YhAA+qegAAYLKQLQj3ZsEsdccmnGcLor2Dn8xGedHGpEIBzEzspfsfMHDNAANTQACMVaIljV5GQkRA5DYmIpVKQAgAJARO9le33BDXIyi0YuLW2nJFGLqkOvxFB0YPdBSaLZ0IwNzyPkO8-xkGgsLh8Al427a3hWAhXwwHA8EHT5PmgAB1bAQBAANJ24adKWpft72RaBUTgRBUCAj89HAM8xCTaBjggABRQx0DuHJv25P9dCkWRZVIAAiBjoFImpmjlFBgA0NpsjadByDacgIDAEAIAAQmYpjoGYgAZSBsmGPw6DtZiiFA8CoJguDmAQmoZ2QvtUKQLdoAYmBTwgdEiCAA) - - ```ts - class IdleService { - doNothing (): void {} - } - - class News { - title: string; - content: string; - - constructor(title: string, content: string) { - this.title = title; - this.content = content; - } - } - - const instanceCounter: Map = new Map(); - - interface Constructor { - new(...args: any[]): any; - } - - // Keep track how many instances of `Constr` constructor have been created. - function getInstance< - Constr extends Constructor, - Args extends ConstructorParameters - >(constructor: Constr, ...args: Args): InstanceType { - let count = instanceCounter.get(constructor) || 0; - - const instance = new constructor(...args); - - instanceCounter.set(constructor, count + 1); - - console.log(`Created ${count + 1} instances of ${Constr.name} class`); - - return instance; - } - - - const idleService = getInstance(IdleService); - // Will log: `Created 1 instances of IdleService class` - const newsEntry = getInstance(News, 'New ECMAScript proposals!', 'Last month...'); - // Will log: `Created 1 instances of News class` - ``` -
- -- [`Omit`](https://www.typescriptlang.org/docs/handbook/utility-types.html#omittype-keys) - Constructs a type by picking all properties from T and then removing K. -
- - Example - - - [Playground](https://typescript-play.js.org/?target=6#code/JYOwLgpgTgZghgYwgAgIImAWzgG2QbwChlks4BzCAVShwC5kBnMKUcgbmKYAcIFgIjBs1YgOXMpSFMWbANoBdTiW5woFddwAW0kfKWEAvoUIB6U8gDCUCHEiNkICAHdkYAJ69kz4GC3JcPG4oAHteKDABBxCYNAxsPFBIWEQUCAAPJG4wZABySUFcgJAAEzMLXNV1ck0dIuCw6EjBADpy5AB1FAQ4EGQAV0YUP2AHDy8wEOQbUugmBLwtEIA3OcmQnEjuZBgQqE7gAGtgZAhwKHdkHFGwNvGUdDIcAGUliIBJEF3kAF5kAHlML4ADyPBIAGjyBUYRQAPnkqho4NoYQA+TiEGD9EAISIhPozErQMG4AASK2gn2+AApek9pCSXm8wFSQooAJQMUkAFQAsgAZACiOAgmDOOSIJAQ+OYyGl4DgoDmf2QJRCCH6YvALQQNjsEGFovF1NyJWAy1y7OUyHMyE+yRAuFImG4Iq1YDswHxbRINjA-SgfXlHqVUE4xiAA) - - ```ts - interface Animal { - imageUrl: string; - species: string; - images: string[]; - paragraphs: string[]; - } - - // Creates new type with all properties of the `Animal` interface - // except 'images' and 'paragraphs' properties. We can use this - // type to render small hover tooltip for a wiki entry list. - type AnimalShortInfo = Omit; - - function renderAnimalHoverInfo (animals: AnimalShortInfo[]): HTMLElement { - const container = document.createElement('div'); - // Internal implementation. - return container; - } - ``` -
- -- [`Uppercase`](https://www.typescriptlang.org/docs/handbook/utility-types.html#uppercasestringtype) - Transforms every character in a string into uppercase. -
- - Example - - - ```ts - type T = Uppercase<'hello'>; // 'HELLO' - - type T2 = Uppercase<'foo' | 'bar'>; // 'FOO' | 'BAR' - - type T3 = Uppercase<`aB${S}`>; - type T4 = T3<'xYz'>; // 'ABXYZ' - - type T5 = Uppercase; // string - type T6 = Uppercase; // any - type T7 = Uppercase; // never - type T8 = Uppercase<42>; // Error, type 'number' does not satisfy the constraint 'string' - ``` -
- -- [`Lowercase`](https://www.typescriptlang.org/docs/handbook/utility-types.html#lowercasestringtype) - Transforms every character in a string into lowercase. -
- - Example - - - ```ts - type T = Lowercase<'HELLO'>; // 'hello' - - type T2 = Lowercase<'FOO' | 'BAR'>; // 'foo' | 'bar' - - type T3 = Lowercase<`aB${S}`>; - type T4 = T3<'xYz'>; // 'abxyz' - - type T5 = Lowercase; // string - type T6 = Lowercase; // any - type T7 = Lowercase; // never - type T8 = Lowercase<42>; // Error, type 'number' does not satisfy the constraint 'string' - ``` -
- -- [`Capitalize`](https://www.typescriptlang.org/docs/handbook/utility-types.html#capitalizestringtype) - Transforms the first character in a string into uppercase. -
- - Example - - - ```ts - type T = Capitalize<'hello'>; // 'Hello' - - type T2 = Capitalize<'foo' | 'bar'>; // 'Foo' | 'Bar' - - type T3 = Capitalize<`aB${S}`>; - type T4 = T3<'xYz'>; // 'ABxYz' - - type T5 = Capitalize; // string - type T6 = Capitalize; // any - type T7 = Capitalize; // never - type T8 = Capitalize<42>; // Error, type 'number' does not satisfy the constraint 'string' - ``` -
- -- [`Uncapitalize`](https://www.typescriptlang.org/docs/handbook/utility-types.html#uncapitalizestringtype) - Transforms the first character in a string into lowercase. -
- - Example - - - ```ts - type T = Uncapitalize<'Hello'>; // 'hello' - - type T2 = Uncapitalize<'Foo' | 'Bar'>; // 'foo' | 'bar' - - type T3 = Uncapitalize<`AB${S}`>; - type T4 = T3<'xYz'>; // 'aBxYz' - - type T5 = Uncapitalize; // string - type T6 = Uncapitalize; // any - type T7 = Uncapitalize; // never - type T8 = Uncapitalize<42>; // Error, type 'number' does not satisfy the constraint 'string' - ``` -
- -You can find some examples in the [TypeScript docs](https://www.typescriptlang.org/docs/handbook/utility-types.html). - -## Maintainers - -- [Sindre Sorhus](https://github.com/sindresorhus) -- [Jarek Radosz](https://github.com/CvX) -- [Dimitri Benin](https://github.com/BendingBender) -- [Pelle Wessman](https://github.com/voxpelli) - -## License - -SPDX-License-Identifier: (MIT OR CC0-1.0) - ---- - -
- - Get professional support for this package with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/node_modules/type-fest/source/async-return-type.d.ts b/node_modules/type-fest/source/async-return-type.d.ts deleted file mode 100644 index 57cc3631..00000000 --- a/node_modules/type-fest/source/async-return-type.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type {PromiseValue} from './promise-value'; - -type AsyncFunction = (...args: any[]) => Promise; - -/** -Unwrap the return type of a function that returns a `Promise`. - -There has been [discussion](https://github.com/microsoft/TypeScript/pull/35998) about implementing this type in TypeScript. - -@example -```ts -import type {AsyncReturnType} from 'type-fest'; -import {asyncFunction} from 'api'; - -// This type resolves to the unwrapped return type of `asyncFunction`. -type Value = AsyncReturnType; - -async function doSomething(value: Value) {} - -asyncFunction().then(value => doSomething(value)); -``` - -@category Async -*/ -export type AsyncReturnType = PromiseValue>; diff --git a/node_modules/type-fest/source/asyncify.d.ts b/node_modules/type-fest/source/asyncify.d.ts deleted file mode 100644 index 6726b7e1..00000000 --- a/node_modules/type-fest/source/asyncify.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import type {PromiseValue} from './promise-value'; -import type {SetReturnType} from './set-return-type'; - -/** -Create an async version of the given function type, by boxing the return type in `Promise` while keeping the same parameter types. - -Use-case: You have two functions, one synchronous and one asynchronous that do the same thing. Instead of having to duplicate the type definition, you can use `Asyncify` to reuse the synchronous type. - -@example -``` -import type {Asyncify} from 'type-fest'; - -// Synchronous function. -function getFooSync(someArg: SomeType): Foo { - // … -} - -type AsyncifiedFooGetter = Asyncify; -//=> type AsyncifiedFooGetter = (someArg: SomeType) => Promise; - -// Same as `getFooSync` but asynchronous. -const getFooAsync: AsyncifiedFooGetter = (someArg) => { - // TypeScript now knows that `someArg` is `SomeType` automatically. - // It also knows that this function must return `Promise`. - // If you have `@typescript-eslint/promise-function-async` linter rule enabled, it will even report that "Functions that return promises must be async.". - - // … -} -``` - -@category Async -*/ -export type Asyncify any> = SetReturnType>>>; diff --git a/node_modules/type-fest/source/basic.d.ts b/node_modules/type-fest/source/basic.d.ts deleted file mode 100644 index ac74fdc9..00000000 --- a/node_modules/type-fest/source/basic.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -/** -Matches a [`class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes). - -@category Class -*/ -export type Class = Constructor & {prototype: T}; - -/** -Matches a [`class` constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes). - -@category Class -*/ -export type Constructor = new(...arguments_: Arguments) => T; - -/** -Matches a JSON object. - -This type can be useful to enforce some input to be JSON-compatible or as a super-type to be extended from. Don't use this as a direct return type as the user would have to double-cast it: `jsonObject as unknown as CustomResponse`. Instead, you could extend your CustomResponse type from it to ensure your type only uses JSON-compatible types: `interface CustomResponse extends JsonObject { … }`. - -@category JSON -*/ -export type JsonObject = {[Key in string]?: JsonValue}; - -/** -Matches a JSON array. - -@category JSON -*/ -export type JsonArray = JsonValue[]; - -/** -Matches any valid JSON primitive value. - -@category JSON -*/ -export type JsonPrimitive = string | number | boolean | null; - -/** -Matches any valid JSON value. - -@see `Jsonify` if you need to transform a type to one that is assignable to `JsonValue`. - -@category JSON -*/ -export type JsonValue = JsonPrimitive | JsonObject | JsonArray; diff --git a/node_modules/type-fest/source/camel-case.d.ts b/node_modules/type-fest/source/camel-case.d.ts deleted file mode 100644 index bcf54fc9..00000000 --- a/node_modules/type-fest/source/camel-case.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import type {WordSeparators} from '../source/internal'; -import type {Split} from './split'; - -/** -Step by step takes the first item in an array literal, formats it and adds it to a string literal, and then recursively appends the remainder. - -Only to be used by `CamelCaseStringArray<>`. - -@see CamelCaseStringArray -*/ -type InnerCamelCaseStringArray = - Parts extends [`${infer FirstPart}`, ...infer RemainingParts] - ? FirstPart extends undefined - ? '' - : FirstPart extends '' - ? InnerCamelCaseStringArray - : `${PreviousPart extends '' ? FirstPart : Capitalize}${InnerCamelCaseStringArray}` - : ''; - -/** -Starts fusing the output of `Split<>`, an array literal of strings, into a camel-cased string literal. - -It's separate from `InnerCamelCaseStringArray<>` to keep a clean API outwards to the rest of the code. - -@see Split -*/ -type CamelCaseStringArray = - Parts extends [`${infer FirstPart}`, ...infer RemainingParts] - ? Uncapitalize<`${FirstPart}${InnerCamelCaseStringArray}`> - : never; - -/** -Convert a string literal to camel-case. - -This can be useful when, for example, converting some kebab-cased command-line flags or a snake-cased database result. - -@example -``` -import type {CamelCase} from 'type-fest'; - -// Simple - -const someVariable: CamelCase<'foo-bar'> = 'fooBar'; - -// Advanced - -type CamelCasedProperties = { - [K in keyof T as CamelCase]: T[K] -}; - -interface RawOptions { - 'dry-run': boolean; - 'full_family_name': string; - foo: number; - BAR: string; - QUZ_QUX: number; - 'OTHER-FIELD': boolean; -} - -const dbResult: CamelCasedProperties = { - dryRun: true, - fullFamilyName: 'bar.js', - foo: 123, - bar: 'foo', - quzQux: 6, - otherField: false -}; -``` - -@category Change case -@category Template literal -*/ -export type CamelCase = K extends string ? CamelCaseStringArray ? Lowercase : K, WordSeparators>> : K; diff --git a/node_modules/type-fest/source/camel-cased-properties-deep.d.ts b/node_modules/type-fest/source/camel-cased-properties-deep.d.ts deleted file mode 100644 index c821dc46..00000000 --- a/node_modules/type-fest/source/camel-cased-properties-deep.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -import type {CamelCase} from './camel-case'; - -/** -Convert object properties to camel case recursively. - -This can be useful when, for example, converting some API types from a different style. - -@see CamelCasedProperties -@see CamelCase - -@example -``` -import type {CamelCasedPropertiesDeep} from 'type-fest'; - -interface User { - UserId: number; - UserName: string; -} - -interface UserWithFriends { - UserInfo: User; - UserFriends: User[]; -} - -const result: CamelCasedPropertiesDeep = { - userInfo: { - userId: 1, - userName: 'Tom', - }, - userFriends: [ - { - userId: 2, - userName: 'Jerry', - }, - { - userId: 3, - userName: 'Spike', - }, - ], -}; -``` - -@category Change case -@category Template literal -@category Object -*/ -export type CamelCasedPropertiesDeep = Value extends Function - ? Value - : Value extends Array - ? Array> - : Value extends Set - ? Set> : { - [K in keyof Value as CamelCase]: CamelCasedPropertiesDeep; - }; diff --git a/node_modules/type-fest/source/camel-cased-properties.d.ts b/node_modules/type-fest/source/camel-cased-properties.d.ts deleted file mode 100644 index afe0629e..00000000 --- a/node_modules/type-fest/source/camel-cased-properties.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import type {CamelCase} from './camel-case'; - -/** -Convert object properties to camel case but not recursively. - -This can be useful when, for example, converting some API types from a different style. - -@see CamelCasedPropertiesDeep -@see CamelCase - -@example -``` -import type {CamelCasedProperties} from 'type-fest'; - -interface User { - UserId: number; - UserName: string; -} - -const result: CamelCasedProperties = { - userId: 1, - userName: 'Tom', -}; -``` - -@category Change case -@category Template literal -@category Object -*/ -export type CamelCasedProperties = Value extends Function - ? Value - : Value extends Array - ? Value - : { - [K in keyof Value as CamelCase]: Value[K]; - }; diff --git a/node_modules/type-fest/source/conditional-except.d.ts b/node_modules/type-fest/source/conditional-except.d.ts deleted file mode 100644 index d61792a9..00000000 --- a/node_modules/type-fest/source/conditional-except.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import type {Except} from './except'; -import type {ConditionalKeys} from './conditional-keys'; - -/** -Exclude keys from a shape that matches the given `Condition`. - -This is useful when you want to create a new type with a specific set of keys from a shape. For example, you might want to exclude all the primitive properties from a class and form a new shape containing everything but the primitive properties. - -@example -``` -import type {Primitive, ConditionalExcept} from 'type-fest'; - -class Awesome { - name: string; - successes: number; - failures: bigint; - - run() {} -} - -type ExceptPrimitivesFromAwesome = ConditionalExcept; -//=> {run: () => void} -``` - -@example -``` -import type {ConditionalExcept} from 'type-fest'; - -interface Example { - a: string; - b: string | number; - c: () => void; - d: {}; -} - -type NonStringKeysOnly = ConditionalExcept; -//=> {b: string | number; c: () => void; d: {}} -``` - -@category Object -*/ -export type ConditionalExcept = Except< - Base, - ConditionalKeys ->; diff --git a/node_modules/type-fest/source/conditional-keys.d.ts b/node_modules/type-fest/source/conditional-keys.d.ts deleted file mode 100644 index c337dbb2..00000000 --- a/node_modules/type-fest/source/conditional-keys.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/** -Extract the keys from a type where the value type of the key extends the given `Condition`. - -Internally this is used for the `ConditionalPick` and `ConditionalExcept` types. - -@example -``` -import type {ConditionalKeys} from 'type-fest'; - -interface Example { - a: string; - b: string | number; - c?: string; - d: {}; -} - -type StringKeysOnly = ConditionalKeys; -//=> 'a' -``` - -To support partial types, make sure your `Condition` is a union of undefined (for example, `string | undefined`) as demonstrated below. - -@example -``` -import type {ConditionalKeys} from 'type-fest'; - -type StringKeysAndUndefined = ConditionalKeys; -//=> 'a' | 'c' -``` - -@category Object -*/ -export type ConditionalKeys = NonNullable< - // Wrap in `NonNullable` to strip away the `undefined` type from the produced union. - { - // Map through all the keys of the given base type. - [Key in keyof Base]: - // Pick only keys with types extending the given `Condition` type. - Base[Key] extends Condition - // Retain this key since the condition passes. - ? Key - // Discard this key since the condition fails. - : never; - - // Convert the produced object into a union type of the keys which passed the conditional test. - }[keyof Base] ->; diff --git a/node_modules/type-fest/source/conditional-pick.d.ts b/node_modules/type-fest/source/conditional-pick.d.ts deleted file mode 100644 index f90e399b..00000000 --- a/node_modules/type-fest/source/conditional-pick.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import type {ConditionalKeys} from './conditional-keys'; - -/** -Pick keys from the shape that matches the given `Condition`. - -This is useful when you want to create a new type from a specific subset of an existing type. For example, you might want to pick all the primitive properties from a class and form a new automatically derived type. - -@example -``` -import type {Primitive, ConditionalPick} from 'type-fest'; - -class Awesome { - name: string; - successes: number; - failures: bigint; - - run() {} -} - -type PickPrimitivesFromAwesome = ConditionalPick; -//=> {name: string; successes: number; failures: bigint} -``` - -@example -``` -import type {ConditionalPick} from 'type-fest'; - -interface Example { - a: string; - b: string | number; - c: () => void; - d: {}; -} - -type StringKeysOnly = ConditionalPick; -//=> {a: string} -``` - -@category Object -*/ -export type ConditionalPick = Pick< - Base, - ConditionalKeys ->; diff --git a/node_modules/type-fest/source/delimiter-case.d.ts b/node_modules/type-fest/source/delimiter-case.d.ts deleted file mode 100644 index 770707ef..00000000 --- a/node_modules/type-fest/source/delimiter-case.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import type {UpperCaseCharacters, WordSeparators} from '../source/internal'; - -/** -Unlike a simpler split, this one includes the delimiter splitted on in the resulting array literal. This is to enable splitting on, for example, upper-case characters. - -@category Template literal -*/ -export type SplitIncludingDelimiters = - Source extends '' ? [] : - Source extends `${infer FirstPart}${Delimiter}${infer SecondPart}` ? - ( - Source extends `${FirstPart}${infer UsedDelimiter}${SecondPart}` - ? UsedDelimiter extends Delimiter - ? Source extends `${infer FirstPart}${UsedDelimiter}${infer SecondPart}` - ? [...SplitIncludingDelimiters, UsedDelimiter, ...SplitIncludingDelimiters] - : never - : never - : never - ) : - [Source]; - -/** -Format a specific part of the splitted string literal that `StringArrayToDelimiterCase<>` fuses together, ensuring desired casing. - -@see StringArrayToDelimiterCase -*/ -type StringPartToDelimiterCase = - StringPart extends UsedWordSeparators ? Delimiter : - Start extends true ? Lowercase : - StringPart extends UsedUpperCaseCharacters ? `${Delimiter}${Lowercase}` : - StringPart; - -/** -Takes the result of a splitted string literal and recursively concatenates it together into the desired casing. - -It receives `UsedWordSeparators` and `UsedUpperCaseCharacters` as input to ensure it's fully encapsulated. - -@see SplitIncludingDelimiters -*/ -type StringArrayToDelimiterCase = - Parts extends [`${infer FirstPart}`, ...infer RemainingParts] - ? `${StringPartToDelimiterCase}${StringArrayToDelimiterCase}` - : Parts extends [string] - ? string - : ''; - -/** -Convert a string literal to a custom string delimiter casing. - -This can be useful when, for example, converting a camel-cased object property to an oddly cased one. - -@see KebabCase -@see SnakeCase - -@example -``` -import type {DelimiterCase} from 'type-fest'; - -// Simple - -const someVariable: DelimiterCase<'fooBar', '#'> = 'foo#bar'; - -// Advanced - -type OddlyCasedProperties = { - [K in keyof T as DelimiterCase]: T[K] -}; - -interface SomeOptions { - dryRun: boolean; - includeFile: string; - foo: number; -} - -const rawCliOptions: OddlyCasedProperties = { - 'dry#run': true, - 'include#file': 'bar.js', - foo: 123 -}; -``` - -@category Change case -@category Template literal -*/ -export type DelimiterCase = Value extends string - ? StringArrayToDelimiterCase< - SplitIncludingDelimiters, - true, - WordSeparators, - UpperCaseCharacters, - Delimiter - > - : Value; diff --git a/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts b/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts deleted file mode 100644 index 36b4725f..00000000 --- a/node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -import type {DelimiterCase} from './delimiter-case'; - -/** -Convert object properties to delimiter case recursively. - -This can be useful when, for example, converting some API types from a different style. - -@see DelimiterCase -@see DelimiterCasedProperties - -@example -``` -import type {DelimiterCasedPropertiesDeep} from 'type-fest'; - -interface User { - userId: number; - userName: string; -} - -interface UserWithFriends { - userInfo: User; - userFriends: User[]; -} - -const result: DelimiterCasedPropertiesDeep = { - 'user-info': { - 'user-id': 1, - 'user-name': 'Tom', - }, - 'user-friends': [ - { - 'user-id': 2, - 'user-name': 'Jerry', - }, - { - 'user-id': 3, - 'user-name': 'Spike', - }, - ], -}; -``` - -@category Change case -@category Template literal -@category Object -*/ -export type DelimiterCasedPropertiesDeep< - Value, - Delimiter extends string, -> = Value extends Function | Date | RegExp - ? Value - : Value extends Array - ? Array> - : Value extends Set - ? Set> : { - [K in keyof Value as DelimiterCase< - K, - Delimiter - >]: DelimiterCasedPropertiesDeep; - }; diff --git a/node_modules/type-fest/source/delimiter-cased-properties.d.ts b/node_modules/type-fest/source/delimiter-cased-properties.d.ts deleted file mode 100644 index 03b76af5..00000000 --- a/node_modules/type-fest/source/delimiter-cased-properties.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import type {DelimiterCase} from './delimiter-case'; - -/** -Convert object properties to delimiter case but not recursively. - -This can be useful when, for example, converting some API types from a different style. - -@see DelimiterCase -@see DelimiterCasedPropertiesDeep - -@example -``` -import type {DelimiterCasedProperties} from 'type-fest'; - -interface User { - userId: number; - userName: string; -} - -const result: DelimiterCasedProperties = { - 'user-id': 1, - 'user-name': 'Tom', -}; -``` - -@category Change case -@category Template literal -@category Object -*/ -export type DelimiterCasedProperties< - Value, - Delimiter extends string, -> = Value extends Function - ? Value - : Value extends Array - ? Value - : {[K in keyof Value as DelimiterCase]: Value[K]}; diff --git a/node_modules/type-fest/source/entries.d.ts b/node_modules/type-fest/source/entries.d.ts deleted file mode 100644 index 9fe2fd32..00000000 --- a/node_modules/type-fest/source/entries.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import type {ArrayEntry, MapEntry, ObjectEntry, SetEntry} from './entry'; - -type ArrayEntries = Array>; -type MapEntries = Array>; -type ObjectEntries = Array>; -type SetEntries> = Array>; - -/** -Many collections have an `entries` method which returns an array of a given object's own enumerable string-keyed property [key, value] pairs. The `Entries` type will return the type of that collection's entries. - -For example the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries|`Object`}, {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries|`Map`}, {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries|`Array`}, and {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/entries|`Set`} collections all have this method. Note that `WeakMap` and `WeakSet` do not have this method since their entries are not enumerable. - -@see `Entry` if you want to just access the type of a single entry. - -@example -``` -import type {Entries} from 'type-fest'; - -interface Example { - someKey: number; -} - -const manipulatesEntries = (examples: Entries) => examples.map(example => [ - // Does some arbitrary processing on the key (with type information available) - example[0].toUpperCase(), - - // Does some arbitrary processing on the value (with type information available) - example[1].toFixed() -]); - -const example: Example = {someKey: 1}; -const entries = Object.entries(example) as Entries; -const output = manipulatesEntries(entries); - -// Objects -const objectExample = {a: 1}; -const objectEntries: Entries = [['a', 1]]; - -// Arrays -const arrayExample = ['a', 1]; -const arrayEntries: Entries = [[0, 'a'], [1, 1]]; - -// Maps -const mapExample = new Map([['a', 1]]); -const mapEntries: Entries = [['a', 1]]; - -// Sets -const setExample = new Set(['a', 1]); -const setEntries: Entries = [['a', 'a'], [1, 1]]; -``` - -@category Object -@category Map -@category Set -@category Array -*/ -export type Entries = - BaseType extends Map ? MapEntries - : BaseType extends Set ? SetEntries - : BaseType extends readonly unknown[] ? ArrayEntries - : BaseType extends object ? ObjectEntries - : never; diff --git a/node_modules/type-fest/source/entry.d.ts b/node_modules/type-fest/source/entry.d.ts deleted file mode 100644 index 678b67a1..00000000 --- a/node_modules/type-fest/source/entry.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -type MapKey = BaseType extends Map ? KeyType : never; -type MapValue = BaseType extends Map ? ValueType : never; - -export type ArrayEntry = [number, BaseType[number]]; -export type MapEntry = [MapKey, MapValue]; -export type ObjectEntry = [keyof BaseType, BaseType[keyof BaseType]]; -export type SetEntry = BaseType extends Set ? [ItemType, ItemType] : never; - -/** -Many collections have an `entries` method which returns an array of a given object's own enumerable string-keyed property [key, value] pairs. The `Entry` type will return the type of that collection's entry. - -For example the {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries|`Object`}, {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/entries|`Map`}, {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries|`Array`}, and {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set/entries|`Set`} collections all have this method. Note that `WeakMap` and `WeakSet` do not have this method since their entries are not enumerable. - -@see `Entries` if you want to just access the type of the array of entries (which is the return of the `.entries()` method). - -@example -``` -import type {Entry} from 'type-fest'; - -interface Example { - someKey: number; -} - -const manipulatesEntry = (example: Entry) => [ - // Does some arbitrary processing on the key (with type information available) - example[0].toUpperCase(), - - // Does some arbitrary processing on the value (with type information available) - example[1].toFixed(), -]; - -const example: Example = {someKey: 1}; -const entry = Object.entries(example)[0] as Entry; -const output = manipulatesEntry(entry); - -// Objects -const objectExample = {a: 1}; -const objectEntry: Entry = ['a', 1]; - -// Arrays -const arrayExample = ['a', 1]; -const arrayEntryString: Entry = [0, 'a']; -const arrayEntryNumber: Entry = [1, 1]; - -// Maps -const mapExample = new Map([['a', 1]]); -const mapEntry: Entry = ['a', 1]; - -// Sets -const setExample = new Set(['a', 1]); -const setEntryString: Entry = ['a', 'a']; -const setEntryNumber: Entry = [1, 1]; -``` - -@category Object -@category Map -@category Array -@category Set -*/ -export type Entry = - BaseType extends Map ? MapEntry - : BaseType extends Set ? SetEntry - : BaseType extends readonly unknown[] ? ArrayEntry - : BaseType extends object ? ObjectEntry - : never; diff --git a/node_modules/type-fest/source/exact.d.ts b/node_modules/type-fest/source/exact.d.ts deleted file mode 100644 index 0227f3d0..00000000 --- a/node_modules/type-fest/source/exact.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import type {KeysOfUnion} from './internal'; - -/** -Extract the element of an array that also works for array union. - -Returns `never` if T is not an array. - -It creates a type-safe way to access the element type of `unknown` type. -*/ -type ArrayElement = T extends readonly unknown[] ? T[0] : never; - -/** -Extract the object field type if T is an object and K is a key of T, return `never` otherwise. - -It creates a type-safe way to access the member type of `unknown` type. -*/ -type ObjectValue = K extends keyof T ? T[K] : never; - -/** -Create a type from `ParameterType` and `InputType` and change keys exclusive to `InputType` to `never`. -- Generate a list of keys that exists in `InputType` but not in `ParameterType`. -- Mark these excess keys as `never`. -*/ -type ExactObject = {[Key in keyof ParameterType]: Exact>} - & Record>, never>; - -/** -Create a type that does not allow extra properties, meaning it only allows properties that are explicitly declared. - -This is useful for function type-guarding to reject arguments with excess properties. Due to the nature of TypeScript, it does not complain if excess properties are provided unless the provided value is an object literal. - -*Please upvote [this issue](https://github.com/microsoft/TypeScript/issues/12936) if you want to have this type as a built-in in TypeScript.* - -@example -``` -type OnlyAcceptName = {name: string}; - -function onlyAcceptName(args: OnlyAcceptName) {} - -// TypeScript complains about excess properties when an object literal is provided. -onlyAcceptName({name: 'name', id: 1}); -//=> `id` is excess - -// TypeScript does not complain about excess properties when the provided value is a variable (not an object literal). -const invalidInput = {name: 'name', id: 1}; -onlyAcceptName(invalidInput); // No errors -``` - -Having `Exact` allows TypeScript to reject excess properties. - -@example -``` -import {Exact} from 'type-fest'; - -type OnlyAcceptName = {name: string}; - -function onlyAcceptNameImproved>(args: T) {} - -const invalidInput = {name: 'name', id: 1}; -onlyAcceptNameImproved(invalidInput); // Compilation error -``` - -[Read more](https://stackoverflow.com/questions/49580725/is-it-possible-to-restrict-typescript-object-to-contain-only-properties-defined) - -@category Utilities -*/ -export type Exact = - // Convert union of array to array of union: A[] & B[] => (A & B)[] - ParameterType extends unknown[] ? Array, ArrayElement>> - // In TypeScript, Array is a subtype of ReadonlyArray, so always test Array before ReadonlyArray. - : ParameterType extends readonly unknown[] ? ReadonlyArray, ArrayElement>> - : ParameterType extends object ? ExactObject - : ParameterType; diff --git a/node_modules/type-fest/source/except.d.ts b/node_modules/type-fest/source/except.d.ts deleted file mode 100644 index dab21d54..00000000 --- a/node_modules/type-fest/source/except.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -import type {IsEqual} from './internal'; - -/** -Filter out keys from an object. - -Returns `never` if `Exclude` is strictly equal to `Key`. -Returns `never` if `Key` extends `Exclude`. -Returns `Key` otherwise. - -@example -``` -type Filtered = Filter<'foo', 'foo'>; -//=> never -``` - -@example -``` -type Filtered = Filter<'bar', string>; -//=> never -``` - -@example -``` -type Filtered = Filter<'bar', 'foo'>; -//=> 'bar' -``` - -@see {Except} -*/ -type Filter = IsEqual extends true ? never : (KeyType extends ExcludeType ? never : KeyType); - -/** -Create a type from an object type without certain keys. - -This type is a stricter version of [`Omit`](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-5.html#the-omit-helper-type). The `Omit` type does not restrict the omitted keys to be keys present on the given type, while `Except` does. The benefits of a stricter type are avoiding typos and allowing the compiler to pick up on rename refactors automatically. - -This type was proposed to the TypeScript team, which declined it, saying they prefer that libraries implement stricter versions of the built-in types ([microsoft/TypeScript#30825](https://github.com/microsoft/TypeScript/issues/30825#issuecomment-523668235)). - -@example -``` -import type {Except} from 'type-fest'; - -type Foo = { - a: number; - b: string; - c: boolean; -}; - -type FooWithoutA = Except; -//=> {b: string}; -``` - -@category Object -*/ -export type Except = { - [KeyType in keyof ObjectType as Filter]: ObjectType[KeyType]; -}; diff --git a/node_modules/type-fest/source/fixed-length-array.d.ts b/node_modules/type-fest/source/fixed-length-array.d.ts deleted file mode 100644 index 9152e906..00000000 --- a/node_modules/type-fest/source/fixed-length-array.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -/** -Methods to exclude. -*/ -type ArrayLengthMutationKeys = 'splice' | 'push' | 'pop' | 'shift' | 'unshift'; - -/** -Create a type that represents an array of the given type and length. The array's length and the `Array` prototype methods that manipulate its length are excluded in the resulting type. - -Please participate in [this issue](https://github.com/microsoft/TypeScript/issues/26223) if you want to have a similiar type built into TypeScript. - -Use-cases: -- Declaring fixed-length tuples or arrays with a large number of items. -- Creating a range union (for example, `0 | 1 | 2 | 3 | 4` from the keys of such a type) without having to resort to recursive types. -- Creating an array of coordinates with a static length, for example, length of 3 for a 3D vector. - -Note: This type does not prevent out-of-bounds access. Prefer `ReadonlyTuple` unless you need mutability. - -@example -``` -import type {FixedLengthArray} from 'type-fest'; - -type FencingTeam = FixedLengthArray; - -const guestFencingTeam: FencingTeam = ['Josh', 'Michael', 'Robert']; - -const homeFencingTeam: FencingTeam = ['George', 'John']; -//=> error TS2322: Type string[] is not assignable to type 'FencingTeam' - -guestFencingTeam.push('Sam'); -//=> error TS2339: Property 'push' does not exist on type 'FencingTeam' -``` - -@category Array -@see ReadonlyTuple -*/ -export type FixedLengthArray = Pick< - ArrayPrototype, - Exclude -> & { - [index: number]: Element; - [Symbol.iterator]: () => IterableIterator; - readonly length: Length; -}; diff --git a/node_modules/type-fest/source/get.d.ts b/node_modules/type-fest/source/get.d.ts deleted file mode 100644 index a95394c0..00000000 --- a/node_modules/type-fest/source/get.d.ts +++ /dev/null @@ -1,184 +0,0 @@ -import type {StringDigit} from '../source/internal'; -import type {Split} from './split'; -import type {StringKeyOf} from './string-key-of'; - -type GetOptions = { - strict?: boolean; -}; - -/** -Like the `Get` type but receives an array of strings as a path parameter. -*/ -type GetWithPath = - Keys extends [] - ? BaseType - : Keys extends readonly [infer Head, ...infer Tail] - ? GetWithPath< - PropertyOf, Options>, - Extract, - Options - > - : never; - -/** -Adds `undefined` to `Type` if `strict` is enabled. -*/ -type Strictify = - Options['strict'] extends true ? Type | undefined : Type; - -/** -If `Options['strict']` is `true`, includes `undefined` in the returned type when accessing properties on `Record`. - -Known limitations: -- Does not include `undefined` in the type on object types with an index signature (for example, `{a: string; [key: string]: string}`). -*/ -type StrictPropertyOf = - Record extends BaseType - ? string extends keyof BaseType - ? Strictify // Record - : BaseType[Key] // Record<'a' | 'b', any> (Records with a string union as keys have required properties) - : BaseType[Key]; - -/** -Splits a dot-prop style path into a tuple comprised of the properties in the path. Handles square-bracket notation. - -@example -``` -ToPath<'foo.bar.baz'> -//=> ['foo', 'bar', 'baz'] - -ToPath<'foo[0].bar.baz'> -//=> ['foo', '0', 'bar', 'baz'] -``` -*/ -type ToPath = Split, '.'>; - -/** -Replaces square-bracketed dot notation with dots, for example, `foo[0].bar` -> `foo.0.bar`. -*/ -type FixPathSquareBrackets = - Path extends `[${infer Head}]${infer Tail}` - ? Tail extends `[${string}` - ? `${Head}.${FixPathSquareBrackets}` - : `${Head}${FixPathSquareBrackets}` - : Path extends `${infer Head}[${infer Middle}]${infer Tail}` - ? `${Head}.${FixPathSquareBrackets<`[${Middle}]${Tail}`>}` - : Path; - -/** -Returns true if `LongString` is made up out of `Substring` repeated 0 or more times. - -@example -``` -ConsistsOnlyOf<'aaa', 'a'> //=> true -ConsistsOnlyOf<'ababab', 'ab'> //=> true -ConsistsOnlyOf<'aBa', 'a'> //=> false -ConsistsOnlyOf<'', 'a'> //=> true -``` -*/ -type ConsistsOnlyOf = - LongString extends '' - ? true - : LongString extends `${Substring}${infer Tail}` - ? ConsistsOnlyOf - : false; - -/** -Convert a type which may have number keys to one with string keys, making it possible to index using strings retrieved from template types. - -@example -``` -type WithNumbers = {foo: string; 0: boolean}; -type WithStrings = WithStringKeys; - -type WithNumbersKeys = keyof WithNumbers; -//=> 'foo' | 0 -type WithStringsKeys = keyof WithStrings; -//=> 'foo' | '0' -``` -*/ -type WithStringKeys = { - [Key in StringKeyOf]: UncheckedIndex -}; - -/** -Perform a `T[U]` operation if `T` supports indexing. -*/ -type UncheckedIndex = [T] extends [Record] ? T[U] : never; - -/** -Get a property of an object or array. Works when indexing arrays using number-literal-strings, for example, `PropertyOf = number`, and when indexing objects with number keys. - -Note: -- Returns `unknown` if `Key` is not a property of `BaseType`, since TypeScript uses structural typing, and it cannot be guaranteed that extra properties unknown to the type system will exist at runtime. -- Returns `undefined` from nullish values, to match the behaviour of most deep-key libraries like `lodash`, `dot-prop`, etc. -*/ -type PropertyOf = - BaseType extends null | undefined - ? undefined - : Key extends keyof BaseType - ? StrictPropertyOf - : BaseType extends [] | [unknown, ...unknown[]] - ? unknown // It's a tuple, but `Key` did not extend `keyof BaseType`. So the index is out of bounds. - : BaseType extends { - [n: number]: infer Item; - length: number; // Note: This is needed to avoid being too lax with records types using number keys like `{0: string; 1: boolean}`. - } - ? ( - ConsistsOnlyOf extends true - ? Strictify - : unknown - ) - : Key extends keyof WithStringKeys - ? StrictPropertyOf, Key, Options> - : unknown; - -// This works by first splitting the path based on `.` and `[...]` characters into a tuple of string keys. Then it recursively uses the head key to get the next property of the current object, until there are no keys left. Number keys extract the item type from arrays, or are converted to strings to extract types from tuples and dictionaries with number keys. -/** -Get a deeply-nested property from an object using a key path, like Lodash's `.get()` function. - -Use-case: Retrieve a property from deep inside an API response or some other complex object. - -@example -``` -import type {Get} from 'type-fest'; -import * as lodash from 'lodash'; - -const get = (object: BaseType, path: Path): Get => - lodash.get(object, path); - -interface ApiResponse { - hits: { - hits: Array<{ - _id: string - _source: { - name: Array<{ - given: string[] - family: string - }> - birthDate: string - } - }> - } -} - -const getName = (apiResponse: ApiResponse) => - get(apiResponse, 'hits.hits[0]._source.name'); - //=> Array<{given: string[]; family: string}> - -// Path also supports a readonly array of strings -const getNameWithPathArray = (apiResponse: ApiResponse) => - get(apiResponse, ['hits','hits', '0', '_source', 'name'] as const); - //=> Array<{given: string[]; family: string}> - -// Strict mode: -Get //=> string | undefined -Get, 'foo', {strict: true}> // => string | undefined -``` - -@category Object -@category Array -@category Template literal -*/ -export type Get = - GetWithPath : Path, Options>; diff --git a/node_modules/type-fest/source/has-optional-keys.d.ts b/node_modules/type-fest/source/has-optional-keys.d.ts deleted file mode 100644 index 597e8aaa..00000000 --- a/node_modules/type-fest/source/has-optional-keys.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import {OptionalKeysOf} from './optional-keys-of'; - -/** -Creates a type that represents `true` or `false` depending on whether the given type has any optional fields. - -This is useful when you want to create an API whose behavior depends on the presence or absence of optional fields. - -@example -``` -import type {HasOptionalKeys, OptionalKeysOf} from 'type-fest'; - -type UpdateService = { - removeField: HasOptionalKeys extends true - ? (field: OptionalKeysOf) => Promise - : never -} -``` - -@category Utilities -*/ -export type HasOptionalKeys = OptionalKeysOf extends never ? false : true; diff --git a/node_modules/type-fest/source/has-required-keys.d.ts b/node_modules/type-fest/source/has-required-keys.d.ts deleted file mode 100644 index ec9daf36..00000000 --- a/node_modules/type-fest/source/has-required-keys.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -import {RequiredKeysOf} from './required-keys-of'; - -/** -Creates a type that represents `true` or `false` depending on whether the given type has any required fields. - -This is useful when you want to create an API whose behavior depends on the presence or absence of required fields. - -@example -``` -import type {HasRequiredKeys} from 'type-fest'; - -type GeneratorOptions