@otim/utils 0.0.4 → 0.0.6
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/dist/api/index.d.mts +1858 -7
- package/dist/api/index.d.mts.map +1 -0
- package/dist/api/index.d.ts +1857 -6
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +1514 -1994
- package/dist/api/index.js.map +1 -7
- package/dist/api/index.mjs +1394 -1962
- package/dist/api/index.mjs.map +1 -7
- package/dist/api-urls-B-GTEiT3.d.mts +49 -0
- package/dist/api-urls-B-GTEiT3.d.mts.map +1 -0
- package/dist/api-urls-Cd20DG4i.js +171 -0
- package/dist/api-urls-Cd20DG4i.js.map +1 -0
- package/dist/api-urls-DJcIKBCy.mjs +135 -0
- package/dist/api-urls-DJcIKBCy.mjs.map +1 -0
- package/dist/api-urls-SKeIQMoZ.d.ts +49 -0
- package/dist/api-urls-SKeIQMoZ.d.ts.map +1 -0
- package/dist/chains/index.d.mts +13568 -16
- package/dist/chains/index.d.mts.map +1 -0
- package/dist/chains/index.d.ts +13567 -15
- package/dist/chains/index.d.ts.map +1 -1
- package/dist/chains/index.js +3615 -424
- package/dist/chains/index.js.map +1 -7
- package/dist/chains/index.mjs +3561 -440
- package/dist/chains/index.mjs.map +1 -7
- package/dist/chunk-kSYXY2_d.js +34 -0
- package/dist/client-factory-7xUSPC9I.mjs +42 -0
- package/dist/client-factory-7xUSPC9I.mjs.map +1 -0
- package/dist/client-factory-C3A4RPdj.d.ts +22 -0
- package/dist/client-factory-C3A4RPdj.d.ts.map +1 -0
- package/dist/client-factory-CTI_Nt35.js +49 -0
- package/dist/client-factory-CTI_Nt35.js.map +1 -0
- package/dist/client-factory-DOL0ZTWy.d.mts +22 -0
- package/dist/client-factory-DOL0ZTWy.d.mts.map +1 -0
- package/dist/constants.d.mts +14 -24
- package/dist/constants.d.mts.map +1 -0
- package/dist/constants.d.ts +13 -23
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +31 -46
- package/dist/constants.js.map +1 -7
- package/dist/constants.mjs +22 -26
- package/dist/constants.mjs.map +1 -7
- package/dist/date-CFzrYcjE.js +536 -0
- package/dist/date-CFzrYcjE.js.map +1 -0
- package/dist/date-gBac-Om9.mjs +313 -0
- package/dist/date-gBac-Om9.mjs.map +1 -0
- package/dist/defineProperty-DbMdhrDE.js +49 -0
- package/dist/defineProperty-DzhmunJg.mjs +43 -0
- package/dist/formatters/index.d.mts +1 -2
- package/dist/formatters/index.d.ts +1 -2
- package/dist/formatters/index.js +0 -19
- package/dist/formatters/index.mjs +1 -1
- package/dist/helpers/index.d.mts +562 -19
- package/dist/helpers/index.d.mts.map +1 -0
- package/dist/helpers/index.d.ts +561 -18
- package/dist/helpers/index.d.ts.map +1 -1
- package/dist/helpers/index.js +106 -1344
- package/dist/helpers/index.mjs +3 -1315
- package/dist/helpers-BNiSxjGq.mjs +895 -0
- package/dist/helpers-BNiSxjGq.mjs.map +1 -0
- package/dist/helpers-DoC7Xl12.js +1291 -0
- package/dist/helpers-DoC7Xl12.js.map +1 -0
- package/dist/index-Bv0kUz4w.d.ts +540 -0
- package/dist/index-Bv0kUz4w.d.ts.map +1 -0
- package/dist/index-DartTKk2.d.mts +540 -0
- package/dist/index-DartTKk2.d.mts.map +1 -0
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -2
- package/dist/index.mjs +1 -1
- package/dist/instructions/index.d.mts +687 -6
- package/dist/instructions/index.d.mts.map +1 -0
- package/dist/instructions/index.d.ts +686 -5
- package/dist/instructions/index.d.ts.map +1 -1
- package/dist/instructions/index.js +1912 -1091
- package/dist/instructions/index.js.map +1 -7
- package/dist/instructions/index.mjs +1887 -1058
- package/dist/instructions/index.mjs.map +1 -7
- package/dist/payments/index.d.mts +322 -16
- package/dist/payments/index.d.mts.map +1 -0
- package/dist/payments/index.d.ts +321 -15
- package/dist/payments/index.d.ts.map +1 -1
- package/dist/payments/index.js +616 -1258
- package/dist/payments/index.js.map +1 -7
- package/dist/payments/index.mjs +594 -1236
- package/dist/payments/index.mjs.map +1 -7
- package/dist/schemas/index.d.mts +2 -10
- package/dist/schemas/index.d.ts +2 -10
- package/dist/schemas/index.js +350 -393
- package/dist/schemas/index.js.map +1 -7
- package/dist/schemas/index.mjs +283 -371
- package/dist/schemas/index.mjs.map +1 -7
- package/dist/server/index.d.mts +354 -3
- package/dist/server/index.d.mts.map +1 -0
- package/dist/server/index.d.ts +353 -2
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js +248 -435
- package/dist/server/index.js.map +1 -7
- package/dist/server/index.mjs +199 -404
- package/dist/server/index.mjs.map +1 -7
- package/dist/server/react.d.mts +16 -0
- package/dist/server/react.d.mts.map +1 -0
- package/dist/server/react.d.ts +16 -0
- package/dist/server/react.d.ts.map +1 -0
- package/dist/server/react.js +30 -0
- package/dist/server/react.js.map +1 -0
- package/dist/server/react.mjs +28 -0
- package/dist/server/react.mjs.map +1 -0
- package/dist/wallet/wagmi/index.d.mts +23 -2
- package/dist/wallet/wagmi/index.d.mts.map +1 -0
- package/dist/wallet/wagmi/index.d.ts +22 -1
- package/dist/wallet/wagmi/index.d.ts.map +1 -1
- package/dist/wallet/wagmi/index.js +86 -417
- package/dist/wallet/wagmi/index.js.map +1 -7
- package/dist/wallet/wagmi/index.mjs +82 -418
- package/dist/wallet/wagmi/index.mjs.map +1 -7
- package/package.json +39 -28
- package/dist/api/api.d.mts +0 -18
- package/dist/api/api.d.ts +0 -18
- package/dist/api/api.d.ts.map +0 -1
- package/dist/api/core/error.d.mts +0 -74
- package/dist/api/core/error.d.ts +0 -74
- package/dist/api/core/error.d.ts.map +0 -1
- package/dist/api/core/index.d.mts +0 -4
- package/dist/api/core/index.d.ts +0 -4
- package/dist/api/core/index.d.ts.map +0 -1
- package/dist/api/core/instance.d.mts +0 -13
- package/dist/api/core/instance.d.ts +0 -13
- package/dist/api/core/instance.d.ts.map +0 -1
- package/dist/api/core/service.d.mts +0 -51
- package/dist/api/core/service.d.ts +0 -51
- package/dist/api/core/service.d.ts.map +0 -1
- package/dist/api/schemas/account.d.mts +0 -44
- package/dist/api/schemas/account.d.ts +0 -44
- package/dist/api/schemas/account.d.ts.map +0 -1
- package/dist/api/schemas/activity.d.mts +0 -277
- package/dist/api/schemas/activity.d.ts +0 -277
- package/dist/api/schemas/activity.d.ts.map +0 -1
- package/dist/api/schemas/auth.d.mts +0 -127
- package/dist/api/schemas/auth.d.ts +0 -127
- package/dist/api/schemas/auth.d.ts.map +0 -1
- package/dist/api/schemas/chain.d.mts +0 -15
- package/dist/api/schemas/chain.d.ts +0 -15
- package/dist/api/schemas/chain.d.ts.map +0 -1
- package/dist/api/schemas/config.d.mts +0 -33
- package/dist/api/schemas/config.d.ts +0 -33
- package/dist/api/schemas/config.d.ts.map +0 -1
- package/dist/api/schemas/contacts.d.mts +0 -27
- package/dist/api/schemas/contacts.d.ts +0 -27
- package/dist/api/schemas/contacts.d.ts.map +0 -1
- package/dist/api/schemas/index.d.mts +0 -12
- package/dist/api/schemas/index.d.ts +0 -12
- package/dist/api/schemas/index.d.ts.map +0 -1
- package/dist/api/schemas/instruction.d.mts +0 -446
- package/dist/api/schemas/instruction.d.ts +0 -446
- package/dist/api/schemas/instruction.d.ts.map +0 -1
- package/dist/api/schemas/integration.d.mts +0 -166
- package/dist/api/schemas/integration.d.ts +0 -166
- package/dist/api/schemas/integration.d.ts.map +0 -1
- package/dist/api/schemas/operating-account.d.mts +0 -11
- package/dist/api/schemas/operating-account.d.ts +0 -11
- package/dist/api/schemas/operating-account.d.ts.map +0 -1
- package/dist/api/schemas/payments.d.mts +0 -234
- package/dist/api/schemas/payments.d.ts +0 -234
- package/dist/api/schemas/payments.d.ts.map +0 -1
- package/dist/api/schemas/transaction.d.mts +0 -37
- package/dist/api/schemas/transaction.d.ts +0 -37
- package/dist/api/schemas/transaction.d.ts.map +0 -1
- package/dist/api/services/account.d.mts +0 -8
- package/dist/api/services/account.d.ts +0 -8
- package/dist/api/services/account.d.ts.map +0 -1
- package/dist/api/services/activity.d.mts +0 -7
- package/dist/api/services/activity.d.ts +0 -7
- package/dist/api/services/activity.d.ts.map +0 -1
- package/dist/api/services/auth.d.mts +0 -12
- package/dist/api/services/auth.d.ts +0 -12
- package/dist/api/services/auth.d.ts.map +0 -1
- package/dist/api/services/base.d.mts +0 -10
- package/dist/api/services/base.d.ts +0 -10
- package/dist/api/services/base.d.ts.map +0 -1
- package/dist/api/services/config.d.mts +0 -10
- package/dist/api/services/config.d.ts +0 -10
- package/dist/api/services/config.d.ts.map +0 -1
- package/dist/api/services/contacts.d.mts +0 -8
- package/dist/api/services/contacts.d.ts +0 -8
- package/dist/api/services/contacts.d.ts.map +0 -1
- package/dist/api/services/developer.d.mts +0 -6
- package/dist/api/services/developer.d.ts +0 -6
- package/dist/api/services/developer.d.ts.map +0 -1
- package/dist/api/services/index.d.mts +0 -13
- package/dist/api/services/index.d.ts +0 -13
- package/dist/api/services/index.d.ts.map +0 -1
- package/dist/api/services/instruction.d.mts +0 -12
- package/dist/api/services/instruction.d.ts +0 -12
- package/dist/api/services/instruction.d.ts.map +0 -1
- package/dist/api/services/integration.d.mts +0 -8
- package/dist/api/services/integration.d.ts +0 -8
- package/dist/api/services/integration.d.ts.map +0 -1
- package/dist/api/services/operating-account.d.mts +0 -8
- package/dist/api/services/operating-account.d.ts +0 -8
- package/dist/api/services/operating-account.d.ts.map +0 -1
- package/dist/api/services/payments.d.mts +0 -14
- package/dist/api/services/payments.d.ts +0 -14
- package/dist/api/services/payments.d.ts.map +0 -1
- package/dist/api/services/transaction.d.mts +0 -8
- package/dist/api/services/transaction.d.ts +0 -8
- package/dist/api/services/transaction.d.ts.map +0 -1
- package/dist/api/services/uniswap-token-list-service.d.mts +0 -66
- package/dist/api/services/uniswap-token-list-service.d.ts +0 -66
- package/dist/api/services/uniswap-token-list-service.d.ts.map +0 -1
- package/dist/api/utils/index.d.mts +0 -2
- package/dist/api/utils/index.d.ts +0 -2
- package/dist/api/utils/index.d.ts.map +0 -1
- package/dist/api/utils/pagination.d.mts +0 -32
- package/dist/api/utils/pagination.d.ts +0 -32
- package/dist/api/utils/pagination.d.ts.map +0 -1
- package/dist/chains/config/all-chains.d.mts +0 -4243
- package/dist/chains/config/all-chains.d.ts +0 -4243
- package/dist/chains/config/all-chains.d.ts.map +0 -1
- package/dist/chains/config/custom-chains.d.mts +0 -49
- package/dist/chains/config/custom-chains.d.ts +0 -49
- package/dist/chains/config/custom-chains.d.ts.map +0 -1
- package/dist/chains/config/mainnet-chains.d.mts +0 -1063
- package/dist/chains/config/mainnet-chains.d.ts +0 -1063
- package/dist/chains/config/mainnet-chains.d.ts.map +0 -1
- package/dist/chains/config/supported-chains.d.mts +0 -2172
- package/dist/chains/config/supported-chains.d.ts +0 -2172
- package/dist/chains/config/supported-chains.d.ts.map +0 -1
- package/dist/chains/config/testnet-chains.d.mts +0 -1110
- package/dist/chains/config/testnet-chains.d.ts +0 -1110
- package/dist/chains/config/testnet-chains.d.ts.map +0 -1
- package/dist/chains/lambda/chain-mapping.d.mts +0 -55
- package/dist/chains/lambda/chain-mapping.d.ts +0 -55
- package/dist/chains/lambda/chain-mapping.d.ts.map +0 -1
- package/dist/chains/lambda/index.d.mts +0 -2
- package/dist/chains/lambda/index.d.ts +0 -2
- package/dist/chains/lambda/index.d.ts.map +0 -1
- package/dist/chains/tokens/chain-tokens.d.mts +0 -6
- package/dist/chains/tokens/chain-tokens.d.ts +0 -6
- package/dist/chains/tokens/chain-tokens.d.ts.map +0 -1
- package/dist/chains/tokens/token-addresses.d.mts +0 -8
- package/dist/chains/tokens/token-addresses.d.ts +0 -8
- package/dist/chains/tokens/token-addresses.d.ts.map +0 -1
- package/dist/chains/tokens/token-metadata.d.mts +0 -5
- package/dist/chains/tokens/token-metadata.d.ts +0 -5
- package/dist/chains/tokens/token-metadata.d.ts.map +0 -1
- package/dist/chains/types.d.mts +0 -23
- package/dist/chains/types.d.ts +0 -23
- package/dist/chains/types.d.ts.map +0 -1
- package/dist/chains/utils/filter-tokens.d.mts +0 -3
- package/dist/chains/utils/filter-tokens.d.ts +0 -3
- package/dist/chains/utils/filter-tokens.d.ts.map +0 -1
- package/dist/chains/utils/stablecoin.d.mts +0 -7
- package/dist/chains/utils/stablecoin.d.ts +0 -7
- package/dist/chains/utils/stablecoin.d.ts.map +0 -1
- package/dist/chains/utils/token-maps.d.mts +0 -10
- package/dist/chains/utils/token-maps.d.ts +0 -10
- package/dist/chains/utils/token-maps.d.ts.map +0 -1
- package/dist/env.d.mts +0 -17
- package/dist/env.d.ts +0 -17
- package/dist/env.d.ts.map +0 -1
- package/dist/formatters/index.d.ts.map +0 -1
- package/dist/formatters/index.js.map +0 -7
- package/dist/formatters/index.mjs.map +0 -7
- package/dist/helpers/address.d.mts +0 -7
- package/dist/helpers/address.d.ts +0 -7
- package/dist/helpers/address.d.ts.map +0 -1
- package/dist/helpers/blockchain.d.mts +0 -41
- package/dist/helpers/blockchain.d.ts +0 -41
- package/dist/helpers/blockchain.d.ts.map +0 -1
- package/dist/helpers/date.d.mts +0 -70
- package/dist/helpers/date.d.ts +0 -70
- package/dist/helpers/date.d.ts.map +0 -1
- package/dist/helpers/datetime.d.mts +0 -57
- package/dist/helpers/datetime.d.ts +0 -57
- package/dist/helpers/datetime.d.ts.map +0 -1
- package/dist/helpers/domain.d.mts +0 -2
- package/dist/helpers/domain.d.ts +0 -2
- package/dist/helpers/domain.d.ts.map +0 -1
- package/dist/helpers/index.js.map +0 -7
- package/dist/helpers/index.mjs.map +0 -7
- package/dist/helpers/intl.d.mts +0 -20
- package/dist/helpers/intl.d.ts +0 -20
- package/dist/helpers/intl.d.ts.map +0 -1
- package/dist/helpers/logger.d.mts +0 -26
- package/dist/helpers/logger.d.ts +0 -26
- package/dist/helpers/logger.d.ts.map +0 -1
- package/dist/helpers/mask-options.d.mts +0 -10
- package/dist/helpers/mask-options.d.ts +0 -10
- package/dist/helpers/mask-options.d.ts.map +0 -1
- package/dist/helpers/num-formatter.d.mts +0 -3
- package/dist/helpers/num-formatter.d.ts +0 -3
- package/dist/helpers/num-formatter.d.ts.map +0 -1
- package/dist/helpers/polling.d.mts +0 -39
- package/dist/helpers/polling.d.ts +0 -39
- package/dist/helpers/polling.d.ts.map +0 -1
- package/dist/helpers/random.d.mts +0 -10
- package/dist/helpers/random.d.ts +0 -10
- package/dist/helpers/random.d.ts.map +0 -1
- package/dist/helpers/sdk-loader.d.mts +0 -25
- package/dist/helpers/sdk-loader.d.ts +0 -25
- package/dist/helpers/sdk-loader.d.ts.map +0 -1
- package/dist/helpers/signatures.d.mts +0 -17
- package/dist/helpers/signatures.d.ts +0 -17
- package/dist/helpers/signatures.d.ts.map +0 -1
- package/dist/helpers/string.d.mts +0 -17
- package/dist/helpers/string.d.ts +0 -17
- package/dist/helpers/string.d.ts.map +0 -1
- package/dist/helpers/types.d.mts +0 -39
- package/dist/helpers/types.d.ts +0 -39
- package/dist/helpers/types.d.ts.map +0 -1
- package/dist/helpers/url.d.mts +0 -11
- package/dist/helpers/url.d.ts +0 -11
- package/dist/helpers/url.d.ts.map +0 -1
- package/dist/helpers/window.d.mts +0 -37
- package/dist/helpers/window.d.ts +0 -37
- package/dist/helpers/window.d.ts.map +0 -1
- package/dist/helpers/zod.d.mts +0 -51
- package/dist/helpers/zod.d.ts +0 -51
- package/dist/helpers/zod.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -7
- package/dist/index.mjs.map +0 -7
- package/dist/instructions/actions/index.d.mts +0 -5
- package/dist/instructions/actions/index.d.ts +0 -5
- package/dist/instructions/actions/index.d.ts.map +0 -1
- package/dist/instructions/actions/refuel/index.d.mts +0 -15
- package/dist/instructions/actions/refuel/index.d.ts +0 -15
- package/dist/instructions/actions/refuel/index.d.ts.map +0 -1
- package/dist/instructions/actions/swap/index.d.mts +0 -19
- package/dist/instructions/actions/swap/index.d.ts +0 -19
- package/dist/instructions/actions/swap/index.d.ts.map +0 -1
- package/dist/instructions/actions/sweep/index.d.mts +0 -16
- package/dist/instructions/actions/sweep/index.d.ts +0 -16
- package/dist/instructions/actions/sweep/index.d.ts.map +0 -1
- package/dist/instructions/actions/transfer/index.d.mts +0 -13
- package/dist/instructions/actions/transfer/index.d.ts +0 -13
- package/dist/instructions/actions/transfer/index.d.ts.map +0 -1
- package/dist/instructions/activate.d.mts +0 -84
- package/dist/instructions/activate.d.ts +0 -84
- package/dist/instructions/activate.d.ts.map +0 -1
- package/dist/instructions/build.d.mts +0 -146
- package/dist/instructions/build.d.ts +0 -146
- package/dist/instructions/build.d.ts.map +0 -1
- package/dist/instructions/constants.d.mts +0 -9
- package/dist/instructions/constants.d.ts +0 -9
- package/dist/instructions/constants.d.ts.map +0 -1
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.mts +0 -609
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts +0 -609
- package/dist/instructions/contracts/artifacts/abi/build-instruction-action-arguments-abi.d.ts.map +0 -1
- package/dist/instructions/types.d.mts +0 -289
- package/dist/instructions/types.d.ts +0 -289
- package/dist/instructions/types.d.ts.map +0 -1
- package/dist/payments/action-names.d.mts +0 -16
- package/dist/payments/action-names.d.ts +0 -16
- package/dist/payments/action-names.d.ts.map +0 -1
- package/dist/payments/actions/index.d.mts +0 -5
- package/dist/payments/actions/index.d.ts +0 -5
- package/dist/payments/actions/index.d.ts.map +0 -1
- package/dist/payments/actions/sweep-cctp.d.mts +0 -15
- package/dist/payments/actions/sweep-cctp.d.ts +0 -15
- package/dist/payments/actions/sweep-cctp.d.ts.map +0 -1
- package/dist/payments/actions/sweep-erc20.d.mts +0 -12
- package/dist/payments/actions/sweep-erc20.d.ts +0 -12
- package/dist/payments/actions/sweep-erc20.d.ts.map +0 -1
- package/dist/payments/actions/sweep-uniswap-v3.d.mts +0 -17
- package/dist/payments/actions/sweep-uniswap-v3.d.ts +0 -17
- package/dist/payments/actions/sweep-uniswap-v3.d.ts.map +0 -1
- package/dist/payments/actions/sweep.d.mts +0 -12
- package/dist/payments/actions/sweep.d.ts +0 -12
- package/dist/payments/actions/sweep.d.ts.map +0 -1
- package/dist/payments/build.d.mts +0 -28
- package/dist/payments/build.d.ts +0 -28
- package/dist/payments/build.d.ts.map +0 -1
- package/dist/payments/chain-token-config-builder.d.mts +0 -10
- package/dist/payments/chain-token-config-builder.d.ts +0 -10
- package/dist/payments/chain-token-config-builder.d.ts.map +0 -1
- package/dist/payments/comprehensive-payment-request.d.mts +0 -26
- package/dist/payments/comprehensive-payment-request.d.ts +0 -26
- package/dist/payments/comprehensive-payment-request.d.ts.map +0 -1
- package/dist/payments/config/cctp.d.mts +0 -14
- package/dist/payments/config/cctp.d.ts +0 -14
- package/dist/payments/config/cctp.d.ts.map +0 -1
- package/dist/payments/config/index.d.mts +0 -3
- package/dist/payments/config/index.d.ts +0 -3
- package/dist/payments/config/index.d.ts.map +0 -1
- package/dist/payments/config/tokens.d.mts +0 -14
- package/dist/payments/config/tokens.d.ts +0 -14
- package/dist/payments/config/tokens.d.ts.map +0 -1
- package/dist/payments/instruction-registry.d.mts +0 -19
- package/dist/payments/instruction-registry.d.ts +0 -19
- package/dist/payments/instruction-registry.d.ts.map +0 -1
- package/dist/payments/payment-metadata-builder.d.mts +0 -56
- package/dist/payments/payment-metadata-builder.d.ts +0 -56
- package/dist/payments/payment-metadata-builder.d.ts.map +0 -1
- package/dist/payments/payment-metadata.d.mts +0 -15
- package/dist/payments/payment-metadata.d.ts +0 -15
- package/dist/payments/payment-metadata.d.ts.map +0 -1
- package/dist/payments/payment-request-token-resolver.d.mts +0 -25
- package/dist/payments/payment-request-token-resolver.d.ts +0 -25
- package/dist/payments/payment-request-token-resolver.d.ts.map +0 -1
- package/dist/payments/types.d.mts +0 -40
- package/dist/payments/types.d.ts +0 -40
- package/dist/payments/types.d.ts.map +0 -1
- package/dist/payments/validation.d.mts +0 -19
- package/dist/payments/validation.d.ts +0 -19
- package/dist/payments/validation.d.ts.map +0 -1
- package/dist/schemas/account.d.mts +0 -9
- package/dist/schemas/account.d.ts +0 -9
- package/dist/schemas/account.d.ts.map +0 -1
- package/dist/schemas/brand.d.mts +0 -7
- package/dist/schemas/brand.d.ts +0 -7
- package/dist/schemas/brand.d.ts.map +0 -1
- package/dist/schemas/contact.d.mts +0 -18
- package/dist/schemas/contact.d.ts +0 -18
- package/dist/schemas/contact.d.ts.map +0 -1
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/instruction.d.mts +0 -248
- package/dist/schemas/instruction.d.ts +0 -248
- package/dist/schemas/instruction.d.ts.map +0 -1
- package/dist/schemas/misc.d.mts +0 -36
- package/dist/schemas/misc.d.ts +0 -36
- package/dist/schemas/misc.d.ts.map +0 -1
- package/dist/schemas/payment.d.mts +0 -64
- package/dist/schemas/payment.d.ts +0 -64
- package/dist/schemas/payment.d.ts.map +0 -1
- package/dist/schemas/token.d.mts +0 -17
- package/dist/schemas/token.d.ts +0 -17
- package/dist/schemas/token.d.ts.map +0 -1
- package/dist/schemas/transaction.d.mts +0 -65
- package/dist/schemas/transaction.d.ts +0 -65
- package/dist/schemas/transaction.d.ts.map +0 -1
- package/dist/schemas/user.d.mts +0 -24
- package/dist/schemas/user.d.ts +0 -24
- package/dist/schemas/user.d.ts.map +0 -1
- package/dist/server/client.d.mts +0 -3
- package/dist/server/client.d.ts +0 -3
- package/dist/server/client.d.ts.map +0 -1
- package/dist/server/routes/account.d.mts +0 -4
- package/dist/server/routes/account.d.ts +0 -4
- package/dist/server/routes/account.d.ts.map +0 -1
- package/dist/server/routes/auth.d.mts +0 -28
- package/dist/server/routes/auth.d.ts +0 -28
- package/dist/server/routes/auth.d.ts.map +0 -1
- package/dist/server/routes/bridge.d.mts +0 -254
- package/dist/server/routes/bridge.d.ts +0 -254
- package/dist/server/routes/bridge.d.ts.map +0 -1
- package/dist/server/routes/config.d.mts +0 -3
- package/dist/server/routes/config.d.ts +0 -3
- package/dist/server/routes/config.d.ts.map +0 -1
- package/dist/server/routes/index.d.mts +0 -8
- package/dist/server/routes/index.d.ts +0 -8
- package/dist/server/routes/index.d.ts.map +0 -1
- package/dist/server/routes/instruction.d.mts +0 -4
- package/dist/server/routes/instruction.d.ts +0 -4
- package/dist/server/routes/instruction.d.ts.map +0 -1
- package/dist/server/routes/integration.d.mts +0 -4
- package/dist/server/routes/integration.d.ts +0 -4
- package/dist/server/routes/integration.d.ts.map +0 -1
- package/dist/server/routes/payments.d.mts +0 -5
- package/dist/server/routes/payments.d.ts +0 -5
- package/dist/server/routes/payments.d.ts.map +0 -1
- package/dist/server/routes/verify.d.mts +0 -3
- package/dist/server/routes/verify.d.ts +0 -3
- package/dist/server/routes/verify.d.ts.map +0 -1
- package/dist/wallet/wagmi/config.d.mts +0 -18
- package/dist/wallet/wagmi/config.d.ts +0 -18
- package/dist/wallet/wagmi/config.d.ts.map +0 -1
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
interface LoggerOptions {
|
|
2
|
-
context?: string;
|
|
3
|
-
data?: unknown;
|
|
4
|
-
}
|
|
5
|
-
interface ErrorLogOptions {
|
|
6
|
-
context?: string;
|
|
7
|
-
operation?: string;
|
|
8
|
-
metadata?: Record<string, unknown>;
|
|
9
|
-
}
|
|
10
|
-
declare class Logger {
|
|
11
|
-
private isDevelopment;
|
|
12
|
-
debug(message: string, options?: LoggerOptions): void;
|
|
13
|
-
info(message: string, options?: LoggerOptions): void;
|
|
14
|
-
warn(message: string, options?: LoggerOptions): void;
|
|
15
|
-
error(message: string, options?: LoggerOptions): void;
|
|
16
|
-
/**
|
|
17
|
-
* Log errors with context - useful for non-API errors
|
|
18
|
-
* For API errors, use the existing getErrorMessage from @otim/utils/api
|
|
19
|
-
*/
|
|
20
|
-
logError(error: unknown, options?: ErrorLogOptions): void;
|
|
21
|
-
private buildPrefix;
|
|
22
|
-
private log;
|
|
23
|
-
}
|
|
24
|
-
export declare const logger: Logger;
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=logger.d.ts.map
|
package/dist/helpers/logger.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
interface LoggerOptions {
|
|
2
|
-
context?: string;
|
|
3
|
-
data?: unknown;
|
|
4
|
-
}
|
|
5
|
-
interface ErrorLogOptions {
|
|
6
|
-
context?: string;
|
|
7
|
-
operation?: string;
|
|
8
|
-
metadata?: Record<string, unknown>;
|
|
9
|
-
}
|
|
10
|
-
declare class Logger {
|
|
11
|
-
private isDevelopment;
|
|
12
|
-
debug(message: string, options?: LoggerOptions): void;
|
|
13
|
-
info(message: string, options?: LoggerOptions): void;
|
|
14
|
-
warn(message: string, options?: LoggerOptions): void;
|
|
15
|
-
error(message: string, options?: LoggerOptions): void;
|
|
16
|
-
/**
|
|
17
|
-
* Log errors with context - useful for non-API errors
|
|
18
|
-
* For API errors, use the existing getErrorMessage from @otim/utils/api
|
|
19
|
-
*/
|
|
20
|
-
logError(error: unknown, options?: ErrorLogOptions): void;
|
|
21
|
-
private buildPrefix;
|
|
22
|
-
private log;
|
|
23
|
-
}
|
|
24
|
-
export declare const logger: Logger;
|
|
25
|
-
export {};
|
|
26
|
-
//# sourceMappingURL=logger.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/helpers/logger.ts"],"names":[],"mappings":"AAIA,UAAU,aAAa;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB;AAED,UAAU,eAAe;IACvB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACpC;AAED,cAAM,MAAM;IACV,OAAO,CAAC,aAAa,CAAgC;IAErD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAMrD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIpD,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIpD,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,IAAI;IAIrD;;;OAGG;IACH,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,GAAE,eAAoB,GAAG,IAAI;IA6B7D,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,GAAG;CAqBZ;AAED,eAAO,MAAM,MAAM,QAAe,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MaskitoOptions } from "@maskito/core";
|
|
2
|
-
export declare const postalCodeMaskOptions: MaskitoOptions;
|
|
3
|
-
export declare const dateMaskOptions: Required<MaskitoOptions>;
|
|
4
|
-
export declare const timeOptions: Required<MaskitoOptions>;
|
|
5
|
-
export declare const timeOptionsWithoutMeridiem: Required<MaskitoOptions>;
|
|
6
|
-
export declare const timeMaskOptionsHHMM: Required<MaskitoOptions>;
|
|
7
|
-
export declare const formatUUID: (value: string) => string;
|
|
8
|
-
export declare const uuidMaskOptions: MaskitoOptions;
|
|
9
|
-
export declare const usdCurrencyMaskOptions: MaskitoOptions;
|
|
10
|
-
//# sourceMappingURL=mask-options.d.ts.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { MaskitoOptions } from "@maskito/core";
|
|
2
|
-
export declare const postalCodeMaskOptions: MaskitoOptions;
|
|
3
|
-
export declare const dateMaskOptions: Required<MaskitoOptions>;
|
|
4
|
-
export declare const timeOptions: Required<MaskitoOptions>;
|
|
5
|
-
export declare const timeOptionsWithoutMeridiem: Required<MaskitoOptions>;
|
|
6
|
-
export declare const timeMaskOptionsHHMM: Required<MaskitoOptions>;
|
|
7
|
-
export declare const formatUUID: (value: string) => string;
|
|
8
|
-
export declare const uuidMaskOptions: MaskitoOptions;
|
|
9
|
-
export declare const usdCurrencyMaskOptions: MaskitoOptions;
|
|
10
|
-
//# sourceMappingURL=mask-options.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mask-options.d.ts","sourceRoot":"","sources":["../../src/helpers/mask-options.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAqBpD,eAAO,MAAM,qBAAqB,EAAE,cAMnC,CAAC;AAEF,eAAO,MAAM,eAAe,0BAG1B,CAAC;AAEH,eAAO,MAAM,WAAW,0BAEtB,CAAC;AAEH,eAAO,MAAM,0BAA0B,0BAErC,CAAC;AAEH,eAAO,MAAM,mBAAmB,0BAE9B,CAAC;AAEH,eAAO,MAAM,UAAU,GAAI,OAAO,MAAM,KAAG,MAmF1C,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,cAE7B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,cA8BpC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"num-formatter.d.ts","sourceRoot":"","sources":["../../src/helpers/num-formatter.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,GAAI,KAAK,MAAM,EAAE,QAAQ,MAAM,oBAkBvD,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,KAAK,MAAM,WAInD,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration for polling behavior
|
|
4
|
-
*/
|
|
5
|
-
export interface PollingConfig {
|
|
6
|
-
intervalMs?: number;
|
|
7
|
-
onComplete?: () => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Manages polling for emergent window completion status.
|
|
11
|
-
* Generic utility that can be used for any async polling scenario.
|
|
12
|
-
* Follows Single Responsibility Principle - only handles polling logic.
|
|
13
|
-
*/
|
|
14
|
-
export declare class PollingManager {
|
|
15
|
-
private emergentWindow;
|
|
16
|
-
private pollIntervalId;
|
|
17
|
-
private config;
|
|
18
|
-
constructor(config?: PollingConfig);
|
|
19
|
-
/**
|
|
20
|
-
* Starts polling for the given check function
|
|
21
|
-
*
|
|
22
|
-
* @param emergentWindow - The emergent window to monitor (optional)
|
|
23
|
-
* @param checkFn - Function that returns true when polling should stop
|
|
24
|
-
*/
|
|
25
|
-
start(emergentWindow: Nullable<Window>, checkFn: () => Promise<boolean>): void;
|
|
26
|
-
/**
|
|
27
|
-
* Stops polling and cleans up resources
|
|
28
|
-
*/
|
|
29
|
-
stop(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Finalizes polling by closing emergent window, stopping interval, and returning focus
|
|
32
|
-
*/
|
|
33
|
-
finalize(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Cleans up resources
|
|
36
|
-
*/
|
|
37
|
-
dispose(): void;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=polling.d.ts.map
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Configuration for polling behavior
|
|
4
|
-
*/
|
|
5
|
-
export interface PollingConfig {
|
|
6
|
-
intervalMs?: number;
|
|
7
|
-
onComplete?: () => void;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Manages polling for emergent window completion status.
|
|
11
|
-
* Generic utility that can be used for any async polling scenario.
|
|
12
|
-
* Follows Single Responsibility Principle - only handles polling logic.
|
|
13
|
-
*/
|
|
14
|
-
export declare class PollingManager {
|
|
15
|
-
private emergentWindow;
|
|
16
|
-
private pollIntervalId;
|
|
17
|
-
private config;
|
|
18
|
-
constructor(config?: PollingConfig);
|
|
19
|
-
/**
|
|
20
|
-
* Starts polling for the given check function
|
|
21
|
-
*
|
|
22
|
-
* @param emergentWindow - The emergent window to monitor (optional)
|
|
23
|
-
* @param checkFn - Function that returns true when polling should stop
|
|
24
|
-
*/
|
|
25
|
-
start(emergentWindow: Nullable<Window>, checkFn: () => Promise<boolean>): void;
|
|
26
|
-
/**
|
|
27
|
-
* Stops polling and cleans up resources
|
|
28
|
-
*/
|
|
29
|
-
stop(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Finalizes polling by closing emergent window, stopping interval, and returning focus
|
|
32
|
-
*/
|
|
33
|
-
finalize(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Cleans up resources
|
|
36
|
-
*/
|
|
37
|
-
dispose(): void;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=polling.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"polling.d.ts","sourceRoot":"","sources":["../../src/helpers/polling.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAKxC;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;CACzB;AAUD;;;;GAIG;AACH,qBAAa,cAAc;IACzB,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,cAAc,CAA0B;IAChD,OAAO,CAAC,MAAM,CAA0B;gBAE5B,MAAM,GAAE,aAAkB;IAItC;;;;;OAKG;IACH,KAAK,CACH,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,EAChC,OAAO,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,GAC9B,IAAI;IAqBP;;OAEG;IACH,IAAI,IAAI,IAAI;IAOZ;;OAEG;IACH,QAAQ,IAAI,IAAI;IAOhB;;OAEG;IACH,OAAO,IAAI,IAAI;CAGhB"}
|
package/dist/helpers/random.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["../../src/helpers/random.ts"],"names":[],"mappings":"AAAA,UAAU,KAAK;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,cAAe,SAAQ,KAAK;IACpC,KAAK,EAAE,MAAM,CAAC;CACf;AAED,eAAO,MAAM,YAAY,GAAI,MAAM,cAAc,KAAG,MAWnD,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration for loading external SDK scripts
|
|
3
|
-
*/
|
|
4
|
-
export interface SdkLoaderConfig {
|
|
5
|
-
src: string;
|
|
6
|
-
name: string;
|
|
7
|
-
timeout?: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Generic SDK loader utility for loading third-party scripts
|
|
11
|
-
* Follows Single Responsibility Principle - only handles script loading
|
|
12
|
-
*
|
|
13
|
-
* @param config - SDK loader configuration
|
|
14
|
-
* @returns Promise that resolves when SDK is loaded
|
|
15
|
-
* @throws Error if SDK fails to load or times out
|
|
16
|
-
*/
|
|
17
|
-
export declare function loadExternalSdk(config: SdkLoaderConfig): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Checks if a script with the given src is already loaded
|
|
20
|
-
*
|
|
21
|
-
* @param src - Script source URL to check
|
|
22
|
-
* @returns true if script is already in the DOM
|
|
23
|
-
*/
|
|
24
|
-
export declare function isScriptLoaded(src: string): boolean;
|
|
25
|
-
//# sourceMappingURL=sdk-loader.d.ts.map
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration for loading external SDK scripts
|
|
3
|
-
*/
|
|
4
|
-
export interface SdkLoaderConfig {
|
|
5
|
-
src: string;
|
|
6
|
-
name: string;
|
|
7
|
-
timeout?: number;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Generic SDK loader utility for loading third-party scripts
|
|
11
|
-
* Follows Single Responsibility Principle - only handles script loading
|
|
12
|
-
*
|
|
13
|
-
* @param config - SDK loader configuration
|
|
14
|
-
* @returns Promise that resolves when SDK is loaded
|
|
15
|
-
* @throws Error if SDK fails to load or times out
|
|
16
|
-
*/
|
|
17
|
-
export declare function loadExternalSdk(config: SdkLoaderConfig): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* Checks if a script with the given src is already loaded
|
|
20
|
-
*
|
|
21
|
-
* @param src - Script source URL to check
|
|
22
|
-
* @returns true if script is already in the DOM
|
|
23
|
-
*/
|
|
24
|
-
export declare function isScriptLoaded(src: string): boolean;
|
|
25
|
-
//# sourceMappingURL=sdk-loader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sdk-loader.d.ts","sourceRoot":"","sources":["../../src/helpers/sdk-loader.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAOD;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAgC5E;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAYnD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EIP-2098 Signature format (compact)
|
|
3
|
-
*/
|
|
4
|
-
export interface EIP2098Signature {
|
|
5
|
-
yParity: number;
|
|
6
|
-
r: `0x${string}`;
|
|
7
|
-
s: `0x${string}`;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Converts a standard signature to EIP-2098 format
|
|
11
|
-
*/
|
|
12
|
-
export declare const formatSignatureToEIP2098: (signature: {
|
|
13
|
-
v: string;
|
|
14
|
-
r: string;
|
|
15
|
-
s: string;
|
|
16
|
-
}) => EIP2098Signature;
|
|
17
|
-
//# sourceMappingURL=signatures.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* EIP-2098 Signature format (compact)
|
|
3
|
-
*/
|
|
4
|
-
export interface EIP2098Signature {
|
|
5
|
-
yParity: number;
|
|
6
|
-
r: `0x${string}`;
|
|
7
|
-
s: `0x${string}`;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Converts a standard signature to EIP-2098 format
|
|
11
|
-
*/
|
|
12
|
-
export declare const formatSignatureToEIP2098: (signature: {
|
|
13
|
-
v: string;
|
|
14
|
-
r: string;
|
|
15
|
-
s: string;
|
|
16
|
-
}) => EIP2098Signature;
|
|
17
|
-
//# sourceMappingURL=signatures.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signatures.d.ts","sourceRoot":"","sources":["../../src/helpers/signatures.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;IACjB,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,GAAI,WAAW;IAClD,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;CACX,KAAG,gBAkBH,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Optional } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Capitalizes the first letter of a string
|
|
4
|
-
*
|
|
5
|
-
* @param str – The string to capitalize
|
|
6
|
-
* @returns The string with first letter capitalized, or undefined if input is
|
|
7
|
-
* nullish
|
|
8
|
-
*/
|
|
9
|
-
export declare const capitalize: (str?: string) => Optional<string>;
|
|
10
|
-
/**
|
|
11
|
-
* Converts a string to title case (capitalizes first letter, lowercase rest)
|
|
12
|
-
*
|
|
13
|
-
* @param str – The string to convert
|
|
14
|
-
* @returns The string in title case, or undefined if input is nullish
|
|
15
|
-
*/
|
|
16
|
-
export declare const toTitleCase: (str?: string) => Optional<string>;
|
|
17
|
-
//# sourceMappingURL=string.d.ts.map
|
package/dist/helpers/string.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Optional } from "./types";
|
|
2
|
-
/**
|
|
3
|
-
* Capitalizes the first letter of a string
|
|
4
|
-
*
|
|
5
|
-
* @param str – The string to capitalize
|
|
6
|
-
* @returns The string with first letter capitalized, or undefined if input is
|
|
7
|
-
* nullish
|
|
8
|
-
*/
|
|
9
|
-
export declare const capitalize: (str?: string) => Optional<string>;
|
|
10
|
-
/**
|
|
11
|
-
* Converts a string to title case (capitalizes first letter, lowercase rest)
|
|
12
|
-
*
|
|
13
|
-
* @param str – The string to convert
|
|
14
|
-
* @returns The string in title case, or undefined if input is nullish
|
|
15
|
-
*/
|
|
16
|
-
export declare const toTitleCase: (str?: string) => Optional<string>;
|
|
17
|
-
//# sourceMappingURL=string.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["../../src/helpers/string.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,KAAG,QAAQ,CAAC,MAAM,CAGxD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,KAAG,QAAQ,CAAC,MAAM,CAGzD,CAAC"}
|
package/dist/helpers/types.d.mts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { z, ZodObject } from "zod";
|
|
2
|
-
export type Nullable<T> = T | null;
|
|
3
|
-
export type Nullish<T> = T | null | undefined;
|
|
4
|
-
export type Optional<T> = T | undefined;
|
|
5
|
-
export type Any = any;
|
|
6
|
-
export type NumberOrString = number | string;
|
|
7
|
-
export type OverrideProps<T, TOverridden> = Omit<T, keyof TOverridden> & TOverridden;
|
|
8
|
-
export type NonEmptyArray<T> = [T, ...T[]];
|
|
9
|
-
export interface DataRecord {
|
|
10
|
-
[value: string]: Nullish<DataRecord | string | number | boolean>;
|
|
11
|
-
}
|
|
12
|
-
export interface Input<T> {
|
|
13
|
-
input: T;
|
|
14
|
-
}
|
|
15
|
-
export type ZodCustom<Values extends object> = ZodObject<{
|
|
16
|
-
[P in keyof Values]: z.ZodType<Values[P]>;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const isError: (value: unknown) => value is Error;
|
|
19
|
-
export declare const isFunction: (value: unknown) => value is (...args: unknown[]) => unknown;
|
|
20
|
-
export declare const isObject: (value: unknown) => value is Record<string, unknown>;
|
|
21
|
-
export declare const isNumber: (value: unknown) => value is number;
|
|
22
|
-
export declare const isString: (value: unknown) => value is string;
|
|
23
|
-
export declare const isUndefined: (value: unknown) => value is undefined;
|
|
24
|
-
export declare const isBoolean: (value: unknown) => value is boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Safely extracts a string from an unknown value.
|
|
27
|
-
* @param value - The value to extract from
|
|
28
|
-
* @param fallback - Optional fallback value if extraction fails
|
|
29
|
-
* @returns The extracted string or fallback/undefined
|
|
30
|
-
*/
|
|
31
|
-
export declare const extractString: (value: unknown, fallback?: string) => Optional<string>;
|
|
32
|
-
/**
|
|
33
|
-
* Safely extracts a number from an unknown value.
|
|
34
|
-
* Handles both number and string representations.
|
|
35
|
-
* @param value - The value to extract from
|
|
36
|
-
* @returns The extracted number or undefined
|
|
37
|
-
*/
|
|
38
|
-
export declare const extractNumber: (value: unknown) => Optional<number>;
|
|
39
|
-
//# sourceMappingURL=types.d.ts.map
|
package/dist/helpers/types.d.ts
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { z, ZodObject } from "zod";
|
|
2
|
-
export type Nullable<T> = T | null;
|
|
3
|
-
export type Nullish<T> = T | null | undefined;
|
|
4
|
-
export type Optional<T> = T | undefined;
|
|
5
|
-
export type Any = any;
|
|
6
|
-
export type NumberOrString = number | string;
|
|
7
|
-
export type OverrideProps<T, TOverridden> = Omit<T, keyof TOverridden> & TOverridden;
|
|
8
|
-
export type NonEmptyArray<T> = [T, ...T[]];
|
|
9
|
-
export interface DataRecord {
|
|
10
|
-
[value: string]: Nullish<DataRecord | string | number | boolean>;
|
|
11
|
-
}
|
|
12
|
-
export interface Input<T> {
|
|
13
|
-
input: T;
|
|
14
|
-
}
|
|
15
|
-
export type ZodCustom<Values extends object> = ZodObject<{
|
|
16
|
-
[P in keyof Values]: z.ZodType<Values[P]>;
|
|
17
|
-
}>;
|
|
18
|
-
export declare const isError: (value: unknown) => value is Error;
|
|
19
|
-
export declare const isFunction: (value: unknown) => value is (...args: unknown[]) => unknown;
|
|
20
|
-
export declare const isObject: (value: unknown) => value is Record<string, unknown>;
|
|
21
|
-
export declare const isNumber: (value: unknown) => value is number;
|
|
22
|
-
export declare const isString: (value: unknown) => value is string;
|
|
23
|
-
export declare const isUndefined: (value: unknown) => value is undefined;
|
|
24
|
-
export declare const isBoolean: (value: unknown) => value is boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Safely extracts a string from an unknown value.
|
|
27
|
-
* @param value - The value to extract from
|
|
28
|
-
* @param fallback - Optional fallback value if extraction fails
|
|
29
|
-
* @returns The extracted string or fallback/undefined
|
|
30
|
-
*/
|
|
31
|
-
export declare const extractString: (value: unknown, fallback?: string) => Optional<string>;
|
|
32
|
-
/**
|
|
33
|
-
* Safely extracts a number from an unknown value.
|
|
34
|
-
* Handles both number and string representations.
|
|
35
|
-
* @param value - The value to extract from
|
|
36
|
-
* @returns The extracted number or undefined
|
|
37
|
-
*/
|
|
38
|
-
export declare const extractNumber: (value: unknown) => Optional<number>;
|
|
39
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/helpers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAExC,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;AACnC,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;AAC9C,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;AAExC,MAAM,MAAM,GAAG,GAAG,GAAG,CAAC;AAEtB,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7C,MAAM,MAAM,aAAa,CAAC,CAAC,EAAE,WAAW,IAAI,IAAI,CAAC,CAAC,EAAE,MAAM,WAAW,CAAC,GACpE,WAAW,CAAC;AAEd,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;AAE3C,MAAM,WAAW,UAAU;IACzB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;CAClE;AAED,MAAM,WAAW,KAAK,CAAC,CAAC;IACtB,KAAK,EAAE,CAAC,CAAC;CACV;AAED,MAAM,MAAM,SAAS,CAAC,MAAM,SAAS,MAAM,IAAI,SAAS,CAAC;KACtD,CAAC,IAAI,MAAM,MAAM,GAAG,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;CAC1C,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,KAC1B,CAAC;AAEzB,eAAO,MAAM,UAAU,GACrB,OAAO,OAAO,KACb,KAAK,IAAI,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAsC,CAAC;AAE3E,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAC5B,CAAC;AAE9C,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MACxB,CAAC;AAE5B,eAAO,MAAM,QAAQ,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,MACxB,CAAC;AAE5B,eAAO,MAAM,WAAW,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,SACxB,CAAC;AAE/B,eAAO,MAAM,SAAS,GAAI,OAAO,OAAO,KAAG,KAAK,IAAI,OACxB,CAAC;AAE7B;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GACxB,OAAO,OAAO,EACd,WAAW,MAAM,KAChB,QAAQ,CAAC,MAAM,CAEjB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,OAAO,KAAG,QAAQ,CAAC,MAAM,CAW7D,CAAC"}
|
package/dist/helpers/url.d.mts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type QueryParams = Record<string, string | number | boolean | null | undefined>;
|
|
2
|
-
/**
|
|
3
|
-
* Builds a query string from a params object, skipping undefined/null values.
|
|
4
|
-
* Encodes using encodeURIComponent. Returns empty string if no params.
|
|
5
|
-
*/
|
|
6
|
-
export declare function buildQueryString(params: QueryParams): string;
|
|
7
|
-
/**
|
|
8
|
-
* Build a URL by combining a base path with optional query params.
|
|
9
|
-
*/
|
|
10
|
-
export declare function buildUrl(path: string, params?: QueryParams): string;
|
|
11
|
-
//# sourceMappingURL=url.d.ts.map
|
package/dist/helpers/url.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type QueryParams = Record<string, string | number | boolean | null | undefined>;
|
|
2
|
-
/**
|
|
3
|
-
* Builds a query string from a params object, skipping undefined/null values.
|
|
4
|
-
* Encodes using encodeURIComponent. Returns empty string if no params.
|
|
5
|
-
*/
|
|
6
|
-
export declare function buildQueryString(params: QueryParams): string;
|
|
7
|
-
/**
|
|
8
|
-
* Build a URL by combining a base path with optional query params.
|
|
9
|
-
*/
|
|
10
|
-
export declare function buildUrl(path: string, params?: QueryParams): string;
|
|
11
|
-
//# sourceMappingURL=url.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["../../src/helpers/url.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG,MAAM,CAC9B,MAAM,EACN,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAC7C,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAQ5D;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,MAAM,CAGnE"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from "./types";
|
|
2
|
-
export declare const isClient: () => boolean;
|
|
3
|
-
/**
|
|
4
|
-
* Configuration for emergent window
|
|
5
|
-
*/
|
|
6
|
-
export interface EmergentWindowConfig {
|
|
7
|
-
width?: number;
|
|
8
|
-
height?: number;
|
|
9
|
-
name?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Opens an emergent window centered on the screen.
|
|
13
|
-
* Used for authentication flows and external integrations.
|
|
14
|
-
*
|
|
15
|
-
* @param url - The URL to open in the emergent window
|
|
16
|
-
* @param config - Optional configuration for the window
|
|
17
|
-
* @returns The opened window or null if it failed
|
|
18
|
-
*/
|
|
19
|
-
export declare function openCenteredEmergentWindow(url: string, config?: EmergentWindowConfig): Nullable<Window>;
|
|
20
|
-
/**
|
|
21
|
-
* Closes an emergent window safely
|
|
22
|
-
*
|
|
23
|
-
* @param emergentWindow - The emergent window to close
|
|
24
|
-
*/
|
|
25
|
-
export declare function closeEmergentWindow(emergentWindow: Nullable<Window>): void;
|
|
26
|
-
/**
|
|
27
|
-
* Returns focus to the main window
|
|
28
|
-
*/
|
|
29
|
-
export declare function focusMainWindow(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Performs a client-side redirect to the specified path
|
|
32
|
-
*
|
|
33
|
-
* @param path - The path to redirect to
|
|
34
|
-
* @param fallbackPath - Optional fallback path if the main path is empty
|
|
35
|
-
*/
|
|
36
|
-
export declare function performRedirect(path: string, fallbackPath?: string): void;
|
|
37
|
-
//# sourceMappingURL=window.d.ts.map
|
package/dist/helpers/window.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { Nullable } from "./types";
|
|
2
|
-
export declare const isClient: () => boolean;
|
|
3
|
-
/**
|
|
4
|
-
* Configuration for emergent window
|
|
5
|
-
*/
|
|
6
|
-
export interface EmergentWindowConfig {
|
|
7
|
-
width?: number;
|
|
8
|
-
height?: number;
|
|
9
|
-
name?: string;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Opens an emergent window centered on the screen.
|
|
13
|
-
* Used for authentication flows and external integrations.
|
|
14
|
-
*
|
|
15
|
-
* @param url - The URL to open in the emergent window
|
|
16
|
-
* @param config - Optional configuration for the window
|
|
17
|
-
* @returns The opened window or null if it failed
|
|
18
|
-
*/
|
|
19
|
-
export declare function openCenteredEmergentWindow(url: string, config?: EmergentWindowConfig): Nullable<Window>;
|
|
20
|
-
/**
|
|
21
|
-
* Closes an emergent window safely
|
|
22
|
-
*
|
|
23
|
-
* @param emergentWindow - The emergent window to close
|
|
24
|
-
*/
|
|
25
|
-
export declare function closeEmergentWindow(emergentWindow: Nullable<Window>): void;
|
|
26
|
-
/**
|
|
27
|
-
* Returns focus to the main window
|
|
28
|
-
*/
|
|
29
|
-
export declare function focusMainWindow(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Performs a client-side redirect to the specified path
|
|
32
|
-
*
|
|
33
|
-
* @param path - The path to redirect to
|
|
34
|
-
* @param fallbackPath - Optional fallback path if the main path is empty
|
|
35
|
-
*/
|
|
36
|
-
export declare function performRedirect(path: string, fallbackPath?: string): void;
|
|
37
|
-
//# sourceMappingURL=window.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window.d.ts","sourceRoot":"","sources":["../../src/helpers/window.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIxC,eAAO,MAAM,QAAQ,QAAO,OACiC,CAAC;AAE9D;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAWD;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,GAAG,EAAE,MAAM,EACX,MAAM,GAAE,oBAAyB,GAChC,QAAQ,CAAC,MAAM,CAAC,CAgDlB;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,IAAI,CAU1E;AAED;;GAEG;AACH,wBAAgB,eAAe,IAAI,IAAI,CAWtC;AAED;;;;;GAKG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,YAAY,GAAE,MAAY,GACzB,IAAI,CAKN"}
|
package/dist/helpers/zod.d.mts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { ZodObject, ZodTypeAny } from "zod";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
export type Validator<T> = (data: T, ctx: z.RefinementCtx) => void;
|
|
4
|
-
export declare const composeValidators: <T>(validators: Validator<T>[]) => (data: T, ctx: z.RefinementCtx) => void;
|
|
5
|
-
/**
|
|
6
|
-
* creates a time unit validator for fields stored as JSON strings.
|
|
7
|
-
* validates both the JSON format and the minimum seconds requirement.
|
|
8
|
-
*
|
|
9
|
-
* @param fieldName – the name of the field for error messages
|
|
10
|
-
* @param options – configuration options
|
|
11
|
-
* @param options.minSeconds – minimum seconds required (default: 60)
|
|
12
|
-
* @param options.allowZero – whether to allow 0 seconds for "None" option (default: false)
|
|
13
|
-
* @param options.useHumanReadable – whether to use human-readable time in error messages (default: true)
|
|
14
|
-
*/
|
|
15
|
-
export declare const createTimeUnitValidator: (fieldName: string, options?: {
|
|
16
|
-
minSeconds?: number;
|
|
17
|
-
allowZero?: boolean;
|
|
18
|
-
useHumanReadable?: boolean;
|
|
19
|
-
}) => z.ZodOptional<z.ZodString>;
|
|
20
|
-
/**
|
|
21
|
-
* Parse the input values using the provided schema. If the input values are
|
|
22
|
-
* invalid, throw a ResolverError.
|
|
23
|
-
* @param values - The input values to parse.
|
|
24
|
-
* @param schema - The schema to use to parse the input values.
|
|
25
|
-
* @param error - The error code to use if the input values are invalid.
|
|
26
|
-
* @returns The parsed input values.
|
|
27
|
-
* @throws ResolverError if the input values are invalid.
|
|
28
|
-
*/
|
|
29
|
-
export declare const parseSchema: <Values, Schema extends ZodTypeAny = ZodObject<{ [P in keyof Values]: z.ZodType<Values[P]>; }>>(values: Values, schema: Schema) => z.infer<Schema>;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a permissive decimal string schema that allows empty strings.
|
|
32
|
-
* Converts undefined/null values to empty strings, preventing "expected string, received undefined" errors.
|
|
33
|
-
* Useful for form fields where validation happens in a refine step.
|
|
34
|
-
*/
|
|
35
|
-
export declare const formDecimalStringSchema: () => z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
36
|
-
/**
|
|
37
|
-
* Creates a hex string schema with preprocessing that defaults to DEFAULT_ADDRESS.
|
|
38
|
-
* Converts undefined/null/empty values to DEFAULT_ADDRESS before validation.
|
|
39
|
-
* Useful for form fields that expect hex addresses.
|
|
40
|
-
*/
|
|
41
|
-
export declare const formHexStringSchema: () => z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
42
|
-
/**
|
|
43
|
-
* Filters out Zod internal errors that shouldn't be shown to users.
|
|
44
|
-
* Only returns user-friendly validation messages.
|
|
45
|
-
*
|
|
46
|
-
* @param errors - Array of error messages from Zod validation, or a single error string
|
|
47
|
-
* @param fieldValue - The field value being validated
|
|
48
|
-
* @returns User-friendly error message or undefined
|
|
49
|
-
*/
|
|
50
|
-
export declare const getDisplayableZodError: (errors: string[] | string | undefined, fieldValue: unknown) => string | undefined;
|
|
51
|
-
//# sourceMappingURL=zod.d.ts.map
|
package/dist/helpers/zod.d.ts
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import type { ZodObject, ZodTypeAny } from "zod";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
export type Validator<T> = (data: T, ctx: z.RefinementCtx) => void;
|
|
4
|
-
export declare const composeValidators: <T>(validators: Validator<T>[]) => (data: T, ctx: z.RefinementCtx) => void;
|
|
5
|
-
/**
|
|
6
|
-
* creates a time unit validator for fields stored as JSON strings.
|
|
7
|
-
* validates both the JSON format and the minimum seconds requirement.
|
|
8
|
-
*
|
|
9
|
-
* @param fieldName – the name of the field for error messages
|
|
10
|
-
* @param options – configuration options
|
|
11
|
-
* @param options.minSeconds – minimum seconds required (default: 60)
|
|
12
|
-
* @param options.allowZero – whether to allow 0 seconds for "None" option (default: false)
|
|
13
|
-
* @param options.useHumanReadable – whether to use human-readable time in error messages (default: true)
|
|
14
|
-
*/
|
|
15
|
-
export declare const createTimeUnitValidator: (fieldName: string, options?: {
|
|
16
|
-
minSeconds?: number;
|
|
17
|
-
allowZero?: boolean;
|
|
18
|
-
useHumanReadable?: boolean;
|
|
19
|
-
}) => z.ZodOptional<z.ZodString>;
|
|
20
|
-
/**
|
|
21
|
-
* Parse the input values using the provided schema. If the input values are
|
|
22
|
-
* invalid, throw a ResolverError.
|
|
23
|
-
* @param values - The input values to parse.
|
|
24
|
-
* @param schema - The schema to use to parse the input values.
|
|
25
|
-
* @param error - The error code to use if the input values are invalid.
|
|
26
|
-
* @returns The parsed input values.
|
|
27
|
-
* @throws ResolverError if the input values are invalid.
|
|
28
|
-
*/
|
|
29
|
-
export declare const parseSchema: <Values, Schema extends ZodTypeAny = ZodObject<{ [P in keyof Values]: z.ZodType<Values[P]>; }>>(values: Values, schema: Schema) => z.infer<Schema>;
|
|
30
|
-
/**
|
|
31
|
-
* Creates a permissive decimal string schema that allows empty strings.
|
|
32
|
-
* Converts undefined/null values to empty strings, preventing "expected string, received undefined" errors.
|
|
33
|
-
* Useful for form fields where validation happens in a refine step.
|
|
34
|
-
*/
|
|
35
|
-
export declare const formDecimalStringSchema: () => z.ZodPipe<z.ZodTransform<string, unknown>, z.ZodString>;
|
|
36
|
-
/**
|
|
37
|
-
* Creates a hex string schema with preprocessing that defaults to DEFAULT_ADDRESS.
|
|
38
|
-
* Converts undefined/null/empty values to DEFAULT_ADDRESS before validation.
|
|
39
|
-
* Useful for form fields that expect hex addresses.
|
|
40
|
-
*/
|
|
41
|
-
export declare const formHexStringSchema: () => z.ZodPipe<z.ZodTransform<{}, unknown>, z.ZodPipe<z.ZodString, z.ZodTransform<`0x${string}`, string>>>;
|
|
42
|
-
/**
|
|
43
|
-
* Filters out Zod internal errors that shouldn't be shown to users.
|
|
44
|
-
* Only returns user-friendly validation messages.
|
|
45
|
-
*
|
|
46
|
-
* @param errors - Array of error messages from Zod validation, or a single error string
|
|
47
|
-
* @param fieldValue - The field value being validated
|
|
48
|
-
* @returns User-friendly error message or undefined
|
|
49
|
-
*/
|
|
50
|
-
export declare const getDisplayableZodError: (errors: string[] | string | undefined, fieldValue: unknown) => string | undefined;
|
|
51
|
-
//# sourceMappingURL=zod.d.ts.map
|