@withwiz/toolkit 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ko.md +235 -0
- package/README.md +57 -26
- package/dist/{chunk-V6YD53NH.js → chunk-23LQJYZN.js} +5 -2
- package/dist/{chunk-ZTRASVGZ.js → chunk-34L7HTM7.js} +1 -1
- package/dist/{chunk-GSUCBWML.js → chunk-3RK3MKAR.js} +5 -2
- package/dist/{chunk-6JXHXIEH.js → chunk-3UIKCS56.js} +2 -2
- package/dist/{chunk-MNYVAEXK.js → chunk-4ROIPF33.js} +16 -3
- package/dist/{chunk-DUIQUAHR.js → chunk-4TGPAUJV.js} +4 -4
- package/dist/{chunk-P4CZVRSG.js → chunk-4XPXZNBX.js} +18 -11
- package/dist/{chunk-LG3KM5V3.js → chunk-5I3EQHR4.js} +6 -2
- package/dist/chunk-63EKUOJH.js +72 -0
- package/dist/{chunk-N5VOFGF3.js → chunk-75UDFONR.js} +5 -4
- package/dist/{chunk-T4643SEW.js → chunk-7KIM5MHV.js} +4 -4
- package/dist/{chunk-TF5RJ5Q2.js → chunk-7S2PCYNT.js} +5 -5
- package/dist/{chunk-2SIBG5BG.js → chunk-7YWUKMZD.js} +7 -0
- package/dist/{chunk-7X2N4VZM.js → chunk-ATBYGPLP.js} +1 -1
- package/dist/{chunk-A74POWYY.js → chunk-B7AJJKOY.js} +1 -1
- package/dist/{chunk-HKW4JA45.js → chunk-BRBOGLFT.js} +10 -10
- package/dist/{chunk-ZFNIHVVA.js → chunk-BRFW2LL2.js} +5 -5
- package/dist/{chunk-I4NT6G2T.js → chunk-DRTJSTEV.js} +2 -2
- package/dist/{chunk-H5KYXSYZ.js → chunk-DVCGAI5N.js} +2 -12
- package/dist/{chunk-AV7ELXHG.js → chunk-E5TDIRBJ.js} +2 -2
- package/dist/{chunk-Q5ERE4M3.js → chunk-HGVPZSWW.js} +18 -13
- package/dist/{chunk-2QVDB6UO.js → chunk-HV6A6Z5R.js} +1 -1
- package/dist/chunk-ILMPKSWS.js +125 -0
- package/dist/{chunk-J5NLAZV2.js → chunk-JHUWZ6YW.js} +2 -2
- package/dist/{chunk-LON5THYQ.js → chunk-KLMKCYIN.js} +1 -1
- package/dist/{chunk-4KJZRI74.js → chunk-KWUOLKDO.js} +1 -1
- package/dist/{chunk-GJO2MPC3.js → chunk-LCYDMYZS.js} +1 -1
- package/dist/{chunk-UP3VFIVQ.js → chunk-LL3VWKY4.js} +1 -1
- package/dist/{chunk-IMAFMUZ7.js → chunk-LSS3GJUE.js} +3 -2
- package/dist/{chunk-2PFSRVVD.js → chunk-LWHLB2Y6.js} +84 -18
- package/dist/{chunk-BBE4RXR7.js → chunk-MTZXWVW3.js} +17 -6
- package/dist/{chunk-ORMEWXMH.js → chunk-N3ETBM74.js} +1 -14
- package/dist/{chunk-UKPMQBU2.js → chunk-N3TCQ5BF.js} +6 -5
- package/dist/{chunk-TMTN7H46.js → chunk-NLV7IEYM.js} +7 -6
- package/dist/{chunk-P2VPYAJZ.js → chunk-NTZBMWB6.js} +6 -6
- package/dist/{chunk-ZVGEGDYF.js → chunk-OII5BXCZ.js} +1 -1
- package/dist/{chunk-2JGSS4RM.js → chunk-PRPMEHRE.js} +2 -2
- package/dist/{chunk-KG65BFPK.js → chunk-QAIN3WNN.js} +1 -1
- package/dist/{chunk-2MYD2BFJ.js → chunk-R7EFDSPZ.js} +7 -7
- package/dist/{chunk-VJE4HA2C.js → chunk-RWCPRPEP.js} +3 -2
- package/dist/{chunk-4YDBQZ5M.js → chunk-SCAFDDJP.js} +14 -14
- package/dist/{chunk-KXYDTC4A.js → chunk-SNFPZD6L.js} +11 -2
- package/dist/{chunk-BL6QHL5L.js → chunk-SXBDP3CK.js} +3 -3
- package/dist/{chunk-B5VRZ2VJ.js → chunk-TNDEYJEL.js} +25 -6
- package/dist/{chunk-Q4XDPK5B.js → chunk-TRGFXIEF.js} +3 -3
- package/dist/{chunk-VNDL2E44.js → chunk-U52U5SK7.js} +2 -2
- package/dist/{chunk-3KYSGBVF.js → chunk-UWOWKOOQ.js} +5 -3
- package/dist/{chunk-TQ3XHHZK.js → chunk-V3WZFUY3.js} +9 -9
- package/dist/{chunk-5BBVV2EX.js → chunk-VH57Y5Z4.js} +1 -1
- package/dist/{chunk-5S7M2AJL.js → chunk-VWAB4PM7.js} +1 -1
- package/dist/{chunk-AQZPGOEZ.js → chunk-VWKZMGPJ.js} +5 -4
- package/dist/{chunk-4K27YLAE.js → chunk-VZ2PQA4U.js} +2 -2
- package/dist/{chunk-ZOWEW4GY.js → chunk-WBHX4MJV.js} +2 -2
- package/dist/{chunk-UMRKMF3E.js → chunk-WXOWI7BJ.js} +2 -2
- package/dist/chunk-XAGPZLRK.js +106 -0
- package/dist/{chunk-AWIORJAI.js → chunk-XF3WUF3F.js} +2 -2
- package/dist/{chunk-M5ZYAQBB.js → chunk-XKIBJJA3.js} +28 -24
- package/dist/{chunk-ZLYBY3R4.js → chunk-XTGS6JJB.js} +10 -5
- package/dist/{chunk-KCDJIW2F.js → chunk-XXPB4C37.js} +5 -5
- package/dist/{chunk-LUIYCIF7.js → chunk-Y4ME3Q5K.js} +2 -2
- package/dist/{chunk-Q66VOVGN.js → chunk-Y4WPEIKW.js} +1 -1
- package/dist/{chunk-TUA5XW5Z.js → chunk-Y6CPPBJI.js} +1 -1
- package/dist/{chunk-PRWWB4QY.js → chunk-ZEHNCHIV.js} +2 -2
- package/dist/{chunk-D73ZJQMX.js → chunk-ZZABL54F.js} +13 -0
- package/dist/core/auth/config.d.ts +3 -0
- package/dist/core/auth/config.js +3 -3
- package/dist/core/auth/email/index.d.ts +3 -3
- package/dist/core/auth/email/index.js +3 -3
- package/dist/core/auth/email/sender.d.ts +1 -1
- package/dist/core/auth/email/sender.js +2 -2
- package/dist/core/auth/email/token-generator.d.ts +11 -0
- package/dist/core/auth/email/token-generator.js +2 -2
- package/dist/core/auth/errors/index.js +1 -1
- package/dist/core/auth/index.d.ts +11 -11
- package/dist/core/auth/index.js +24 -16
- package/dist/core/auth/jwt/client.js +3 -2
- package/dist/core/auth/jwt/cookie.d.ts +1 -1
- package/dist/core/auth/jwt/cookie.js +4 -4
- package/dist/core/auth/jwt/index.d.ts +41 -9
- package/dist/core/auth/jwt/index.js +6 -6
- package/dist/core/auth/jwt/types.d.ts +1 -1
- package/dist/core/auth/jwt/types.js +1 -1
- package/dist/core/auth/oauth/index.d.ts +6 -6
- package/dist/core/auth/oauth/index.js +5 -5
- package/dist/core/auth/oauth/providers/github.d.ts +1 -1
- package/dist/core/auth/oauth/providers/github.js +1 -1
- package/dist/core/auth/oauth/providers/google.d.ts +1 -1
- package/dist/core/auth/oauth/providers/google.js +1 -1
- package/dist/core/auth/oauth/providers/index.d.ts +5 -5
- package/dist/core/auth/oauth/providers/index.js +4 -4
- package/dist/core/auth/oauth/providers/kakao.d.ts +1 -1
- package/dist/core/auth/oauth/providers/kakao.js +1 -1
- package/dist/core/auth/oauth/providers/meta.d.ts +1 -1
- package/dist/core/auth/oauth/providers/meta.js +1 -1
- package/dist/core/auth/oauth/providers/microsoft.d.ts +1 -1
- package/dist/core/auth/oauth/providers/microsoft.js +1 -1
- package/dist/core/auth/oauth/state-cookie.js +1 -1
- package/dist/core/auth/password/client-helper.d.ts +9 -9
- package/dist/core/auth/password/client-helper.js +5 -3
- package/dist/core/auth/password/hasher.d.ts +83 -0
- package/dist/core/auth/password/hasher.js +14 -0
- package/dist/core/auth/password/index.d.ts +8 -6
- package/dist/core/auth/password/index.js +11 -2
- package/dist/core/auth/services/email-verification.service.d.ts +1 -1
- package/dist/core/auth/services/email-verification.service.js +3 -3
- package/dist/core/auth/services/index.d.ts +13 -12
- package/dist/core/auth/services/index.js +16 -16
- package/dist/core/auth/services/login.service.d.ts +15 -1
- package/dist/core/auth/services/login.service.js +6 -6
- package/dist/core/auth/services/oauth-callback.service.d.ts +7 -1
- package/dist/core/auth/services/oauth-callback.service.js +6 -6
- package/dist/core/auth/services/password-reset.service.d.ts +1 -1
- package/dist/core/auth/services/password-reset.service.js +3 -3
- package/dist/core/auth/services/refresh-token-store.d.ts +39 -0
- package/dist/core/auth/services/register.service.d.ts +1 -1
- package/dist/core/auth/services/register.service.js +3 -3
- package/dist/core/auth/services/token-refresh.service.d.ts +27 -1
- package/dist/core/auth/services/token-refresh.service.js +6 -6
- package/dist/core/auth/token-delivery.d.ts +47 -0
- package/dist/core/auth/token-delivery.js +14 -0
- package/dist/core/auth/types/index.d.ts +38 -4
- package/dist/core/auth/types/index.js +1 -1
- package/dist/core/cache/cache-config.js +5 -5
- package/dist/core/cache/cache-defaults.js +1 -1
- package/dist/core/cache/cache-env.d.ts +3 -3
- package/dist/core/cache/cache-env.js +4 -4
- package/dist/core/cache/cache-factory.d.ts +6 -6
- package/dist/core/cache/cache-factory.js +12 -12
- package/dist/core/cache/cache-invalidation.d.ts +4 -4
- package/dist/core/cache/cache-invalidation.js +13 -13
- package/dist/core/cache/cache-redis.js +6 -6
- package/dist/core/cache/cache-types.js +1 -1
- package/dist/core/cache/cache-wrapper.d.ts +1 -1
- package/dist/core/cache/cache-wrapper.js +13 -13
- package/dist/core/cache/cache.d.ts +2 -2
- package/dist/core/cache/cache.js +25 -25
- package/dist/core/cache/config.js +3 -3
- package/dist/core/cache/hybrid-cache-manager.d.ts +1 -1
- package/dist/core/cache/hybrid-cache-manager.js +8 -8
- package/dist/core/cache/index.d.ts +15 -15
- package/dist/core/cache/index.js +25 -25
- package/dist/core/cache/inmemory-cache-manager.d.ts +1 -1
- package/dist/core/cache/inmemory-cache-manager.js +3 -3
- package/dist/core/cache/noop-cache-manager.d.ts +1 -1
- package/dist/core/cache/noop-cache-manager.js +6 -6
- package/dist/core/cache/redis-cache-manager.d.ts +2 -2
- package/dist/core/cache/redis-cache-manager.js +7 -7
- package/dist/core/config/common.js +1 -1
- package/dist/core/config/errors.js +1 -1
- package/dist/core/config/registry.d.ts +7 -7
- package/dist/core/config/registry.js +1 -1
- package/dist/core/config/warn.js +1 -1
- package/dist/core/constants/error-codes.js +1 -1
- package/dist/core/constants/index.d.ts +5 -5
- package/dist/core/constants/index.js +17 -15
- package/dist/core/constants/messages.js +1 -1
- package/dist/core/constants/pagination.js +1 -1
- package/dist/core/constants/security.d.ts +15 -0
- package/dist/core/constants/security.js +4 -2
- package/dist/core/constants/validation.js +1 -1
- package/dist/core/cors/index.js +1 -1
- package/dist/core/error/app-error.d.ts +2 -2
- package/dist/core/error/app-error.js +1 -1
- package/dist/core/error/extract-error-info.js +1 -1
- package/dist/core/error/friendly-messages-v2.d.ts +3 -3
- package/dist/core/error/friendly-messages-v2.js +4 -4
- package/dist/core/error/friendly-messages.js +1 -1
- package/dist/core/error/index.d.ts +6 -6
- package/dist/core/error/index.js +7 -7
- package/dist/core/error/messages/en.d.ts +1 -1
- package/dist/core/error/messages/en.js +1 -1
- package/dist/core/error/messages/index.d.ts +2 -2
- package/dist/core/error/messages/index.js +3 -3
- package/dist/core/error/messages/ko.d.ts +1 -1
- package/dist/core/error/messages/ko.js +1 -1
- package/dist/core/geolocation/batch-processor.d.ts +1 -1
- package/dist/core/geolocation/batch-processor.js +3 -3
- package/dist/core/geolocation/config.js +1 -1
- package/dist/core/geolocation/index.d.ts +5 -5
- package/dist/core/geolocation/index.js +3 -3
- package/dist/core/geolocation/providers/base-provider.d.ts +2 -2
- package/dist/core/geolocation/providers/base-provider.js +1 -1
- package/dist/core/geolocation/providers/index.d.ts +6 -6
- package/dist/core/geolocation/providers/index.js +1 -1
- package/dist/core/geolocation/providers/ip-api-provider.d.ts +3 -3
- package/dist/core/geolocation/providers/ip-api-provider.js +1 -1
- package/dist/core/geolocation/providers/ipapi-co-provider.d.ts +3 -3
- package/dist/core/geolocation/providers/ipapi-co-provider.js +1 -1
- package/dist/core/geolocation/providers/ipgeolocation-provider.d.ts +3 -3
- package/dist/core/geolocation/providers/ipgeolocation-provider.js +1 -1
- package/dist/core/geolocation/providers/maxmind-provider.d.ts +3 -3
- package/dist/core/geolocation/providers/maxmind-provider.js +1 -1
- package/dist/core/logger/config.js +1 -1
- package/dist/core/logger/logger.js +2 -2
- package/dist/core/storage/config.js +1 -1
- package/dist/core/storage/r2-storage.js +2 -2
- package/dist/core/system/cpu.d.ts +1 -1
- package/dist/core/system/cpu.js +4 -4
- package/dist/core/system/disk.d.ts +1 -1
- package/dist/core/system/disk.js +4 -4
- package/dist/core/system/environment.d.ts +1 -1
- package/dist/core/system/environment.js +8 -8
- package/dist/core/system/health-check.d.ts +2 -2
- package/dist/core/system/health-check.js +6 -6
- package/dist/core/system/index.d.ts +7 -7
- package/dist/core/system/index.js +16 -16
- package/dist/core/system/memory.d.ts +1 -1
- package/dist/core/system/memory.js +4 -4
- package/dist/core/system/network.d.ts +1 -1
- package/dist/core/system/network.js +4 -4
- package/dist/core/system/utils.js +3 -3
- package/dist/core/types/geoip.d.ts +1 -1
- package/dist/core/types/qr-code.js +1 -1
- package/dist/core/utils/error-message-formatter.js +1 -1
- package/dist/core/utils/format-number.js +1 -1
- package/dist/core/utils/index.d.ts +3 -3
- package/dist/core/utils/index.js +2 -2
- package/dist/core/utils/input-validation.js +52 -16
- package/dist/core/utils/ip-utils.js +1 -1
- package/dist/core/utils/optimistic-lock.js +1 -1
- package/dist/core/utils/sanitizer.js +2 -2
- package/dist/core/utils/short-code-generator.js +1 -1
- package/dist/core/utils/timezone.js +121 -14
- package/dist/core/utils/type-guards.js +1 -1
- package/dist/core/utils/url-normalizer.js +1 -1
- package/dist/core/validators/index.d.ts +1 -1
- package/dist/core/validators/index.js +2 -2
- package/dist/core/validators/password-validator.d.ts +3 -3
- package/dist/core/validators/password-validator.js +2 -2
- package/dist/initialize.d.ts +10 -10
- package/dist/initialize.js +9 -9
- package/dist/next/auth-handlers/forgot-password.handler.d.ts +1 -1
- package/dist/next/auth-handlers/forgot-password.handler.js +4 -4
- package/dist/next/auth-handlers/index.d.ts +11 -11
- package/dist/next/auth-handlers/index.js +28 -27
- package/dist/next/auth-handlers/login.handler.d.ts +1 -1
- package/dist/next/auth-handlers/login.handler.js +7 -6
- package/dist/next/auth-handlers/logout.handler.d.ts +1 -1
- package/dist/next/auth-handlers/logout.handler.js +5 -5
- package/dist/next/auth-handlers/me.handler.d.ts +1 -1
- package/dist/next/auth-handlers/me.handler.js +7 -6
- package/dist/next/auth-handlers/oauth-authorize.handler.d.ts +1 -1
- package/dist/next/auth-handlers/oauth-authorize.handler.js +4 -4
- package/dist/next/auth-handlers/oauth-callback.handler.d.ts +1 -1
- package/dist/next/auth-handlers/oauth-callback.handler.js +9 -9
- package/dist/next/auth-handlers/refresh.handler.d.ts +1 -1
- package/dist/next/auth-handlers/refresh.handler.js +8 -7
- package/dist/next/auth-handlers/register.handler.d.ts +1 -1
- package/dist/next/auth-handlers/register.handler.js +4 -4
- package/dist/next/auth-handlers/reset-password.handler.d.ts +1 -1
- package/dist/next/auth-handlers/reset-password.handler.js +4 -4
- package/dist/next/auth-handlers/verify-email.handler.d.ts +1 -1
- package/dist/next/auth-handlers/verify-email.handler.js +4 -4
- package/dist/next/auth-types/handler-types.d.ts +5 -1
- package/dist/next/auth-types/handler-types.js +13 -1
- package/dist/next/auth-types/index.d.ts +1 -1
- package/dist/next/auth-types/index.js +13 -1
- package/dist/next/error/error-handler.js +5 -5
- package/dist/next/error/index.d.ts +3 -3
- package/dist/next/error/index.js +9 -9
- package/dist/next/error/locale-detector.d.ts +1 -1
- package/dist/next/error/locale-detector.js +1 -1
- package/dist/next/middleware/auth.d.ts +3 -3
- package/dist/next/middleware/auth.js +10 -9
- package/dist/next/middleware/cors.d.ts +2 -2
- package/dist/next/middleware/cors.js +3 -3
- package/dist/next/middleware/error-handler.d.ts +1 -1
- package/dist/next/middleware/error-handler.js +9 -9
- package/dist/next/middleware/index.d.ts +11 -11
- package/dist/next/middleware/index.js +23 -22
- package/dist/next/middleware/init-request.d.ts +1 -1
- package/dist/next/middleware/init-request.js +1 -1
- package/dist/next/middleware/middleware-chain.d.ts +1 -1
- package/dist/next/middleware/middleware-chain.js +3 -3
- package/dist/next/middleware/rate-limit.d.ts +2 -2
- package/dist/next/middleware/rate-limit.js +4 -4
- package/dist/next/middleware/response-logger.d.ts +1 -1
- package/dist/next/middleware/response-logger.js +3 -3
- package/dist/next/middleware/security.d.ts +1 -1
- package/dist/next/middleware/security.js +3 -3
- package/dist/next/middleware/types.d.ts +6 -3
- package/dist/next/middleware/wrappers.d.ts +2 -2
- package/dist/next/middleware/wrappers.js +21 -20
- package/dist/next/utils/api-helpers.d.ts +6 -2
- package/dist/next/utils/api-helpers.js +3 -2
- package/dist/next/utils/cors.js +2 -2
- package/dist/next/utils/csv-export-format.d.ts +11 -0
- package/dist/next/utils/csv-export-format.js +15 -0
- package/dist/next/utils/csv-export.d.ts +0 -2
- package/dist/next/utils/csv-export.js +3 -3
- package/dist/next/utils/error-processor.d.ts +1 -1
- package/dist/next/utils/error-processor.js +4 -4
- package/dist/next/utils/index.d.ts +5 -5
- package/dist/next/utils/index.js +21 -20
- package/dist/prisma/auth-adapter/index.d.ts +1 -1
- package/dist/prisma/auth-adapter/index.js +1 -1
- package/package.json +95 -51
- package/dist/chunk-2P4N4OK2.js +0 -150
- package/dist/chunk-4IQWQSEV.js +0 -27
- package/dist/chunk-4K76HG4V.js +0 -34
- package/dist/chunk-7EXSMZ2O.js +0 -29
- package/dist/chunk-7VXRBTRF.js +0 -110
- package/dist/chunk-ARXUKGZI.js +0 -58
- package/dist/chunk-B5OH43PR.js +0 -31
- package/dist/chunk-BW4QO7T6.js +0 -56
- package/dist/chunk-C6WH7RF5.js +0 -117
- package/dist/chunk-EK4TL7VW.js +0 -22
- package/dist/chunk-GPOSTBDQ.js +0 -193
- package/dist/chunk-IRUFNC4L.js +0 -26
- package/dist/chunk-J2MAXMIP.js +0 -105
- package/dist/chunk-MFMQO6IS.js +0 -127
- package/dist/chunk-NIWVKN6A.js +0 -81
- package/dist/chunk-OO2XOASJ.js +0 -240
- package/dist/chunk-PBQGXOVX.js +0 -31
- package/dist/chunk-STMAKLLG.js +0 -24
- package/dist/chunk-WP233RH2.js +0 -80
- package/dist/chunk-WWOYFWFB.js +0 -137
- package/dist/chunk-X7FGBUA4.js +0 -117
- package/dist/chunk-YSPIFSDI.js +0 -136
- package/dist/react/components/ui/Alert.d.ts +0 -12
- package/dist/react/components/ui/Alert.js +0 -10
- package/dist/react/components/ui/Badge.d.ts +0 -7
- package/dist/react/components/ui/Badge.js +0 -8
- package/dist/react/components/ui/Button.d.ts +0 -7
- package/dist/react/components/ui/Button.js +0 -8
- package/dist/react/components/ui/DataTable.d.ts +0 -8
- package/dist/react/components/ui/DataTable.js +0 -22
- package/dist/react/components/ui/DomainDisplay.d.ts +0 -12
- package/dist/react/components/ui/DomainDisplay.js +0 -31
- package/dist/react/components/ui/Input.d.ts +0 -5
- package/dist/react/components/ui/Input.js +0 -8
- package/dist/react/components/ui/Label.d.ts +0 -5
- package/dist/react/components/ui/Label.js +0 -8
- package/dist/react/components/ui/Pagination.d.ts +0 -42
- package/dist/react/components/ui/Pagination.js +0 -20
- package/dist/react/components/ui/Select.d.ts +0 -15
- package/dist/react/components/ui/Select.js +0 -27
- package/dist/react/components/ui/Skeleton.d.ts +0 -6
- package/dist/react/components/ui/Skeleton.js +0 -8
- package/dist/react/components/ui/TimezoneDisplay.d.ts +0 -22
- package/dist/react/components/ui/TimezoneDisplay.js +0 -83
- package/dist/react/components/ui/Tooltip.d.ts +0 -21
- package/dist/react/components/ui/Tooltip.js +0 -94
- package/dist/react/components/ui/data-table/DataTable.d.ts +0 -2
- package/dist/react/components/ui/data-table/DataTable.js +0 -22
- package/dist/react/components/ui/data-table/DataTableBody.d.ts +0 -19
- package/dist/react/components/ui/data-table/DataTableBody.js +0 -10
- package/dist/react/components/ui/data-table/DataTableBulkActions.d.ts +0 -17
- package/dist/react/components/ui/data-table/DataTableBulkActions.js +0 -12
- package/dist/react/components/ui/data-table/DataTableFilters.d.ts +0 -15
- package/dist/react/components/ui/data-table/DataTableFilters.js +0 -13
- package/dist/react/components/ui/data-table/DataTablePagination.d.ts +0 -10
- package/dist/react/components/ui/data-table/DataTablePagination.js +0 -11
- package/dist/react/components/ui/data-table/DataTableSearch.d.ts +0 -24
- package/dist/react/components/ui/data-table/DataTableSearch.js +0 -12
- package/dist/react/components/ui/data-table/index.d.ts +0 -13
- package/dist/react/components/ui/data-table/index.js +0 -42
- package/dist/react/components/ui/data-table/types.d.ts +0 -120
- package/dist/react/components/ui/data-table/types.js +0 -9
- package/dist/react/components/ui/loading-bar.d.ts +0 -20
- package/dist/react/components/ui/loading-bar.js +0 -15
- package/dist/react/error/error-display.d.ts +0 -48
- package/dist/react/error/error-display.js +0 -30
- package/dist/react/error/index.d.ts +0 -6
- package/dist/react/error/index.js +0 -30
- package/dist/react/hooks/useDataTable.d.ts +0 -96
- package/dist/react/hooks/useDataTable.js +0 -151
- package/dist/react/hooks/useDebounce.d.ts +0 -7
- package/dist/react/hooks/useDebounce.js +0 -7
- package/dist/react/hooks/useExitIntent.d.ts +0 -35
- package/dist/react/hooks/useExitIntent.js +0 -72
- package/dist/react/hooks/useTimezone.d.ts +0 -19
- package/dist/react/hooks/useTimezone.js +0 -11
- package/dist/react/utils/client-utils.d.ts +0 -3
- package/dist/react/utils/client-utils.js +0 -9
- package/dist/react/utils/qr-code.d.ts +0 -16
- package/dist/react/utils/qr-code.js +0 -215
- package/dist/{chunk-7PEVOMBO.js → chunk-AOWUPAPS.js} +0 -0
- package/dist/{chunk-V3GEYUBG.js → chunk-ER6LSA4M.js} +3 -3
- package/dist/{chunk-7WG7XPXC.js → chunk-KKZCNF6U.js} +3 -3
- /package/dist/{chunk-M22Z2NO6.js → core/auth/services/refresh-token-store.js} +0 -0
package/dist/next/error/index.js
CHANGED
|
@@ -4,27 +4,27 @@ import {
|
|
|
4
4
|
errorToResponse,
|
|
5
5
|
processError,
|
|
6
6
|
withErrorHandler
|
|
7
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-R7EFDSPZ.js";
|
|
8
8
|
import {
|
|
9
9
|
LocaleDetector
|
|
10
10
|
} from "../../chunk-K2PNAQI4.js";
|
|
11
|
-
import "../../chunk-ATAQRXTH.js";
|
|
12
11
|
import {
|
|
13
12
|
extractErrorInfo
|
|
14
13
|
} from "../../chunk-6HQ5JHL4.js";
|
|
15
14
|
import {
|
|
16
15
|
getErrorDisplayInfo
|
|
17
|
-
} from "../../chunk-
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-AMZWDLJ4.js";
|
|
16
|
+
} from "../../chunk-VWAB4PM7.js";
|
|
17
|
+
import "../../chunk-KKZCNF6U.js";
|
|
20
18
|
import "../../chunk-VUYS3SU7.js";
|
|
21
|
-
import "../../chunk-
|
|
22
|
-
import "../../chunk-
|
|
19
|
+
import "../../chunk-AMZWDLJ4.js";
|
|
20
|
+
import "../../chunk-ATAQRXTH.js";
|
|
21
|
+
import "../../chunk-XQIAXMRY.js";
|
|
23
22
|
import "../../chunk-5GWGARXI.js";
|
|
23
|
+
import "../../chunk-QAIN3WNN.js";
|
|
24
|
+
import "../../chunk-IKZB26SK.js";
|
|
24
25
|
import "../../chunk-6J2EJVND.js";
|
|
25
26
|
import "../../chunk-F3R3UYBF.js";
|
|
26
|
-
import "../../chunk-
|
|
27
|
-
import "../../chunk-ORMEWXMH.js";
|
|
27
|
+
import "../../chunk-N3ETBM74.js";
|
|
28
28
|
|
|
29
29
|
// src/next/error/ErrorBoundary.tsx
|
|
30
30
|
import { Component } from "react";
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* - 인증 실패 시 401 에러
|
|
8
8
|
*
|
|
9
9
|
* 완전 독립적 패키지:
|
|
10
|
-
* @withwiz/core/auth/jwt를 사용하여 비즈니스 로직에 의존하지 않음
|
|
10
|
+
* @withwiz/toolkit/core/auth/jwt를 사용하여 비즈니스 로직에 의존하지 않음
|
|
11
11
|
*/
|
|
12
|
-
import type { TApiMiddleware } from "
|
|
12
|
+
import type { TApiMiddleware } from "@withwiz/toolkit/next/middleware/types";
|
|
13
13
|
/**
|
|
14
14
|
* Access Token 블랙리스트 체커 인터페이스
|
|
15
15
|
* src/lib/services/auth/refreshTokenService에서 구현체 주입
|
|
@@ -35,7 +35,7 @@ export declare function setAccessTokenBlacklistChecker(checker: IAccessTokenBlac
|
|
|
35
35
|
* @example
|
|
36
36
|
* ```typescript
|
|
37
37
|
* // instrumentation.ts
|
|
38
|
-
* import { initializeAuthMiddleware } from '@withwiz/next/middleware/auth';
|
|
38
|
+
* import { initializeAuthMiddleware } from '@withwiz/toolkit/next/middleware/auth';
|
|
39
39
|
*
|
|
40
40
|
* export async function register() {
|
|
41
41
|
* initializeAuthMiddleware();
|
|
@@ -5,19 +5,20 @@ import {
|
|
|
5
5
|
initializeAuthMiddleware,
|
|
6
6
|
optionalAuthMiddleware,
|
|
7
7
|
setAccessTokenBlacklistChecker
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-XKIBJJA3.js";
|
|
9
9
|
import "../../chunk-ATAQRXTH.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-2PFSRVVD.js";
|
|
13
|
-
import "../../chunk-2JGSS4RM.js";
|
|
10
|
+
import "../../chunk-XQIAXMRY.js";
|
|
11
|
+
import "../../chunk-LWHLB2Y6.js";
|
|
14
12
|
import "../../chunk-5GWGARXI.js";
|
|
15
|
-
import "../../chunk-
|
|
13
|
+
import "../../chunk-63EKUOJH.js";
|
|
14
|
+
import "../../chunk-PRPMEHRE.js";
|
|
15
|
+
import "../../chunk-N3TCQ5BF.js";
|
|
16
|
+
import "../../chunk-7YWUKMZD.js";
|
|
17
|
+
import "../../chunk-QAIN3WNN.js";
|
|
18
|
+
import "../../chunk-IKZB26SK.js";
|
|
16
19
|
import "../../chunk-6J2EJVND.js";
|
|
17
20
|
import "../../chunk-F3R3UYBF.js";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-2SIBG5BG.js";
|
|
20
|
-
import "../../chunk-ORMEWXMH.js";
|
|
21
|
+
import "../../chunk-N3ETBM74.js";
|
|
21
22
|
export {
|
|
22
23
|
adminMiddleware,
|
|
23
24
|
authMiddleware,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Cross-Origin Resource Sharing 헤더를 설정합니다.
|
|
5
5
|
*/
|
|
6
|
-
import type { TApiMiddleware } from '
|
|
6
|
+
import type { TApiMiddleware } from '@withwiz/toolkit/next/middleware/types';
|
|
7
7
|
/**
|
|
8
8
|
* CORS 미들웨어 설정
|
|
9
9
|
*/
|
|
@@ -51,7 +51,7 @@ export declare const corsMiddleware: TApiMiddleware;
|
|
|
51
51
|
* @example
|
|
52
52
|
* ```typescript
|
|
53
53
|
* // instrumentation.ts
|
|
54
|
-
* import { validateCorsConfiguration } from '@withwiz/next/middleware/cors';
|
|
54
|
+
* import { validateCorsConfiguration } from '@withwiz/toolkit/next/middleware/cors';
|
|
55
55
|
*
|
|
56
56
|
* export async function register() {
|
|
57
57
|
* validateCorsConfiguration({
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
corsMiddleware,
|
|
3
3
|
createCorsMiddleware,
|
|
4
4
|
validateCorsConfiguration
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-KG65BFPK.js";
|
|
5
|
+
} from "../../chunk-UWOWKOOQ.js";
|
|
7
6
|
import "../../chunk-7ZO5UNTJ.js";
|
|
7
|
+
import "../../chunk-QAIN3WNN.js";
|
|
8
8
|
import "../../chunk-IKZB26SK.js";
|
|
9
9
|
import "../../chunk-6J2EJVND.js";
|
|
10
10
|
import "../../chunk-F3R3UYBF.js";
|
|
11
|
-
import "../../chunk-
|
|
11
|
+
import "../../chunk-N3ETBM74.js";
|
|
12
12
|
export {
|
|
13
13
|
corsMiddleware,
|
|
14
14
|
createCorsMiddleware,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
errorHandlerMiddleware
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-7WG7XPXC.js";
|
|
7
|
-
import "../../chunk-AMZWDLJ4.js";
|
|
3
|
+
} from "../../chunk-BRBOGLFT.js";
|
|
4
|
+
import "../../chunk-R7EFDSPZ.js";
|
|
5
|
+
import "../../chunk-KKZCNF6U.js";
|
|
8
6
|
import "../../chunk-VUYS3SU7.js";
|
|
9
|
-
import "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-AMZWDLJ4.js";
|
|
8
|
+
import "../../chunk-ATAQRXTH.js";
|
|
9
|
+
import "../../chunk-XQIAXMRY.js";
|
|
11
10
|
import "../../chunk-5GWGARXI.js";
|
|
11
|
+
import "../../chunk-QAIN3WNN.js";
|
|
12
|
+
import "../../chunk-IKZB26SK.js";
|
|
12
13
|
import "../../chunk-6J2EJVND.js";
|
|
13
14
|
import "../../chunk-F3R3UYBF.js";
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-ORMEWXMH.js";
|
|
15
|
+
import "../../chunk-N3ETBM74.js";
|
|
16
16
|
export {
|
|
17
17
|
errorHandlerMiddleware
|
|
18
18
|
};
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*
|
|
4
4
|
* 통합 에러 처리 시스템의 API 레이어
|
|
5
5
|
*/
|
|
6
|
-
export type { IApiContext, IUser, TApiHandler, TApiMiddleware, IMiddlewareChainOptions, } from '
|
|
7
|
-
export { MiddlewareChain } from '
|
|
8
|
-
export { initRequestMiddleware } from '
|
|
9
|
-
export { authMiddleware, optionalAuthMiddleware, adminMiddleware, createRoleMiddleware, initializeAuthMiddleware, setAccessTokenBlacklistChecker } from '
|
|
10
|
-
export type { IAccessTokenBlacklistChecker } from '
|
|
11
|
-
export { rateLimitMiddleware, createRateLimitMiddleware, setRateLimitAdapter } from '
|
|
12
|
-
export { errorHandlerMiddleware } from '
|
|
13
|
-
export { responseLoggerMiddleware } from '
|
|
14
|
-
export { corsMiddleware, validateCorsConfiguration } from '
|
|
15
|
-
export { securityMiddleware, validateSecurityConfiguration, setAllowedOrigins } from '
|
|
16
|
-
export { withPublicApi, withAuthApi, withAdminApi, withOptionalAuthApi, withCustomApi, } from '
|
|
6
|
+
export type { IApiContext, IUser, TApiHandler, TApiMiddleware, IMiddlewareChainOptions, } from '@withwiz/toolkit/next/middleware/types';
|
|
7
|
+
export { MiddlewareChain } from '@withwiz/toolkit/next/middleware/middleware-chain';
|
|
8
|
+
export { initRequestMiddleware } from '@withwiz/toolkit/next/middleware/init-request';
|
|
9
|
+
export { authMiddleware, optionalAuthMiddleware, adminMiddleware, createRoleMiddleware, initializeAuthMiddleware, setAccessTokenBlacklistChecker } from '@withwiz/toolkit/next/middleware/auth';
|
|
10
|
+
export type { IAccessTokenBlacklistChecker } from '@withwiz/toolkit/next/middleware/auth';
|
|
11
|
+
export { rateLimitMiddleware, createRateLimitMiddleware, setRateLimitAdapter } from '@withwiz/toolkit/next/middleware/rate-limit';
|
|
12
|
+
export { errorHandlerMiddleware } from '@withwiz/toolkit/next/middleware/error-handler';
|
|
13
|
+
export { responseLoggerMiddleware } from '@withwiz/toolkit/next/middleware/response-logger';
|
|
14
|
+
export { corsMiddleware, validateCorsConfiguration } from '@withwiz/toolkit/next/middleware/cors';
|
|
15
|
+
export { securityMiddleware, validateSecurityConfiguration, setAllowedOrigins } from '@withwiz/toolkit/next/middleware/security';
|
|
16
|
+
export { withPublicApi, withAuthApi, withAdminApi, withOptionalAuthApi, withCustomApi, } from '@withwiz/toolkit/next/middleware/wrappers';
|
|
@@ -4,29 +4,26 @@ import {
|
|
|
4
4
|
withCustomApi,
|
|
5
5
|
withOptionalAuthApi,
|
|
6
6
|
withPublicApi
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import {
|
|
9
|
-
errorHandlerMiddleware
|
|
10
|
-
} from "../../chunk-HKW4JA45.js";
|
|
7
|
+
} from "../../chunk-V3WZFUY3.js";
|
|
11
8
|
import {
|
|
12
9
|
initRequestMiddleware
|
|
13
10
|
} from "../../chunk-VC2E6KYQ.js";
|
|
14
11
|
import {
|
|
15
12
|
MiddlewareChain
|
|
16
|
-
} from "../../chunk-
|
|
13
|
+
} from "../../chunk-WXOWI7BJ.js";
|
|
17
14
|
import {
|
|
18
15
|
createRateLimitMiddleware,
|
|
19
16
|
rateLimitMiddleware,
|
|
20
17
|
setRateLimitAdapter
|
|
21
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-TRGFXIEF.js";
|
|
22
19
|
import {
|
|
23
20
|
responseLoggerMiddleware
|
|
24
|
-
} from "../../chunk-
|
|
21
|
+
} from "../../chunk-LCYDMYZS.js";
|
|
25
22
|
import {
|
|
26
23
|
securityMiddleware,
|
|
27
24
|
setAllowedOrigins,
|
|
28
25
|
validateSecurityConfiguration
|
|
29
|
-
} from "../../chunk-
|
|
26
|
+
} from "../../chunk-Y4WPEIKW.js";
|
|
30
27
|
import {
|
|
31
28
|
adminMiddleware,
|
|
32
29
|
authMiddleware,
|
|
@@ -34,29 +31,33 @@ import {
|
|
|
34
31
|
initializeAuthMiddleware,
|
|
35
32
|
optionalAuthMiddleware,
|
|
36
33
|
setAccessTokenBlacklistChecker
|
|
37
|
-
} from "../../chunk-
|
|
34
|
+
} from "../../chunk-XKIBJJA3.js";
|
|
38
35
|
import {
|
|
39
36
|
corsMiddleware,
|
|
40
37
|
validateCorsConfiguration
|
|
41
|
-
} from "../../chunk-
|
|
42
|
-
import
|
|
38
|
+
} from "../../chunk-UWOWKOOQ.js";
|
|
39
|
+
import {
|
|
40
|
+
errorHandlerMiddleware
|
|
41
|
+
} from "../../chunk-BRBOGLFT.js";
|
|
42
|
+
import "../../chunk-R7EFDSPZ.js";
|
|
43
43
|
import "../../chunk-K2PNAQI4.js";
|
|
44
|
-
import "../../chunk-
|
|
45
|
-
import "../../chunk-7WG7XPXC.js";
|
|
46
|
-
import "../../chunk-AMZWDLJ4.js";
|
|
44
|
+
import "../../chunk-KKZCNF6U.js";
|
|
47
45
|
import "../../chunk-VUYS3SU7.js";
|
|
48
|
-
import "../../chunk-
|
|
46
|
+
import "../../chunk-AMZWDLJ4.js";
|
|
47
|
+
import "../../chunk-ATAQRXTH.js";
|
|
48
|
+
import "../../chunk-XQIAXMRY.js";
|
|
49
49
|
import "../../chunk-7ZO5UNTJ.js";
|
|
50
|
-
import "../../chunk-
|
|
51
|
-
import "../../chunk-2PFSRVVD.js";
|
|
52
|
-
import "../../chunk-2JGSS4RM.js";
|
|
50
|
+
import "../../chunk-LWHLB2Y6.js";
|
|
53
51
|
import "../../chunk-5GWGARXI.js";
|
|
54
|
-
import "../../chunk-
|
|
52
|
+
import "../../chunk-63EKUOJH.js";
|
|
53
|
+
import "../../chunk-PRPMEHRE.js";
|
|
54
|
+
import "../../chunk-N3TCQ5BF.js";
|
|
55
|
+
import "../../chunk-7YWUKMZD.js";
|
|
56
|
+
import "../../chunk-QAIN3WNN.js";
|
|
57
|
+
import "../../chunk-IKZB26SK.js";
|
|
55
58
|
import "../../chunk-6J2EJVND.js";
|
|
56
59
|
import "../../chunk-F3R3UYBF.js";
|
|
57
|
-
import "../../chunk-
|
|
58
|
-
import "../../chunk-2SIBG5BG.js";
|
|
59
|
-
import "../../chunk-ORMEWXMH.js";
|
|
60
|
+
import "../../chunk-N3ETBM74.js";
|
|
60
61
|
export {
|
|
61
62
|
MiddlewareChain,
|
|
62
63
|
adminMiddleware,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Express.js 스타일의 미들웨어 체인을 Next.js API에서 사용
|
|
5
5
|
*/
|
|
6
6
|
import type { NextResponse } from 'next/server';
|
|
7
|
-
import type { IApiContext, TApiHandler, TApiMiddleware, IMiddlewareChainOptions } from '
|
|
7
|
+
import type { IApiContext, TApiHandler, TApiMiddleware, IMiddlewareChainOptions } from '@withwiz/toolkit/next/middleware/types';
|
|
8
8
|
/**
|
|
9
9
|
* 미들웨어 체인 클래스
|
|
10
10
|
*
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MiddlewareChain
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-WXOWI7BJ.js";
|
|
4
|
+
import "../../chunk-QAIN3WNN.js";
|
|
5
5
|
import "../../chunk-IKZB26SK.js";
|
|
6
6
|
import "../../chunk-6J2EJVND.js";
|
|
7
7
|
import "../../chunk-F3R3UYBF.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-N3ETBM74.js";
|
|
9
9
|
export {
|
|
10
10
|
MiddlewareChain
|
|
11
11
|
};
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* 의존성 주입 패턴 사용:
|
|
9
9
|
* 외부에서 Rate Limit 어댑터를 설정해야 합니다.
|
|
10
10
|
*/
|
|
11
|
-
import type { TApiMiddleware } from "
|
|
11
|
+
import type { TApiMiddleware } from "@withwiz/toolkit/next/middleware/types";
|
|
12
12
|
/**
|
|
13
13
|
* Rate Limiter 인터페이스
|
|
14
14
|
*/
|
|
@@ -37,7 +37,7 @@ export interface IRateLimitAdapter {
|
|
|
37
37
|
*
|
|
38
38
|
* @example
|
|
39
39
|
* ```typescript
|
|
40
|
-
* import { setRateLimitAdapter } from '@withwiz/next/middleware/rate-limit';
|
|
40
|
+
* import { setRateLimitAdapter } from '@withwiz/toolkit/next/middleware/rate-limit';
|
|
41
41
|
* // 프로젝트에서 구현한 Rate Limit 유틸리티를 import하세요
|
|
42
42
|
* import { rateLimiters, extractClientIp } from '<your-project>/rateLimiter';
|
|
43
43
|
*
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
createRateLimitMiddleware,
|
|
3
3
|
rateLimitMiddleware,
|
|
4
4
|
setRateLimitAdapter
|
|
5
|
-
} from "../../chunk-
|
|
5
|
+
} from "../../chunk-TRGFXIEF.js";
|
|
6
6
|
import "../../chunk-ATAQRXTH.js";
|
|
7
|
-
import "../../chunk-
|
|
7
|
+
import "../../chunk-XQIAXMRY.js";
|
|
8
|
+
import "../../chunk-QAIN3WNN.js";
|
|
8
9
|
import "../../chunk-IKZB26SK.js";
|
|
9
10
|
import "../../chunk-6J2EJVND.js";
|
|
10
11
|
import "../../chunk-F3R3UYBF.js";
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-ORMEWXMH.js";
|
|
12
|
+
import "../../chunk-N3ETBM74.js";
|
|
13
13
|
export {
|
|
14
14
|
createRateLimitMiddleware,
|
|
15
15
|
rateLimitMiddleware,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
responseLoggerMiddleware
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-LCYDMYZS.js";
|
|
4
|
+
import "../../chunk-QAIN3WNN.js";
|
|
5
5
|
import "../../chunk-IKZB26SK.js";
|
|
6
6
|
import "../../chunk-6J2EJVND.js";
|
|
7
7
|
import "../../chunk-F3R3UYBF.js";
|
|
8
|
-
import "../../chunk-
|
|
8
|
+
import "../../chunk-N3ETBM74.js";
|
|
9
9
|
export {
|
|
10
10
|
responseLoggerMiddleware
|
|
11
11
|
};
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
securityMiddleware,
|
|
3
3
|
setAllowedOrigins,
|
|
4
4
|
validateSecurityConfiguration
|
|
5
|
-
} from "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
} from "../../chunk-Y4WPEIKW.js";
|
|
6
|
+
import "../../chunk-QAIN3WNN.js";
|
|
7
7
|
import "../../chunk-IKZB26SK.js";
|
|
8
8
|
import "../../chunk-6J2EJVND.js";
|
|
9
9
|
import "../../chunk-F3R3UYBF.js";
|
|
10
|
-
import "../../chunk-
|
|
10
|
+
import "../../chunk-N3ETBM74.js";
|
|
11
11
|
export {
|
|
12
12
|
securityMiddleware,
|
|
13
13
|
setAllowedOrigins,
|
|
@@ -2,15 +2,18 @@
|
|
|
2
2
|
* API 미들웨어 타입 정의
|
|
3
3
|
*/
|
|
4
4
|
import type { NextRequest, NextResponse } from 'next/server';
|
|
5
|
-
import type { TLocale } from '@withwiz/core/error/messages';
|
|
5
|
+
import type { TLocale } from '@withwiz/toolkit/core/error/messages';
|
|
6
6
|
/**
|
|
7
7
|
* 사용자 정보 (JWT 토큰에서 추출)
|
|
8
|
+
*
|
|
9
|
+
* `role`은 평범한 `string`이며 toolkit은 고정 role enum을 소유하지 않는다.
|
|
10
|
+
* 소비자가 자체 역할 어휘를 가지면 `IUser<AppRole>`로 좁힐 수 있다.
|
|
8
11
|
*/
|
|
9
|
-
export interface IUser {
|
|
12
|
+
export interface IUser<TRole extends string = string> {
|
|
10
13
|
id: string;
|
|
11
14
|
email: string;
|
|
12
15
|
name?: string;
|
|
13
|
-
role:
|
|
16
|
+
role: TRole;
|
|
14
17
|
}
|
|
15
18
|
/**
|
|
16
19
|
* API 컨텍스트
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* 미들웨어 체인을 조합하여 API 핸들러를 래핑합니다.
|
|
5
5
|
*/
|
|
6
6
|
import type { NextRequest } from 'next/server';
|
|
7
|
-
import type { TApiHandler } from '
|
|
8
|
-
import { MiddlewareChain } from '
|
|
7
|
+
import type { TApiHandler } from '@withwiz/toolkit/next/middleware/types';
|
|
8
|
+
import { MiddlewareChain } from '@withwiz/toolkit/next/middleware/middleware-chain';
|
|
9
9
|
/**
|
|
10
10
|
* 공개 API 래퍼
|
|
11
11
|
*
|
|
@@ -4,33 +4,34 @@ import {
|
|
|
4
4
|
withCustomApi,
|
|
5
5
|
withOptionalAuthApi,
|
|
6
6
|
withPublicApi
|
|
7
|
-
} from "../../chunk-
|
|
8
|
-
import "../../chunk-HKW4JA45.js";
|
|
7
|
+
} from "../../chunk-V3WZFUY3.js";
|
|
9
8
|
import "../../chunk-VC2E6KYQ.js";
|
|
10
|
-
import "../../chunk-
|
|
11
|
-
import "../../chunk-
|
|
12
|
-
import "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
16
|
-
import "../../chunk-
|
|
9
|
+
import "../../chunk-WXOWI7BJ.js";
|
|
10
|
+
import "../../chunk-TRGFXIEF.js";
|
|
11
|
+
import "../../chunk-LCYDMYZS.js";
|
|
12
|
+
import "../../chunk-Y4WPEIKW.js";
|
|
13
|
+
import "../../chunk-XKIBJJA3.js";
|
|
14
|
+
import "../../chunk-UWOWKOOQ.js";
|
|
15
|
+
import "../../chunk-BRBOGLFT.js";
|
|
16
|
+
import "../../chunk-R7EFDSPZ.js";
|
|
17
17
|
import "../../chunk-K2PNAQI4.js";
|
|
18
|
-
import "../../chunk-
|
|
19
|
-
import "../../chunk-7WG7XPXC.js";
|
|
20
|
-
import "../../chunk-AMZWDLJ4.js";
|
|
18
|
+
import "../../chunk-KKZCNF6U.js";
|
|
21
19
|
import "../../chunk-VUYS3SU7.js";
|
|
22
|
-
import "../../chunk-
|
|
20
|
+
import "../../chunk-AMZWDLJ4.js";
|
|
21
|
+
import "../../chunk-ATAQRXTH.js";
|
|
22
|
+
import "../../chunk-XQIAXMRY.js";
|
|
23
23
|
import "../../chunk-7ZO5UNTJ.js";
|
|
24
|
-
import "../../chunk-
|
|
25
|
-
import "../../chunk-2PFSRVVD.js";
|
|
26
|
-
import "../../chunk-2JGSS4RM.js";
|
|
24
|
+
import "../../chunk-LWHLB2Y6.js";
|
|
27
25
|
import "../../chunk-5GWGARXI.js";
|
|
28
|
-
import "../../chunk-
|
|
26
|
+
import "../../chunk-63EKUOJH.js";
|
|
27
|
+
import "../../chunk-PRPMEHRE.js";
|
|
28
|
+
import "../../chunk-N3TCQ5BF.js";
|
|
29
|
+
import "../../chunk-7YWUKMZD.js";
|
|
30
|
+
import "../../chunk-QAIN3WNN.js";
|
|
31
|
+
import "../../chunk-IKZB26SK.js";
|
|
29
32
|
import "../../chunk-6J2EJVND.js";
|
|
30
33
|
import "../../chunk-F3R3UYBF.js";
|
|
31
|
-
import "../../chunk-
|
|
32
|
-
import "../../chunk-2SIBG5BG.js";
|
|
33
|
-
import "../../chunk-ORMEWXMH.js";
|
|
34
|
+
import "../../chunk-N3ETBM74.js";
|
|
34
35
|
export {
|
|
35
36
|
withAdminApi,
|
|
36
37
|
withAuthApi,
|
|
@@ -71,13 +71,17 @@ export declare function createPaginatedResponse<T>(data: T[], total: number, pag
|
|
|
71
71
|
/**
|
|
72
72
|
* Admin 권한 확인
|
|
73
73
|
*
|
|
74
|
+
* `adminRole` 미지정 시 `ROLE_DEFAULTS.ADMIN_ROLE`('ADMIN')과 비교한다.
|
|
75
|
+
* 자체 역할 어휘를 쓰는 소비자는 관리자 역할 이름을 직접 넘긴다.
|
|
76
|
+
*
|
|
74
77
|
* @example
|
|
75
78
|
* ```typescript
|
|
76
|
-
* const adminCheck = requireAdmin(user.role);
|
|
79
|
+
* const adminCheck = requireAdmin(user.role); // 기본 'ADMIN'
|
|
80
|
+
* const superCheck = requireAdmin(user.role, 'SUPERADMIN'); // 소비자 지정
|
|
77
81
|
* if (!adminCheck.isAdmin) return adminCheck.response;
|
|
78
82
|
* ```
|
|
79
83
|
*/
|
|
80
|
-
export declare function requireAdmin(userRole: string): {
|
|
84
|
+
export declare function requireAdmin(userRole: string, adminRole?: string): {
|
|
81
85
|
isAdmin: true;
|
|
82
86
|
} | {
|
|
83
87
|
isAdmin: false;
|
|
@@ -11,9 +11,10 @@ import {
|
|
|
11
11
|
parseSort,
|
|
12
12
|
requireAdmin,
|
|
13
13
|
validateAndParse
|
|
14
|
-
} from "../../chunk-
|
|
14
|
+
} from "../../chunk-23LQJYZN.js";
|
|
15
15
|
import "../../chunk-XQIAXMRY.js";
|
|
16
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-7YWUKMZD.js";
|
|
17
|
+
import "../../chunk-N3ETBM74.js";
|
|
17
18
|
export {
|
|
18
19
|
createPaginatedResponse,
|
|
19
20
|
getReferer,
|
package/dist/next/utils/cors.js
CHANGED
|
@@ -7,12 +7,12 @@ import {
|
|
|
7
7
|
withCORS,
|
|
8
8
|
withPublicCORS,
|
|
9
9
|
withRestrictedCORS
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-34L7HTM7.js";
|
|
11
11
|
import "../../chunk-7ZO5UNTJ.js";
|
|
12
12
|
import "../../chunk-PX535BHW.js";
|
|
13
13
|
import "../../chunk-6J2EJVND.js";
|
|
14
14
|
import "../../chunk-F3R3UYBF.js";
|
|
15
|
-
import "../../chunk-
|
|
15
|
+
import "../../chunk-N3ETBM74.js";
|
|
16
16
|
export {
|
|
17
17
|
getAllowedOrigins,
|
|
18
18
|
getCorsConfig,
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSV Export — date-fns 의존 포맷터
|
|
3
|
+
*
|
|
4
|
+
* `csv-export.ts`에서 분리한 date-fns 의존 헬퍼.
|
|
5
|
+
* `date-fns`를 설치한 호스트만 이 모듈을 import 하면 된다.
|
|
6
|
+
* 의존을 import 하지 않는 한 csv-export 본체는 date-fns 없이도 동작한다.
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* 커스텀 날짜 포맷팅 (date-fns format 사용)
|
|
10
|
+
*/
|
|
11
|
+
export declare function customDateFormatter(date: Date | null | undefined, formatStr: string): string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import "../../chunk-N3ETBM74.js";
|
|
2
|
+
|
|
3
|
+
// src/next/utils/csv-export-format.ts
|
|
4
|
+
import { format as dateFnsFormat } from "date-fns";
|
|
5
|
+
function customDateFormatter(date, formatStr) {
|
|
6
|
+
if (!date) return "";
|
|
7
|
+
try {
|
|
8
|
+
return dateFnsFormat(date, formatStr);
|
|
9
|
+
} catch (e) {
|
|
10
|
+
return date.toISOString();
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
customDateFormatter
|
|
15
|
+
};
|
|
@@ -77,8 +77,6 @@ export declare const dateFormatter: {
|
|
|
77
77
|
korean: (date: Date | null | undefined) => string;
|
|
78
78
|
/** 영어 형식 */
|
|
79
79
|
english: (date: Date | null | undefined) => string;
|
|
80
|
-
/** 커스텀 형식 (date-fns 사용) */
|
|
81
|
-
custom: (date: Date | null | undefined, formatStr: string) => string;
|
|
82
80
|
};
|
|
83
81
|
/**
|
|
84
82
|
* Boolean 포맷팅 헬퍼
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
dateFormatter,
|
|
7
7
|
escapeCsvField,
|
|
8
8
|
rowToCsv
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-DVCGAI5N.js";
|
|
10
|
+
import "../../chunk-QAIN3WNN.js";
|
|
11
11
|
import "../../chunk-IKZB26SK.js";
|
|
12
12
|
import "../../chunk-6J2EJVND.js";
|
|
13
13
|
import "../../chunk-F3R3UYBF.js";
|
|
14
|
-
import "../../chunk-
|
|
14
|
+
import "../../chunk-N3ETBM74.js";
|
|
15
15
|
export {
|
|
16
16
|
boolFormatter,
|
|
17
17
|
createCsvHeader,
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* 5자리 HTTP 확장 에러 코드 체계를 사용합니다.
|
|
6
6
|
*/
|
|
7
7
|
import { NextRequest, NextResponse } from 'next/server';
|
|
8
|
-
import type { ISerializedError } from '@withwiz/core/error/app-error';
|
|
8
|
+
import type { ISerializedError } from '@withwiz/toolkit/core/error/app-error';
|
|
9
9
|
export type ProcessedError = ISerializedError;
|
|
10
10
|
/**
|
|
11
11
|
* 에러 핸들링 옵션
|