bitbadgesjs-sdk 0.7.13 → 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/dist/cjs/api-indexer/BitBadgesAddressList.js +239 -196
- package/dist/cjs/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +34 -16
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +9487 -8694
- package/dist/cjs/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesCollection.d.ts +5 -7
- package/dist/cjs/api-indexer/BitBadgesCollection.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesCollection.js +185 -140
- package/dist/cjs/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesUserInfo.d.ts +2 -4
- package/dist/cjs/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesUserInfo.js +72 -37
- package/dist/cjs/api-indexer/BitBadgesUserInfo.js.map +1 -1
- package/dist/cjs/api-indexer/docs/activity.d.ts +1 -1
- package/dist/cjs/api-indexer/docs/activity.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/activity.js +1 -1
- package/dist/cjs/api-indexer/docs/activity.js.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/cjs/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/cjs/api-indexer/metadata/badgeMetadata.d.ts +4 -4
- package/dist/cjs/api-indexer/metadata/badgeMetadata.d.ts.map +1 -1
- package/dist/cjs/api-indexer/metadata/badgeMetadata.js +17 -7
- package/dist/cjs/api-indexer/metadata/badgeMetadata.js.map +1 -1
- package/dist/cjs/api-indexer/metadata/metadataIds.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/collections.d.ts +1 -1
- package/dist/cjs/api-indexer/requests/collections.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/index.d.ts +1 -0
- package/dist/cjs/api-indexer/requests/index.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/index.js +1 -0
- package/dist/cjs/api-indexer/requests/index.js.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.d.ts +4 -28
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +6 -35
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +20 -2
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.js +20 -2
- package/dist/cjs/api-indexer/requests/routes.js.map +1 -1
- package/dist/cjs/api-indexer/requests/wrappers.d.ts +296 -0
- package/dist/cjs/api-indexer/requests/wrappers.d.ts.map +1 -0
- package/dist/cjs/api-indexer/requests/wrappers.js +304 -0
- package/dist/cjs/api-indexer/requests/wrappers.js.map +1 -0
- package/dist/cjs/attestations/attestations.d.ts.map +1 -1
- package/dist/cjs/chain-drivers/verifySig.d.ts.map +1 -1
- package/dist/cjs/common/base.d.ts.map +1 -1
- package/dist/cjs/common/string-numbers.d.ts.map +1 -1
- package/dist/cjs/core/addressLists.d.ts.map +1 -1
- package/dist/cjs/core/aliases.d.ts +3 -3
- package/dist/cjs/core/aliases.d.ts.map +1 -1
- package/dist/cjs/core/approval-utils.d.ts.map +1 -1
- package/dist/cjs/core/approvals.js +17 -7
- package/dist/cjs/core/approvals.js.map +1 -1
- package/dist/cjs/core/balances.d.ts.map +1 -1
- package/dist/cjs/core/balances.js +17 -7
- package/dist/cjs/core/balances.js.map +1 -1
- package/dist/cjs/core/blockin.d.ts.map +1 -1
- package/dist/cjs/core/misc.js +17 -7
- package/dist/cjs/core/misc.js.map +1 -1
- package/dist/cjs/core/permission-utils.d.ts.map +1 -1
- package/dist/cjs/core/permissions.js +17 -7
- package/dist/cjs/core/permissions.js.map +1 -1
- package/dist/cjs/core/transfers.d.ts.map +1 -1
- package/dist/cjs/core/transfers.js +17 -7
- package/dist/cjs/core/transfers.js.map +1 -1
- package/dist/cjs/core/uintRanges.js +17 -7
- package/dist/cjs/core/uintRanges.js.map +1 -1
- package/dist/cjs/core/userBalances.js +17 -7
- package/dist/cjs/core/userBalances.js.map +1 -1
- package/dist/cjs/index.js +17 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/proto/bitcoin/web3_pb.d.ts +1 -1
- package/dist/cjs/proto/bitcoin/web3_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/app/index.js +17 -7
- package/dist/cjs/proto/cosmos/app/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/app/runtime/index.js +17 -7
- package/dist/cjs/proto/cosmos/app/runtime/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/auth/index.js +17 -7
- package/dist/cjs/proto/cosmos/auth/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/auth/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/auth/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/auth/v1beta1/query_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/auth/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/authz/index.js +17 -7
- package/dist/cjs/proto/cosmos/authz/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/authz/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/authz/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/autocli/index.js +17 -7
- package/dist/cjs/proto/cosmos/autocli/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/bank/index.js +17 -7
- package/dist/cjs/proto/cosmos/bank/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/bank/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/bank/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/abci/index.js +17 -7
- package/dist/cjs/proto/cosmos/base/abci/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/abci/v1beta1/abci_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/base/abci/v1beta1/abci_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/base/index.js +17 -7
- package/dist/cjs/proto/cosmos/base/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/kv/index.js +17 -7
- package/dist/cjs/proto/cosmos/base/kv/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/kv/v1beta1/kv_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/base/kv/v1beta1/kv_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/base/node/index.js +17 -7
- package/dist/cjs/proto/cosmos/base/node/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/query/index.js +17 -7
- package/dist/cjs/proto/cosmos/base/query/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/query/v1beta1/pagination_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/base/query/v1beta1/pagination_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/base/reflection/index.js +17 -7
- package/dist/cjs/proto/cosmos/base/reflection/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/snapshots/index.js +17 -7
- package/dist/cjs/proto/cosmos/base/snapshots/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.d.ts +6 -6
- package/dist/cjs/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/base/store/index.js +17 -7
- package/dist/cjs/proto/cosmos/base/store/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/store/v1beta1/commit_info_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmos/base/store/v1beta1/commit_info_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/base/store/v1beta1/listening_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/base/store/v1beta1/listening_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/base/store/v1beta1/snapshot_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/base/store/v1beta1/snapshot_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/base/tendermint/index.js +17 -7
- package/dist/cjs/proto/cosmos/base/tendermint/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/base/tendermint/v1beta1/query_pb.d.ts +5 -5
- package/dist/cjs/proto/cosmos/base/tendermint/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/base/tendermint/v1beta1/types_pb.d.ts +8 -8
- package/dist/cjs/proto/cosmos/base/tendermint/v1beta1/types_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/capability/index.js +17 -7
- package/dist/cjs/proto/cosmos/capability/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/capability/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/capability/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/consensus/index.js +17 -7
- package/dist/cjs/proto/cosmos/consensus/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/consensus/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/consensus/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/crisis/index.js +17 -7
- package/dist/cjs/proto/cosmos/crisis/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/crisis/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/crisis/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/crypto/ed25519/keys_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/crypto/ed25519/keys_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/crypto/hd/index.js +17 -7
- package/dist/cjs/proto/cosmos/crypto/hd/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/crypto/index.js +17 -7
- package/dist/cjs/proto/cosmos/crypto/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/crypto/keyring/index.js +17 -7
- package/dist/cjs/proto/cosmos/crypto/keyring/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/crypto/multisig/index.js +17 -7
- package/dist/cjs/proto/cosmos/crypto/multisig/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/crypto/secp256k1/keys_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/crypto/secp256k1/keys_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/crypto/secp256r1/keys_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/crypto/secp256r1/keys_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/distribution/index.js +17 -7
- package/dist/cjs/proto/cosmos/distribution/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/distribution/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/distribution/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/evidence/index.js +17 -7
- package/dist/cjs/proto/cosmos/evidence/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/evidence/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/evidence/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/evidence/v1beta1/query_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmos/evidence/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/evidence/v1beta1/tx_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmos/evidence/v1beta1/tx_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/feegrant/index.js +17 -7
- package/dist/cjs/proto/cosmos/feegrant/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/feegrant/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/feegrant/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/genutil/index.js +17 -7
- package/dist/cjs/proto/cosmos/genutil/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/genutil/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/genutil/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/gov/index.js +17 -7
- package/dist/cjs/proto/cosmos/gov/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/gov/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/gov/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/gov/v1beta1/gov_pb.d.ts +3 -3
- package/dist/cjs/proto/cosmos/gov/v1beta1/gov_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/group/index.js +17 -7
- package/dist/cjs/proto/cosmos/group/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/group/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/group/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/index.js +17 -7
- package/dist/cjs/proto/cosmos/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/mint/index.js +17 -7
- package/dist/cjs/proto/cosmos/mint/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/mint/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/mint/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/mint/v1beta1/query_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmos/mint/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/nft/index.js +17 -7
- package/dist/cjs/proto/cosmos/nft/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/nft/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/nft/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/orm/index.js +17 -7
- package/dist/cjs/proto/cosmos/orm/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/orm/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/orm/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/orm/query/index.js +17 -7
- package/dist/cjs/proto/cosmos/orm/query/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/orm/v1alpha1/schema_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmos/orm/v1alpha1/schema_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/params/index.js +17 -7
- package/dist/cjs/proto/cosmos/params/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/params/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/params/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/reflection/index.js +17 -7
- package/dist/cjs/proto/cosmos/reflection/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/slashing/index.js +17 -7
- package/dist/cjs/proto/cosmos/slashing/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/slashing/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/slashing/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/slashing/v1beta1/slashing_pb.d.ts +3 -3
- package/dist/cjs/proto/cosmos/slashing/v1beta1/slashing_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/staking/index.js +17 -7
- package/dist/cjs/proto/cosmos/staking/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/staking/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/staking/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/staking/v1beta1/genesis_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmos/staking/v1beta1/genesis_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/tx/config/index.js +17 -7
- package/dist/cjs/proto/cosmos/tx/config/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/tx/index.js +17 -7
- package/dist/cjs/proto/cosmos/tx/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/tx/signing/index.js +17 -7
- package/dist/cjs/proto/cosmos/tx/signing/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/tx/signing/v1beta1/signing_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmos/tx/signing/v1beta1/signing_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/tx/v1beta1/service_pb.d.ts +6 -6
- package/dist/cjs/proto/cosmos/tx/v1beta1/service_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/tx/v1beta1/tx_pb.d.ts +6 -6
- package/dist/cjs/proto/cosmos/tx/v1beta1/tx_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/upgrade/index.js +17 -7
- package/dist/cjs/proto/cosmos/upgrade/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/upgrade/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/upgrade/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/upgrade/v1beta1/query_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmos/upgrade/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmos/vesting/index.js +17 -7
- package/dist/cjs/proto/cosmos/vesting/index.js.map +1 -1
- package/dist/cjs/proto/cosmos/vesting/module/index.js +17 -7
- package/dist/cjs/proto/cosmos/vesting/module/index.js.map +1 -1
- package/dist/cjs/proto/cosmwasm/index.js +17 -7
- package/dist/cjs/proto/cosmwasm/index.js.map +1 -1
- package/dist/cjs/proto/cosmwasm/wasm/index.js +17 -7
- package/dist/cjs/proto/cosmwasm/wasm/index.js.map +1 -1
- package/dist/cjs/proto/cosmwasm/wasm/v1/authz_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmwasm/wasm/v1/authz_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmwasm/wasm/v1/genesis_pb.d.ts +2 -2
- package/dist/cjs/proto/cosmwasm/wasm/v1/genesis_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmwasm/wasm/v1/ibc_pb.d.ts +1 -1
- package/dist/cjs/proto/cosmwasm/wasm/v1/ibc_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmwasm/wasm/v1/query_pb.d.ts +6 -6
- package/dist/cjs/proto/cosmwasm/wasm/v1/query_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmwasm/wasm/v1/tx_pb.d.ts +21 -21
- package/dist/cjs/proto/cosmwasm/wasm/v1/tx_pb.d.ts.map +1 -1
- package/dist/cjs/proto/cosmwasm/wasm/v1/types_pb.d.ts +4 -4
- package/dist/cjs/proto/cosmwasm/wasm/v1/types_pb.d.ts.map +1 -1
- package/dist/cjs/proto/ethereum/ethsecp256k1/keys_pb.d.ts +2 -2
- package/dist/cjs/proto/ethereum/ethsecp256k1/keys_pb.d.ts.map +1 -1
- package/dist/cjs/proto/ethereum/web3_pb.d.ts +1 -1
- package/dist/cjs/proto/ethereum/web3_pb.d.ts.map +1 -1
- package/dist/cjs/proto/google/api/httpbody_pb.d.ts +1 -1
- package/dist/cjs/proto/google/api/httpbody_pb.d.ts.map +1 -1
- package/dist/cjs/proto/google/index.js +17 -7
- package/dist/cjs/proto/google/index.js.map +1 -1
- package/dist/cjs/proto/google/protobuf/any_pb.d.ts +1 -1
- package/dist/cjs/proto/google/protobuf/any_pb.d.ts.map +1 -1
- package/dist/cjs/proto/index.js +17 -7
- package/dist/cjs/proto/index.js.map +1 -1
- package/dist/cjs/proto/proofs_pb.d.ts +10 -10
- package/dist/cjs/proto/proofs_pb.d.ts.map +1 -1
- package/dist/cjs/proto/solana/web3_pb.d.ts +1 -1
- package/dist/cjs/proto/solana/web3_pb.d.ts.map +1 -1
- package/dist/cjs/proto/tendermint/abci/types_pb.d.ts +25 -25
- package/dist/cjs/proto/tendermint/abci/types_pb.d.ts.map +1 -1
- package/dist/cjs/proto/tendermint/crypto/proof_pb.d.ts +4 -4
- package/dist/cjs/proto/tendermint/crypto/proof_pb.d.ts.map +1 -1
- package/dist/cjs/proto/tendermint/index.js +17 -7
- package/dist/cjs/proto/tendermint/index.js.map +1 -1
- package/dist/cjs/proto/tendermint/libs/index.js +17 -7
- package/dist/cjs/proto/tendermint/libs/index.js.map +1 -1
- package/dist/cjs/proto/tendermint/p2p/types_pb.d.ts +1 -1
- package/dist/cjs/proto/tendermint/p2p/types_pb.d.ts.map +1 -1
- package/dist/cjs/proto/tendermint/types/types_pb.d.ts +19 -19
- package/dist/cjs/proto/tendermint/types/types_pb.d.ts.map +1 -1
- package/dist/cjs/proto/tendermint/types/validator_pb.d.ts +1 -1
- package/dist/cjs/proto/tendermint/types/validator_pb.d.ts.map +1 -1
- package/dist/cjs/proto/wasmx/tx_pb.d.ts +2 -2
- package/dist/cjs/proto/wasmx/tx_pb.d.ts.map +1 -1
- package/dist/cjs/transactions/amino/objectConverter.d.ts.map +1 -1
- package/dist/cjs/transactions/eip712/payload/createDomain.d.ts.map +1 -1
- package/dist/cjs/transactions/eip712/payload/createTypedData.d.ts.map +1 -1
- package/dist/cjs/transactions/eip712/payload/createTypes/parseMessage.d.ts.map +1 -1
- package/dist/cjs/transactions/eip712/payload/createTypes/parsePayload.d.ts.map +1 -1
- package/dist/cjs/transactions/eip712/payload/eip712Types.d.ts.map +1 -1
- package/dist/cjs/transactions/eip712/payload/flattenPayload.d.ts.map +1 -1
- package/dist/cjs/transactions/messages/base.d.ts.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgCreateAddressLists.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/badges/msgCreateAddressLists.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgCreateCollection.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/badges/msgCreateCollection.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgDeleteCollection.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/badges/msgDeleteCollection.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgTransferBadges.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/badges/msgTransferBadges.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateCollection.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/maps/interfaces.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js.map +1 -1
- package/dist/cjs/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js +17 -7
- package/dist/cjs/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js.map +1 -1
- package/dist/cjs/transactions/messages/web3Extension.js +17 -7
- package/dist/cjs/transactions/messages/web3Extension.js.map +1 -1
- package/dist/cjs/tsconfig.build.tsbuildinfo +1 -0
- package/dist/esm/api-indexer/BitBadgesAddressList.js +206 -196
- package/dist/esm/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +34 -16
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +9436 -8676
- package/dist/esm/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesCollection.d.ts +5 -7
- package/dist/esm/api-indexer/BitBadgesCollection.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesCollection.js +153 -142
- package/dist/esm/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesUserInfo.d.ts +2 -4
- package/dist/esm/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesUserInfo.js +40 -39
- package/dist/esm/api-indexer/BitBadgesUserInfo.js.map +1 -1
- package/dist/esm/api-indexer/docs/activity.d.ts +1 -1
- package/dist/esm/api-indexer/docs/activity.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/activity.js +2 -2
- package/dist/esm/api-indexer/docs/activity.js.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.d.ts.map +1 -1
- package/dist/esm/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/esm/api-indexer/metadata/badgeMetadata.d.ts +4 -4
- package/dist/esm/api-indexer/metadata/badgeMetadata.d.ts.map +1 -1
- package/dist/esm/api-indexer/metadata/metadataIds.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/collections.d.ts +1 -1
- package/dist/esm/api-indexer/requests/collections.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/index.d.ts +1 -0
- package/dist/esm/api-indexer/requests/index.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/index.js +1 -0
- package/dist/esm/api-indexer/requests/index.js.map +1 -1
- package/dist/esm/api-indexer/requests/requests.d.ts +4 -28
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +4 -36
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +20 -2
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/routes.js +20 -2
- package/dist/esm/api-indexer/requests/routes.js.map +1 -1
- package/dist/esm/api-indexer/requests/wrappers.d.ts +296 -0
- package/dist/esm/api-indexer/requests/wrappers.d.ts.map +1 -0
- package/dist/esm/api-indexer/requests/wrappers.js +321 -0
- package/dist/esm/api-indexer/requests/wrappers.js.map +1 -0
- package/dist/esm/attestations/attestations.d.ts.map +1 -1
- package/dist/esm/chain-drivers/verifySig.d.ts.map +1 -1
- package/dist/esm/common/base.d.ts.map +1 -1
- package/dist/esm/common/string-numbers.d.ts.map +1 -1
- package/dist/esm/core/addressLists.d.ts.map +1 -1
- package/dist/esm/core/aliases.d.ts +3 -3
- package/dist/esm/core/aliases.d.ts.map +1 -1
- package/dist/esm/core/approval-utils.d.ts.map +1 -1
- package/dist/esm/core/balances.d.ts.map +1 -1
- package/dist/esm/core/blockin.d.ts.map +1 -1
- package/dist/esm/core/permission-utils.d.ts.map +1 -1
- package/dist/esm/core/transfers.d.ts.map +1 -1
- package/dist/esm/proto/bitcoin/web3_pb.d.ts +1 -1
- package/dist/esm/proto/bitcoin/web3_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/auth/v1beta1/query_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/auth/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/base/abci/v1beta1/abci_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/base/abci/v1beta1/abci_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/base/kv/v1beta1/kv_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/base/kv/v1beta1/kv_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/base/query/v1beta1/pagination_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/base/query/v1beta1/pagination_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.d.ts +6 -6
- package/dist/esm/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/base/store/v1beta1/commit_info_pb.d.ts +1 -1
- package/dist/esm/proto/cosmos/base/store/v1beta1/commit_info_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/base/store/v1beta1/listening_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/base/store/v1beta1/listening_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/base/store/v1beta1/snapshot_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/base/store/v1beta1/snapshot_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/base/tendermint/v1beta1/query_pb.d.ts +5 -5
- package/dist/esm/proto/cosmos/base/tendermint/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/base/tendermint/v1beta1/types_pb.d.ts +8 -8
- package/dist/esm/proto/cosmos/base/tendermint/v1beta1/types_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/crypto/ed25519/keys_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/crypto/ed25519/keys_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.d.ts +1 -1
- package/dist/esm/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/crypto/secp256k1/keys_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/crypto/secp256k1/keys_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/crypto/secp256r1/keys_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/crypto/secp256r1/keys_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/evidence/v1beta1/query_pb.d.ts +1 -1
- package/dist/esm/proto/cosmos/evidence/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/evidence/v1beta1/tx_pb.d.ts +1 -1
- package/dist/esm/proto/cosmos/evidence/v1beta1/tx_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/gov/v1beta1/gov_pb.d.ts +3 -3
- package/dist/esm/proto/cosmos/gov/v1beta1/gov_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/mint/v1beta1/query_pb.d.ts +2 -2
- package/dist/esm/proto/cosmos/mint/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/orm/v1alpha1/schema_pb.d.ts +1 -1
- package/dist/esm/proto/cosmos/orm/v1alpha1/schema_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/slashing/v1beta1/slashing_pb.d.ts +3 -3
- package/dist/esm/proto/cosmos/slashing/v1beta1/slashing_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/staking/v1beta1/genesis_pb.d.ts +1 -1
- package/dist/esm/proto/cosmos/staking/v1beta1/genesis_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/tx/signing/v1beta1/signing_pb.d.ts +1 -1
- package/dist/esm/proto/cosmos/tx/signing/v1beta1/signing_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/tx/v1beta1/service_pb.d.ts +6 -6
- package/dist/esm/proto/cosmos/tx/v1beta1/service_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/tx/v1beta1/tx_pb.d.ts +6 -6
- package/dist/esm/proto/cosmos/tx/v1beta1/tx_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmos/upgrade/v1beta1/query_pb.d.ts +1 -1
- package/dist/esm/proto/cosmos/upgrade/v1beta1/query_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmwasm/wasm/v1/authz_pb.d.ts +1 -1
- package/dist/esm/proto/cosmwasm/wasm/v1/authz_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmwasm/wasm/v1/genesis_pb.d.ts +2 -2
- package/dist/esm/proto/cosmwasm/wasm/v1/genesis_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmwasm/wasm/v1/ibc_pb.d.ts +1 -1
- package/dist/esm/proto/cosmwasm/wasm/v1/ibc_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmwasm/wasm/v1/query_pb.d.ts +6 -6
- package/dist/esm/proto/cosmwasm/wasm/v1/query_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmwasm/wasm/v1/tx_pb.d.ts +21 -21
- package/dist/esm/proto/cosmwasm/wasm/v1/tx_pb.d.ts.map +1 -1
- package/dist/esm/proto/cosmwasm/wasm/v1/types_pb.d.ts +4 -4
- package/dist/esm/proto/cosmwasm/wasm/v1/types_pb.d.ts.map +1 -1
- package/dist/esm/proto/ethereum/ethsecp256k1/keys_pb.d.ts +2 -2
- package/dist/esm/proto/ethereum/ethsecp256k1/keys_pb.d.ts.map +1 -1
- package/dist/esm/proto/ethereum/web3_pb.d.ts +1 -1
- package/dist/esm/proto/ethereum/web3_pb.d.ts.map +1 -1
- package/dist/esm/proto/google/api/httpbody_pb.d.ts +1 -1
- package/dist/esm/proto/google/api/httpbody_pb.d.ts.map +1 -1
- package/dist/esm/proto/google/protobuf/any_pb.d.ts +1 -1
- package/dist/esm/proto/google/protobuf/any_pb.d.ts.map +1 -1
- package/dist/esm/proto/proofs_pb.d.ts +10 -10
- package/dist/esm/proto/proofs_pb.d.ts.map +1 -1
- package/dist/esm/proto/solana/web3_pb.d.ts +1 -1
- package/dist/esm/proto/solana/web3_pb.d.ts.map +1 -1
- package/dist/esm/proto/tendermint/abci/types_pb.d.ts +25 -25
- package/dist/esm/proto/tendermint/abci/types_pb.d.ts.map +1 -1
- package/dist/esm/proto/tendermint/crypto/proof_pb.d.ts +4 -4
- package/dist/esm/proto/tendermint/crypto/proof_pb.d.ts.map +1 -1
- package/dist/esm/proto/tendermint/p2p/types_pb.d.ts +1 -1
- package/dist/esm/proto/tendermint/p2p/types_pb.d.ts.map +1 -1
- package/dist/esm/proto/tendermint/types/types_pb.d.ts +19 -19
- package/dist/esm/proto/tendermint/types/types_pb.d.ts.map +1 -1
- package/dist/esm/proto/tendermint/types/validator_pb.d.ts +1 -1
- package/dist/esm/proto/tendermint/types/validator_pb.d.ts.map +1 -1
- package/dist/esm/proto/wasmx/tx_pb.d.ts +2 -2
- package/dist/esm/proto/wasmx/tx_pb.d.ts.map +1 -1
- package/dist/esm/transactions/amino/objectConverter.d.ts.map +1 -1
- package/dist/esm/transactions/eip712/payload/createDomain.d.ts.map +1 -1
- package/dist/esm/transactions/eip712/payload/createTypedData.d.ts.map +1 -1
- package/dist/esm/transactions/eip712/payload/createTypes/parseMessage.d.ts.map +1 -1
- package/dist/esm/transactions/eip712/payload/createTypes/parsePayload.d.ts.map +1 -1
- package/dist/esm/transactions/eip712/payload/eip712Types.d.ts.map +1 -1
- package/dist/esm/transactions/eip712/payload/flattenPayload.d.ts.map +1 -1
- package/dist/esm/transactions/messages/base.d.ts.map +1 -1
- package/dist/esm/tsconfig-esm.build.tsbuildinfo +1 -0
- package/package.json +4 -4
|
@@ -1,9 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
2
35
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
37
|
};
|
|
5
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
39
|
exports.DeleteAddressListsSuccessResponse = exports.CreateAddressListsSuccessResponse = exports.UpdateAddressListsSuccessResponse = exports.GetAddressListsSuccessResponse = exports.BitBadgesAddressList = void 0;
|
|
40
|
+
const __typia_transform__validateReport = __importStar(require("typia/lib/internal/_validateReport.js"));
|
|
41
|
+
const __typia_transform__accessExpressionAsString = __importStar(require("typia/lib/internal/_accessExpressionAsString.js"));
|
|
7
42
|
const base_js_1 = require("../common/base.js");
|
|
8
43
|
const typia_1 = __importDefault(require("typia"));
|
|
9
44
|
const base_js_2 = require("./base.js");
|
|
@@ -125,81 +160,83 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
125
160
|
}
|
|
126
161
|
static async GetAddressLists(api, payload) {
|
|
127
162
|
try {
|
|
128
|
-
const validateRes = (() => { const
|
|
163
|
+
const validateRes = (() => { const _io0 = input => Array.isArray(input.listsToFetch) && input.listsToFetch.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.listId && (undefined === input.viewsToFetch || Array.isArray(input.viewsToFetch) && input.viewsToFetch.every(elem => "object" === typeof elem && null !== elem && _io2(elem))) && (undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams); const _io2 = input => "string" === typeof input.viewId && ("listActivity" === input.viewType || "listings" === input.viewType) && "string" === typeof input.bookmark; const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.listsToFetch) || _report(_exceptionable, {
|
|
129
164
|
path: _path + ".listsToFetch",
|
|
130
165
|
expected: "Array<__type>",
|
|
131
166
|
value: input.listsToFetch
|
|
132
|
-
})) && input.listsToFetch.map((elem, _index3) => ("object" === typeof elem && null !== elem ||
|
|
167
|
+
})) && input.listsToFetch.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
133
168
|
path: _path + ".listsToFetch[" + _index3 + "]",
|
|
134
169
|
expected: "__type",
|
|
135
170
|
value: elem
|
|
136
|
-
})) &&
|
|
171
|
+
})) && _vo1(elem, _path + ".listsToFetch[" + _index3 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
137
172
|
path: _path + ".listsToFetch[" + _index3 + "]",
|
|
138
173
|
expected: "__type",
|
|
139
174
|
value: elem
|
|
140
|
-
})).every(flag => flag) ||
|
|
175
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
141
176
|
path: _path + ".listsToFetch",
|
|
142
177
|
expected: "Array<__type>",
|
|
143
178
|
value: input.listsToFetch
|
|
144
|
-
})].every(flag => flag); const
|
|
179
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.listId || _report(_exceptionable, {
|
|
145
180
|
path: _path + ".listId",
|
|
146
181
|
expected: "string",
|
|
147
182
|
value: input.listId
|
|
148
|
-
}), undefined === input.viewsToFetch || (Array.isArray(input.viewsToFetch) ||
|
|
183
|
+
}), undefined === input.viewsToFetch || (Array.isArray(input.viewsToFetch) || _report(_exceptionable, {
|
|
149
184
|
path: _path + ".viewsToFetch",
|
|
150
185
|
expected: "(Array<__type>.o1 | undefined)",
|
|
151
186
|
value: input.viewsToFetch
|
|
152
|
-
})) && input.viewsToFetch.map((elem, _index4) => ("object" === typeof elem && null !== elem ||
|
|
187
|
+
})) && input.viewsToFetch.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
153
188
|
path: _path + ".viewsToFetch[" + _index4 + "]",
|
|
154
189
|
expected: "__type.o1",
|
|
155
190
|
value: elem
|
|
156
|
-
})) &&
|
|
191
|
+
})) && _vo2(elem, _path + ".viewsToFetch[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
157
192
|
path: _path + ".viewsToFetch[" + _index4 + "]",
|
|
158
193
|
expected: "__type.o1",
|
|
159
194
|
value: elem
|
|
160
|
-
})).every(flag => flag) ||
|
|
195
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
161
196
|
path: _path + ".viewsToFetch",
|
|
162
197
|
expected: "(Array<__type>.o1 | undefined)",
|
|
163
198
|
value: input.viewsToFetch
|
|
164
|
-
}), undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams ||
|
|
199
|
+
}), undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams || _report(_exceptionable, {
|
|
165
200
|
path: _path + ".fetchPrivateParams",
|
|
166
201
|
expected: "(boolean | undefined)",
|
|
167
202
|
value: input.fetchPrivateParams
|
|
168
|
-
})].every(flag => flag); const
|
|
203
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.viewId || _report(_exceptionable, {
|
|
169
204
|
path: _path + ".viewId",
|
|
170
205
|
expected: "string",
|
|
171
206
|
value: input.viewId
|
|
172
|
-
}), "listActivity" === input.viewType || "listings" === input.viewType ||
|
|
207
|
+
}), "listActivity" === input.viewType || "listings" === input.viewType || _report(_exceptionable, {
|
|
173
208
|
path: _path + ".viewType",
|
|
174
209
|
expected: "(\"listActivity\" | \"listings\")",
|
|
175
210
|
value: input.viewType
|
|
176
|
-
}), "string" === typeof input.bookmark ||
|
|
211
|
+
}), "string" === typeof input.bookmark || _report(_exceptionable, {
|
|
177
212
|
path: _path + ".bookmark",
|
|
178
213
|
expected: "string",
|
|
179
214
|
value: input.bookmark
|
|
180
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input &&
|
|
215
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
181
216
|
if (false === __is(input)) {
|
|
182
217
|
errors = [];
|
|
183
|
-
|
|
184
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
218
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
219
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
185
220
|
path: _path + "",
|
|
186
221
|
expected: "iGetAddressListsPayload",
|
|
187
222
|
value: input
|
|
188
|
-
})) &&
|
|
223
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
189
224
|
path: _path + "",
|
|
190
225
|
expected: "iGetAddressListsPayload",
|
|
191
226
|
value: input
|
|
192
227
|
}))(input, "$input", true);
|
|
193
228
|
const success = 0 === errors.length;
|
|
194
|
-
return {
|
|
229
|
+
return success ? {
|
|
230
|
+
success,
|
|
231
|
+
data: input
|
|
232
|
+
} : {
|
|
195
233
|
success,
|
|
196
234
|
errors,
|
|
197
|
-
data:
|
|
235
|
+
data: input
|
|
198
236
|
};
|
|
199
237
|
}
|
|
200
238
|
return {
|
|
201
239
|
success: true,
|
|
202
|
-
errors: [],
|
|
203
240
|
data: input
|
|
204
241
|
};
|
|
205
242
|
}; })()(payload ?? {});
|
|
@@ -216,337 +253,339 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
216
253
|
}
|
|
217
254
|
static async CreateAddressList(api, payload) {
|
|
218
255
|
try {
|
|
219
|
-
const validateRes = (() => { const
|
|
256
|
+
const validateRes = (() => { const _io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && "boolean" === typeof input.whitelist && "string" === typeof input.uri && "string" === typeof input.customData && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.aliasAddress || "string" === typeof input.aliasAddress) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io2 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.approach || "string" === typeof input.approach); const _io3 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && _io4(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && _io4(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && _io4(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && _io4(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && _io4(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io5(input.metadata)); const _io4 = input => Object.keys(input).every(key => {
|
|
220
257
|
const value = input[key];
|
|
221
258
|
if (undefined === value)
|
|
222
259
|
return true;
|
|
223
260
|
return true;
|
|
224
|
-
}); const
|
|
261
|
+
}); const _io5 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const _io6 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io7(input.metadata)) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && _io8(input.gatedContent)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && (undefined === input.calculationMethod || "object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) && _io10(input.calculationMethod)); const _io7 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const _io8 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _io9(input.params)); const _io9 = input => Object.keys(input).every(key => {
|
|
225
262
|
const value = input[key];
|
|
226
263
|
if (undefined === value)
|
|
227
264
|
return true;
|
|
228
265
|
return true;
|
|
229
|
-
}); const
|
|
266
|
+
}); const _io10 = input => (undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow) && (undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.addressLists) || _report(_exceptionable, {
|
|
230
267
|
path: _path + ".addressLists",
|
|
231
268
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
232
269
|
value: input.addressLists
|
|
233
|
-
})) && input.addressLists.map((elem, _index7) => ("object" === typeof elem && null !== elem ||
|
|
270
|
+
})) && input.addressLists.map((elem, _index7) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
234
271
|
path: _path + ".addressLists[" + _index7 + "]",
|
|
235
272
|
expected: "iAddressListCreateObject<T>",
|
|
236
273
|
value: elem
|
|
237
|
-
})) &&
|
|
274
|
+
})) && _vo1(elem, _path + ".addressLists[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
238
275
|
path: _path + ".addressLists[" + _index7 + "]",
|
|
239
276
|
expected: "iAddressListCreateObject<T>",
|
|
240
277
|
value: elem
|
|
241
|
-
})).every(flag => flag) ||
|
|
278
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
242
279
|
path: _path + ".addressLists",
|
|
243
280
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
244
281
|
value: input.addressLists
|
|
245
|
-
})].every(flag => flag); const
|
|
282
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.listId || _report(_exceptionable, {
|
|
246
283
|
path: _path + ".listId",
|
|
247
284
|
expected: "string",
|
|
248
285
|
value: input.listId
|
|
249
|
-
}), (Array.isArray(input.addresses) ||
|
|
286
|
+
}), (Array.isArray(input.addresses) || _report(_exceptionable, {
|
|
250
287
|
path: _path + ".addresses",
|
|
251
288
|
expected: "Array<string>",
|
|
252
289
|
value: input.addresses
|
|
253
|
-
})) && input.addresses.map((elem, _index8) => "string" === typeof elem ||
|
|
290
|
+
})) && input.addresses.map((elem, _index8) => "string" === typeof elem || _report(_exceptionable, {
|
|
254
291
|
path: _path + ".addresses[" + _index8 + "]",
|
|
255
292
|
expected: "string",
|
|
256
293
|
value: elem
|
|
257
|
-
})).every(flag => flag) ||
|
|
294
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
258
295
|
path: _path + ".addresses",
|
|
259
296
|
expected: "Array<string>",
|
|
260
297
|
value: input.addresses
|
|
261
|
-
}), "boolean" === typeof input.whitelist ||
|
|
298
|
+
}), "boolean" === typeof input.whitelist || _report(_exceptionable, {
|
|
262
299
|
path: _path + ".whitelist",
|
|
263
300
|
expected: "boolean",
|
|
264
301
|
value: input.whitelist
|
|
265
|
-
}), "string" === typeof input.uri ||
|
|
302
|
+
}), "string" === typeof input.uri || _report(_exceptionable, {
|
|
266
303
|
path: _path + ".uri",
|
|
267
304
|
expected: "string",
|
|
268
305
|
value: input.uri
|
|
269
|
-
}), "string" === typeof input.customData ||
|
|
306
|
+
}), "string" === typeof input.customData || _report(_exceptionable, {
|
|
270
307
|
path: _path + ".customData",
|
|
271
308
|
expected: "string",
|
|
272
309
|
value: input.customData
|
|
273
|
-
}), undefined === input.createdBy || "string" === typeof input.createdBy ||
|
|
310
|
+
}), undefined === input.createdBy || "string" === typeof input.createdBy || _report(_exceptionable, {
|
|
274
311
|
path: _path + ".createdBy",
|
|
275
312
|
expected: "(string | undefined)",
|
|
276
313
|
value: input.createdBy
|
|
277
|
-
}), undefined === input.aliasAddress || "string" === typeof input.aliasAddress ||
|
|
314
|
+
}), undefined === input.aliasAddress || "string" === typeof input.aliasAddress || _report(_exceptionable, {
|
|
278
315
|
path: _path + ".aliasAddress",
|
|
279
316
|
expected: "(string | undefined)",
|
|
280
317
|
value: input.aliasAddress
|
|
281
|
-
}), undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses ||
|
|
318
|
+
}), undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses || _report(_exceptionable, {
|
|
282
319
|
path: _path + ".updateAddresses",
|
|
283
320
|
expected: "(boolean | undefined)",
|
|
284
321
|
value: input.updateAddresses
|
|
285
|
-
}), (Array.isArray(input.claims) ||
|
|
322
|
+
}), (Array.isArray(input.claims) || _report(_exceptionable, {
|
|
286
323
|
path: _path + ".claims",
|
|
287
324
|
expected: "Array<__type>",
|
|
288
325
|
value: input.claims
|
|
289
|
-
})) && input.claims.map((elem, _index9) => ("object" === typeof elem && null !== elem ||
|
|
326
|
+
})) && input.claims.map((elem, _index9) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
290
327
|
path: _path + ".claims[" + _index9 + "]",
|
|
291
328
|
expected: "__type",
|
|
292
329
|
value: elem
|
|
293
|
-
})) &&
|
|
330
|
+
})) && _vo2(elem, _path + ".claims[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
294
331
|
path: _path + ".claims[" + _index9 + "]",
|
|
295
332
|
expected: "__type",
|
|
296
333
|
value: elem
|
|
297
|
-
})).every(flag => flag) ||
|
|
334
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
298
335
|
path: _path + ".claims",
|
|
299
336
|
expected: "Array<__type>",
|
|
300
337
|
value: input.claims
|
|
301
|
-
})].every(flag => flag); const
|
|
338
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || _report(_exceptionable, {
|
|
302
339
|
path: _path + ".claimId",
|
|
303
340
|
expected: "string",
|
|
304
341
|
value: input.claimId
|
|
305
|
-
}), (Array.isArray(input.plugins) ||
|
|
342
|
+
}), (Array.isArray(input.plugins) || _report(_exceptionable, {
|
|
306
343
|
path: _path + ".plugins",
|
|
307
344
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
308
345
|
value: input.plugins
|
|
309
|
-
})) && input.plugins.map((elem, _index10) => ("object" === typeof elem && null !== elem ||
|
|
346
|
+
})) && input.plugins.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
310
347
|
path: _path + ".plugins[" + _index10 + "]",
|
|
311
348
|
expected: "IntegrationPluginDetails<string>",
|
|
312
349
|
value: elem
|
|
313
|
-
})) &&
|
|
350
|
+
})) && _vo3(elem, _path + ".plugins[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
314
351
|
path: _path + ".plugins[" + _index10 + "]",
|
|
315
352
|
expected: "IntegrationPluginDetails<string>",
|
|
316
353
|
value: elem
|
|
317
|
-
})).every(flag => flag) ||
|
|
354
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
318
355
|
path: _path + ".plugins",
|
|
319
356
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
320
357
|
value: input.plugins
|
|
321
|
-
}), undefined === input.rewards || (Array.isArray(input.rewards) ||
|
|
358
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || _report(_exceptionable, {
|
|
322
359
|
path: _path + ".rewards",
|
|
323
360
|
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
324
361
|
value: input.rewards
|
|
325
|
-
})) && input.rewards.map((elem, _index11) => ("object" === typeof elem && null !== elem ||
|
|
362
|
+
})) && input.rewards.map((elem, _index11) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
326
363
|
path: _path + ".rewards[" + _index11 + "]",
|
|
327
364
|
expected: "ClaimReward<T>",
|
|
328
365
|
value: elem
|
|
329
|
-
})) &&
|
|
366
|
+
})) && _vo6(elem, _path + ".rewards[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
330
367
|
path: _path + ".rewards[" + _index11 + "]",
|
|
331
368
|
expected: "ClaimReward<T>",
|
|
332
369
|
value: elem
|
|
333
|
-
})).every(flag => flag) ||
|
|
370
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
334
371
|
path: _path + ".rewards",
|
|
335
372
|
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
336
373
|
value: input.rewards
|
|
337
|
-
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost ||
|
|
374
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || _report(_exceptionable, {
|
|
338
375
|
path: _path + ".estimatedCost",
|
|
339
376
|
expected: "(string | undefined)",
|
|
340
377
|
value: input.estimatedCost
|
|
341
|
-
}), undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults ||
|
|
378
|
+
}), undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults || _report(_exceptionable, {
|
|
342
379
|
path: _path + ".showInSearchResults",
|
|
343
380
|
expected: "(boolean | undefined)",
|
|
344
381
|
value: input.showInSearchResults
|
|
345
|
-
}), undefined === input.categories || (Array.isArray(input.categories) ||
|
|
382
|
+
}), undefined === input.categories || (Array.isArray(input.categories) || _report(_exceptionable, {
|
|
346
383
|
path: _path + ".categories",
|
|
347
384
|
expected: "(Array<string> | undefined)",
|
|
348
385
|
value: input.categories
|
|
349
|
-
})) && input.categories.map((elem, _index12) => "string" === typeof elem ||
|
|
386
|
+
})) && input.categories.map((elem, _index12) => "string" === typeof elem || _report(_exceptionable, {
|
|
350
387
|
path: _path + ".categories[" + _index12 + "]",
|
|
351
388
|
expected: "string",
|
|
352
389
|
value: elem
|
|
353
|
-
})).every(flag => flag) ||
|
|
390
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
354
391
|
path: _path + ".categories",
|
|
355
392
|
expected: "(Array<string> | undefined)",
|
|
356
393
|
value: input.categories
|
|
357
|
-
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime ||
|
|
394
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || _report(_exceptionable, {
|
|
358
395
|
path: _path + ".estimatedTime",
|
|
359
396
|
expected: "(string | undefined)",
|
|
360
397
|
value: input.estimatedTime
|
|
361
|
-
}), undefined === input.approach || "string" === typeof input.approach ||
|
|
398
|
+
}), undefined === input.approach || "string" === typeof input.approach || _report(_exceptionable, {
|
|
362
399
|
path: _path + ".approach",
|
|
363
400
|
expected: "(string | undefined)",
|
|
364
401
|
value: input.approach
|
|
365
|
-
})].every(flag => flag); const
|
|
402
|
+
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || _report(_exceptionable, {
|
|
366
403
|
path: _path + ".publicState",
|
|
367
404
|
expected: "Record<string, any>",
|
|
368
405
|
value: input.publicState
|
|
369
|
-
})) &&
|
|
406
|
+
})) && _vo4(input.publicState, _path + ".publicState", true && _exceptionable) || _report(_exceptionable, {
|
|
370
407
|
path: _path + ".publicState",
|
|
371
408
|
expected: "Record<string, any>",
|
|
372
409
|
value: input.publicState
|
|
373
|
-
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) ||
|
|
410
|
+
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || _report(_exceptionable, {
|
|
374
411
|
path: _path + ".privateState",
|
|
375
412
|
expected: "(Record<string, any> | undefined)",
|
|
376
413
|
value: input.privateState
|
|
377
|
-
})) &&
|
|
414
|
+
})) && _vo4(input.privateState, _path + ".privateState", true && _exceptionable) || _report(_exceptionable, {
|
|
378
415
|
path: _path + ".privateState",
|
|
379
416
|
expected: "(Record<string, any> | undefined)",
|
|
380
417
|
value: input.privateState
|
|
381
|
-
}), undefined === input.resetState || "boolean" === typeof input.resetState ||
|
|
418
|
+
}), undefined === input.resetState || "boolean" === typeof input.resetState || _report(_exceptionable, {
|
|
382
419
|
path: _path + ".resetState",
|
|
383
420
|
expected: "(boolean | undefined)",
|
|
384
421
|
value: input.resetState
|
|
385
|
-
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) ||
|
|
422
|
+
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || _report(_exceptionable, {
|
|
386
423
|
path: _path + ".newState",
|
|
387
424
|
expected: "(Record<string, any> | undefined)",
|
|
388
425
|
value: input.newState
|
|
389
|
-
})) &&
|
|
426
|
+
})) && _vo4(input.newState, _path + ".newState", true && _exceptionable) || _report(_exceptionable, {
|
|
390
427
|
path: _path + ".newState",
|
|
391
428
|
expected: "(Record<string, any> | undefined)",
|
|
392
429
|
value: input.newState
|
|
393
|
-
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState ||
|
|
430
|
+
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || _report(_exceptionable, {
|
|
394
431
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
395
432
|
expected: "(boolean | undefined)",
|
|
396
433
|
value: input.onlyUpdateProvidedNewState
|
|
397
|
-
}), "string" === typeof input.instanceId ||
|
|
434
|
+
}), "string" === typeof input.instanceId || _report(_exceptionable, {
|
|
398
435
|
path: _path + ".instanceId",
|
|
399
436
|
expected: "string",
|
|
400
437
|
value: input.instanceId
|
|
401
|
-
}), "string" === typeof input.pluginId ||
|
|
438
|
+
}), "string" === typeof input.pluginId || _report(_exceptionable, {
|
|
402
439
|
path: _path + ".pluginId",
|
|
403
440
|
expected: "string",
|
|
404
441
|
value: input.pluginId
|
|
405
|
-
}), "string" === typeof input.version ||
|
|
442
|
+
}), "string" === typeof input.version || _report(_exceptionable, {
|
|
406
443
|
path: _path + ".version",
|
|
407
444
|
expected: "string",
|
|
408
445
|
value: input.version
|
|
409
|
-
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) ||
|
|
446
|
+
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || _report(_exceptionable, {
|
|
410
447
|
path: _path + ".publicParams",
|
|
411
448
|
expected: "Record<string, any>",
|
|
412
449
|
value: input.publicParams
|
|
413
|
-
})) &&
|
|
450
|
+
})) && _vo4(input.publicParams, _path + ".publicParams", true && _exceptionable) || _report(_exceptionable, {
|
|
414
451
|
path: _path + ".publicParams",
|
|
415
452
|
expected: "Record<string, any>",
|
|
416
453
|
value: input.publicParams
|
|
417
|
-
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) ||
|
|
454
|
+
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || _report(_exceptionable, {
|
|
418
455
|
path: _path + ".privateParams",
|
|
419
456
|
expected: "Record<string, any>",
|
|
420
457
|
value: input.privateParams
|
|
421
|
-
})) &&
|
|
458
|
+
})) && _vo4(input.privateParams, _path + ".privateParams", true && _exceptionable) || _report(_exceptionable, {
|
|
422
459
|
path: _path + ".privateParams",
|
|
423
460
|
expected: "Record<string, any>",
|
|
424
461
|
value: input.privateParams
|
|
425
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata ||
|
|
462
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
426
463
|
path: _path + ".metadata",
|
|
427
464
|
expected: "(__type.o1 | undefined)",
|
|
428
465
|
value: input.metadata
|
|
429
|
-
})) &&
|
|
466
|
+
})) && _vo5(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
430
467
|
path: _path + ".metadata",
|
|
431
468
|
expected: "(__type.o1 | undefined)",
|
|
432
469
|
value: input.metadata
|
|
433
|
-
})].every(flag => flag); const
|
|
470
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
434
471
|
const value = input[key];
|
|
435
472
|
if (undefined === value)
|
|
436
473
|
return true;
|
|
437
474
|
return true;
|
|
438
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
475
|
+
}).every(flag => flag)].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
439
476
|
path: _path + ".name",
|
|
440
477
|
expected: "string",
|
|
441
478
|
value: input.name
|
|
442
|
-
}), "string" === typeof input.description ||
|
|
479
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
443
480
|
path: _path + ".description",
|
|
444
481
|
expected: "string",
|
|
445
482
|
value: input.description
|
|
446
|
-
}), undefined === input.image || "string" === typeof input.image ||
|
|
483
|
+
}), undefined === input.image || "string" === typeof input.image || _report(_exceptionable, {
|
|
447
484
|
path: _path + ".image",
|
|
448
485
|
expected: "(string | undefined)",
|
|
449
486
|
value: input.image
|
|
450
|
-
})].every(flag => flag); const
|
|
487
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || _report(_exceptionable, {
|
|
451
488
|
path: _path + ".rewardId",
|
|
452
489
|
expected: "string",
|
|
453
490
|
value: input.rewardId
|
|
454
|
-
}), "string" === typeof input.instanceId ||
|
|
491
|
+
}), "string" === typeof input.instanceId || _report(_exceptionable, {
|
|
455
492
|
path: _path + ".instanceId",
|
|
456
493
|
expected: "string",
|
|
457
494
|
value: input.instanceId
|
|
458
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata ||
|
|
495
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
459
496
|
path: _path + ".metadata",
|
|
460
497
|
expected: "(__type.o2 | undefined)",
|
|
461
498
|
value: input.metadata
|
|
462
|
-
})) &&
|
|
499
|
+
})) && _vo7(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
463
500
|
path: _path + ".metadata",
|
|
464
501
|
expected: "(__type.o2 | undefined)",
|
|
465
502
|
value: input.metadata
|
|
466
|
-
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) ||
|
|
503
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || _report(_exceptionable, {
|
|
467
504
|
path: _path + ".gatedContent",
|
|
468
505
|
expected: "iClaimGatedContent",
|
|
469
506
|
value: input.gatedContent
|
|
470
|
-
})) &&
|
|
507
|
+
})) && _vo8(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || _report(_exceptionable, {
|
|
471
508
|
path: _path + ".gatedContent",
|
|
472
509
|
expected: "iClaimGatedContent",
|
|
473
510
|
value: input.gatedContent
|
|
474
|
-
}), undefined === input.automatic || "boolean" === typeof input.automatic ||
|
|
511
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || _report(_exceptionable, {
|
|
475
512
|
path: _path + ".automatic",
|
|
476
513
|
expected: "(boolean | undefined)",
|
|
477
514
|
value: input.automatic
|
|
478
|
-
}), undefined === input.calculationMethod || ("object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) ||
|
|
515
|
+
}), undefined === input.calculationMethod || ("object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) || _report(_exceptionable, {
|
|
479
516
|
path: _path + ".calculationMethod",
|
|
480
517
|
expected: "(__type.o4 | undefined)",
|
|
481
518
|
value: input.calculationMethod
|
|
482
|
-
})) &&
|
|
519
|
+
})) && _vo10(input.calculationMethod, _path + ".calculationMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
483
520
|
path: _path + ".calculationMethod",
|
|
484
521
|
expected: "(__type.o4 | undefined)",
|
|
485
522
|
value: input.calculationMethod
|
|
486
|
-
})].every(flag => flag); const
|
|
523
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
487
524
|
path: _path + ".name",
|
|
488
525
|
expected: "string",
|
|
489
526
|
value: input.name
|
|
490
|
-
}), "string" === typeof input.description ||
|
|
527
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
491
528
|
path: _path + ".description",
|
|
492
529
|
expected: "string",
|
|
493
530
|
value: input.description
|
|
494
|
-
}), "string" === typeof input.image ||
|
|
531
|
+
}), "string" === typeof input.image || _report(_exceptionable, {
|
|
495
532
|
path: _path + ".image",
|
|
496
533
|
expected: "string",
|
|
497
534
|
value: input.image
|
|
498
|
-
})].every(flag => flag); const
|
|
535
|
+
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || _report(_exceptionable, {
|
|
499
536
|
path: _path + ".content",
|
|
500
537
|
expected: "(string | undefined)",
|
|
501
538
|
value: input.content
|
|
502
|
-
}), undefined === input.url || "string" === typeof input.url ||
|
|
539
|
+
}), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
|
|
503
540
|
path: _path + ".url",
|
|
504
541
|
expected: "(string | undefined)",
|
|
505
542
|
value: input.url
|
|
506
|
-
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) ||
|
|
543
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || _report(_exceptionable, {
|
|
507
544
|
path: _path + ".params",
|
|
508
545
|
expected: "(__type.o3 | undefined)",
|
|
509
546
|
value: input.params
|
|
510
|
-
})) &&
|
|
547
|
+
})) && _vo9(input.params, _path + ".params", true && _exceptionable) || _report(_exceptionable, {
|
|
511
548
|
path: _path + ".params",
|
|
512
549
|
expected: "(__type.o3 | undefined)",
|
|
513
550
|
value: input.params
|
|
514
|
-
})].every(flag => flag); const
|
|
551
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
515
552
|
const value = input[key];
|
|
516
553
|
if (undefined === value)
|
|
517
554
|
return true;
|
|
518
555
|
return true;
|
|
519
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
556
|
+
}).every(flag => flag)].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow || _report(_exceptionable, {
|
|
520
557
|
path: _path + ".alwaysShow",
|
|
521
558
|
expected: "(boolean | undefined)",
|
|
522
559
|
value: input.alwaysShow
|
|
523
|
-
}), undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses ||
|
|
560
|
+
}), undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses || _report(_exceptionable, {
|
|
524
561
|
path: _path + ".minClaimSuccesses",
|
|
525
562
|
expected: "(number | undefined)",
|
|
526
563
|
value: input.minClaimSuccesses
|
|
527
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input &&
|
|
564
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
528
565
|
if (false === __is(input)) {
|
|
529
566
|
errors = [];
|
|
530
|
-
|
|
531
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
567
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
568
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
532
569
|
path: _path + "",
|
|
533
570
|
expected: "iCreateAddressListsPayload<T>",
|
|
534
571
|
value: input
|
|
535
|
-
})) &&
|
|
572
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
536
573
|
path: _path + "",
|
|
537
574
|
expected: "iCreateAddressListsPayload<T>",
|
|
538
575
|
value: input
|
|
539
576
|
}))(input, "$input", true);
|
|
540
577
|
const success = 0 === errors.length;
|
|
541
|
-
return {
|
|
578
|
+
return success ? {
|
|
579
|
+
success,
|
|
580
|
+
data: input
|
|
581
|
+
} : {
|
|
542
582
|
success,
|
|
543
583
|
errors,
|
|
544
|
-
data:
|
|
584
|
+
data: input
|
|
545
585
|
};
|
|
546
586
|
}
|
|
547
587
|
return {
|
|
548
588
|
success: true,
|
|
549
|
-
errors: [],
|
|
550
589
|
data: input
|
|
551
590
|
};
|
|
552
591
|
}; })()(payload ?? {});
|
|
@@ -563,337 +602,339 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
563
602
|
}
|
|
564
603
|
static async UpdateAddressList(api, payload) {
|
|
565
604
|
try {
|
|
566
|
-
const validateRes = (() => { const
|
|
605
|
+
const validateRes = (() => { const _io0 = input => Array.isArray(input.addressLists) && input.addressLists.every(elem => "object" === typeof elem && null !== elem && _io1(elem)); const _io1 = input => "string" === typeof input.listId && (Array.isArray(input.addresses) && input.addresses.every(elem => "string" === typeof elem)) && "boolean" === typeof input.whitelist && "string" === typeof input.uri && "string" === typeof input.customData && (undefined === input.createdBy || "string" === typeof input.createdBy) && (undefined === input.aliasAddress || "string" === typeof input.aliasAddress) && (undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses) && (Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && _io2(elem))); const _io2 = input => "string" === typeof input.claimId && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && _io3(elem))) && (undefined === input.rewards || Array.isArray(input.rewards) && input.rewards.every(elem => "object" === typeof elem && null !== elem && _io6(elem))) && (undefined === input.estimatedCost || "string" === typeof input.estimatedCost) && (undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults) && (undefined === input.categories || Array.isArray(input.categories) && input.categories.every(elem => "string" === typeof elem)) && (undefined === input.estimatedTime || "string" === typeof input.estimatedTime) && (undefined === input.approach || "string" === typeof input.approach); const _io3 = input => "object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) && _io4(input.publicState) && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && _io4(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && _io4(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && "string" === typeof input.version && ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) && _io4(input.publicParams)) && ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) && _io4(input.privateParams)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io5(input.metadata)); const _io4 = input => Object.keys(input).every(key => {
|
|
567
606
|
const value = input[key];
|
|
568
607
|
if (undefined === value)
|
|
569
608
|
return true;
|
|
570
609
|
return true;
|
|
571
|
-
}); const
|
|
610
|
+
}); const _io5 = input => "string" === typeof input.name && "string" === typeof input.description && (undefined === input.image || "string" === typeof input.image); const _io6 = input => "string" === typeof input.rewardId && "string" === typeof input.instanceId && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && _io7(input.metadata)) && ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) && _io8(input.gatedContent)) && (undefined === input.automatic || "boolean" === typeof input.automatic) && (undefined === input.calculationMethod || "object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) && _io10(input.calculationMethod)); const _io7 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image; const _io8 = input => (undefined === input.content || "string" === typeof input.content) && (undefined === input.url || "string" === typeof input.url) && (undefined === input.params || "object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) && _io9(input.params)); const _io9 = input => Object.keys(input).every(key => {
|
|
572
611
|
const value = input[key];
|
|
573
612
|
if (undefined === value)
|
|
574
613
|
return true;
|
|
575
614
|
return true;
|
|
576
|
-
}); const
|
|
615
|
+
}); const _io10 = input => (undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow) && (undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.addressLists) || _report(_exceptionable, {
|
|
577
616
|
path: _path + ".addressLists",
|
|
578
617
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
579
618
|
value: input.addressLists
|
|
580
|
-
})) && input.addressLists.map((elem, _index7) => ("object" === typeof elem && null !== elem ||
|
|
619
|
+
})) && input.addressLists.map((elem, _index7) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
581
620
|
path: _path + ".addressLists[" + _index7 + "]",
|
|
582
621
|
expected: "iAddressListCreateObject<T>",
|
|
583
622
|
value: elem
|
|
584
|
-
})) &&
|
|
623
|
+
})) && _vo1(elem, _path + ".addressLists[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
585
624
|
path: _path + ".addressLists[" + _index7 + "]",
|
|
586
625
|
expected: "iAddressListCreateObject<T>",
|
|
587
626
|
value: elem
|
|
588
|
-
})).every(flag => flag) ||
|
|
627
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
589
628
|
path: _path + ".addressLists",
|
|
590
629
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
591
630
|
value: input.addressLists
|
|
592
|
-
})].every(flag => flag); const
|
|
631
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.listId || _report(_exceptionable, {
|
|
593
632
|
path: _path + ".listId",
|
|
594
633
|
expected: "string",
|
|
595
634
|
value: input.listId
|
|
596
|
-
}), (Array.isArray(input.addresses) ||
|
|
635
|
+
}), (Array.isArray(input.addresses) || _report(_exceptionable, {
|
|
597
636
|
path: _path + ".addresses",
|
|
598
637
|
expected: "Array<string>",
|
|
599
638
|
value: input.addresses
|
|
600
|
-
})) && input.addresses.map((elem, _index8) => "string" === typeof elem ||
|
|
639
|
+
})) && input.addresses.map((elem, _index8) => "string" === typeof elem || _report(_exceptionable, {
|
|
601
640
|
path: _path + ".addresses[" + _index8 + "]",
|
|
602
641
|
expected: "string",
|
|
603
642
|
value: elem
|
|
604
|
-
})).every(flag => flag) ||
|
|
643
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
605
644
|
path: _path + ".addresses",
|
|
606
645
|
expected: "Array<string>",
|
|
607
646
|
value: input.addresses
|
|
608
|
-
}), "boolean" === typeof input.whitelist ||
|
|
647
|
+
}), "boolean" === typeof input.whitelist || _report(_exceptionable, {
|
|
609
648
|
path: _path + ".whitelist",
|
|
610
649
|
expected: "boolean",
|
|
611
650
|
value: input.whitelist
|
|
612
|
-
}), "string" === typeof input.uri ||
|
|
651
|
+
}), "string" === typeof input.uri || _report(_exceptionable, {
|
|
613
652
|
path: _path + ".uri",
|
|
614
653
|
expected: "string",
|
|
615
654
|
value: input.uri
|
|
616
|
-
}), "string" === typeof input.customData ||
|
|
655
|
+
}), "string" === typeof input.customData || _report(_exceptionable, {
|
|
617
656
|
path: _path + ".customData",
|
|
618
657
|
expected: "string",
|
|
619
658
|
value: input.customData
|
|
620
|
-
}), undefined === input.createdBy || "string" === typeof input.createdBy ||
|
|
659
|
+
}), undefined === input.createdBy || "string" === typeof input.createdBy || _report(_exceptionable, {
|
|
621
660
|
path: _path + ".createdBy",
|
|
622
661
|
expected: "(string | undefined)",
|
|
623
662
|
value: input.createdBy
|
|
624
|
-
}), undefined === input.aliasAddress || "string" === typeof input.aliasAddress ||
|
|
663
|
+
}), undefined === input.aliasAddress || "string" === typeof input.aliasAddress || _report(_exceptionable, {
|
|
625
664
|
path: _path + ".aliasAddress",
|
|
626
665
|
expected: "(string | undefined)",
|
|
627
666
|
value: input.aliasAddress
|
|
628
|
-
}), undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses ||
|
|
667
|
+
}), undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses || _report(_exceptionable, {
|
|
629
668
|
path: _path + ".updateAddresses",
|
|
630
669
|
expected: "(boolean | undefined)",
|
|
631
670
|
value: input.updateAddresses
|
|
632
|
-
}), (Array.isArray(input.claims) ||
|
|
671
|
+
}), (Array.isArray(input.claims) || _report(_exceptionable, {
|
|
633
672
|
path: _path + ".claims",
|
|
634
673
|
expected: "Array<__type>",
|
|
635
674
|
value: input.claims
|
|
636
|
-
})) && input.claims.map((elem, _index9) => ("object" === typeof elem && null !== elem ||
|
|
675
|
+
})) && input.claims.map((elem, _index9) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
637
676
|
path: _path + ".claims[" + _index9 + "]",
|
|
638
677
|
expected: "__type",
|
|
639
678
|
value: elem
|
|
640
|
-
})) &&
|
|
679
|
+
})) && _vo2(elem, _path + ".claims[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
641
680
|
path: _path + ".claims[" + _index9 + "]",
|
|
642
681
|
expected: "__type",
|
|
643
682
|
value: elem
|
|
644
|
-
})).every(flag => flag) ||
|
|
683
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
645
684
|
path: _path + ".claims",
|
|
646
685
|
expected: "Array<__type>",
|
|
647
686
|
value: input.claims
|
|
648
|
-
})].every(flag => flag); const
|
|
687
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || _report(_exceptionable, {
|
|
649
688
|
path: _path + ".claimId",
|
|
650
689
|
expected: "string",
|
|
651
690
|
value: input.claimId
|
|
652
|
-
}), (Array.isArray(input.plugins) ||
|
|
691
|
+
}), (Array.isArray(input.plugins) || _report(_exceptionable, {
|
|
653
692
|
path: _path + ".plugins",
|
|
654
693
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
655
694
|
value: input.plugins
|
|
656
|
-
})) && input.plugins.map((elem, _index10) => ("object" === typeof elem && null !== elem ||
|
|
695
|
+
})) && input.plugins.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
657
696
|
path: _path + ".plugins[" + _index10 + "]",
|
|
658
697
|
expected: "IntegrationPluginDetails<string>",
|
|
659
698
|
value: elem
|
|
660
|
-
})) &&
|
|
699
|
+
})) && _vo3(elem, _path + ".plugins[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
661
700
|
path: _path + ".plugins[" + _index10 + "]",
|
|
662
701
|
expected: "IntegrationPluginDetails<string>",
|
|
663
702
|
value: elem
|
|
664
|
-
})).every(flag => flag) ||
|
|
703
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
665
704
|
path: _path + ".plugins",
|
|
666
705
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
667
706
|
value: input.plugins
|
|
668
|
-
}), undefined === input.rewards || (Array.isArray(input.rewards) ||
|
|
707
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || _report(_exceptionable, {
|
|
669
708
|
path: _path + ".rewards",
|
|
670
709
|
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
671
710
|
value: input.rewards
|
|
672
|
-
})) && input.rewards.map((elem, _index11) => ("object" === typeof elem && null !== elem ||
|
|
711
|
+
})) && input.rewards.map((elem, _index11) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
673
712
|
path: _path + ".rewards[" + _index11 + "]",
|
|
674
713
|
expected: "ClaimReward<T>",
|
|
675
714
|
value: elem
|
|
676
|
-
})) &&
|
|
715
|
+
})) && _vo6(elem, _path + ".rewards[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
677
716
|
path: _path + ".rewards[" + _index11 + "]",
|
|
678
717
|
expected: "ClaimReward<T>",
|
|
679
718
|
value: elem
|
|
680
|
-
})).every(flag => flag) ||
|
|
719
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
681
720
|
path: _path + ".rewards",
|
|
682
721
|
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
683
722
|
value: input.rewards
|
|
684
|
-
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost ||
|
|
723
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || _report(_exceptionable, {
|
|
685
724
|
path: _path + ".estimatedCost",
|
|
686
725
|
expected: "(string | undefined)",
|
|
687
726
|
value: input.estimatedCost
|
|
688
|
-
}), undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults ||
|
|
727
|
+
}), undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults || _report(_exceptionable, {
|
|
689
728
|
path: _path + ".showInSearchResults",
|
|
690
729
|
expected: "(boolean | undefined)",
|
|
691
730
|
value: input.showInSearchResults
|
|
692
|
-
}), undefined === input.categories || (Array.isArray(input.categories) ||
|
|
731
|
+
}), undefined === input.categories || (Array.isArray(input.categories) || _report(_exceptionable, {
|
|
693
732
|
path: _path + ".categories",
|
|
694
733
|
expected: "(Array<string> | undefined)",
|
|
695
734
|
value: input.categories
|
|
696
|
-
})) && input.categories.map((elem, _index12) => "string" === typeof elem ||
|
|
735
|
+
})) && input.categories.map((elem, _index12) => "string" === typeof elem || _report(_exceptionable, {
|
|
697
736
|
path: _path + ".categories[" + _index12 + "]",
|
|
698
737
|
expected: "string",
|
|
699
738
|
value: elem
|
|
700
|
-
})).every(flag => flag) ||
|
|
739
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
701
740
|
path: _path + ".categories",
|
|
702
741
|
expected: "(Array<string> | undefined)",
|
|
703
742
|
value: input.categories
|
|
704
|
-
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime ||
|
|
743
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || _report(_exceptionable, {
|
|
705
744
|
path: _path + ".estimatedTime",
|
|
706
745
|
expected: "(string | undefined)",
|
|
707
746
|
value: input.estimatedTime
|
|
708
|
-
}), undefined === input.approach || "string" === typeof input.approach ||
|
|
747
|
+
}), undefined === input.approach || "string" === typeof input.approach || _report(_exceptionable, {
|
|
709
748
|
path: _path + ".approach",
|
|
710
749
|
expected: "(string | undefined)",
|
|
711
750
|
value: input.approach
|
|
712
|
-
})].every(flag => flag); const
|
|
751
|
+
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || _report(_exceptionable, {
|
|
713
752
|
path: _path + ".publicState",
|
|
714
753
|
expected: "Record<string, any>",
|
|
715
754
|
value: input.publicState
|
|
716
|
-
})) &&
|
|
755
|
+
})) && _vo4(input.publicState, _path + ".publicState", true && _exceptionable) || _report(_exceptionable, {
|
|
717
756
|
path: _path + ".publicState",
|
|
718
757
|
expected: "Record<string, any>",
|
|
719
758
|
value: input.publicState
|
|
720
|
-
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) ||
|
|
759
|
+
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || _report(_exceptionable, {
|
|
721
760
|
path: _path + ".privateState",
|
|
722
761
|
expected: "(Record<string, any> | undefined)",
|
|
723
762
|
value: input.privateState
|
|
724
|
-
})) &&
|
|
763
|
+
})) && _vo4(input.privateState, _path + ".privateState", true && _exceptionable) || _report(_exceptionable, {
|
|
725
764
|
path: _path + ".privateState",
|
|
726
765
|
expected: "(Record<string, any> | undefined)",
|
|
727
766
|
value: input.privateState
|
|
728
|
-
}), undefined === input.resetState || "boolean" === typeof input.resetState ||
|
|
767
|
+
}), undefined === input.resetState || "boolean" === typeof input.resetState || _report(_exceptionable, {
|
|
729
768
|
path: _path + ".resetState",
|
|
730
769
|
expected: "(boolean | undefined)",
|
|
731
770
|
value: input.resetState
|
|
732
|
-
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) ||
|
|
771
|
+
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || _report(_exceptionable, {
|
|
733
772
|
path: _path + ".newState",
|
|
734
773
|
expected: "(Record<string, any> | undefined)",
|
|
735
774
|
value: input.newState
|
|
736
|
-
})) &&
|
|
775
|
+
})) && _vo4(input.newState, _path + ".newState", true && _exceptionable) || _report(_exceptionable, {
|
|
737
776
|
path: _path + ".newState",
|
|
738
777
|
expected: "(Record<string, any> | undefined)",
|
|
739
778
|
value: input.newState
|
|
740
|
-
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState ||
|
|
779
|
+
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || _report(_exceptionable, {
|
|
741
780
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
742
781
|
expected: "(boolean | undefined)",
|
|
743
782
|
value: input.onlyUpdateProvidedNewState
|
|
744
|
-
}), "string" === typeof input.instanceId ||
|
|
783
|
+
}), "string" === typeof input.instanceId || _report(_exceptionable, {
|
|
745
784
|
path: _path + ".instanceId",
|
|
746
785
|
expected: "string",
|
|
747
786
|
value: input.instanceId
|
|
748
|
-
}), "string" === typeof input.pluginId ||
|
|
787
|
+
}), "string" === typeof input.pluginId || _report(_exceptionable, {
|
|
749
788
|
path: _path + ".pluginId",
|
|
750
789
|
expected: "string",
|
|
751
790
|
value: input.pluginId
|
|
752
|
-
}), "string" === typeof input.version ||
|
|
791
|
+
}), "string" === typeof input.version || _report(_exceptionable, {
|
|
753
792
|
path: _path + ".version",
|
|
754
793
|
expected: "string",
|
|
755
794
|
value: input.version
|
|
756
|
-
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) ||
|
|
795
|
+
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || _report(_exceptionable, {
|
|
757
796
|
path: _path + ".publicParams",
|
|
758
797
|
expected: "Record<string, any>",
|
|
759
798
|
value: input.publicParams
|
|
760
|
-
})) &&
|
|
799
|
+
})) && _vo4(input.publicParams, _path + ".publicParams", true && _exceptionable) || _report(_exceptionable, {
|
|
761
800
|
path: _path + ".publicParams",
|
|
762
801
|
expected: "Record<string, any>",
|
|
763
802
|
value: input.publicParams
|
|
764
|
-
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) ||
|
|
803
|
+
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || _report(_exceptionable, {
|
|
765
804
|
path: _path + ".privateParams",
|
|
766
805
|
expected: "Record<string, any>",
|
|
767
806
|
value: input.privateParams
|
|
768
|
-
})) &&
|
|
807
|
+
})) && _vo4(input.privateParams, _path + ".privateParams", true && _exceptionable) || _report(_exceptionable, {
|
|
769
808
|
path: _path + ".privateParams",
|
|
770
809
|
expected: "Record<string, any>",
|
|
771
810
|
value: input.privateParams
|
|
772
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata ||
|
|
811
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
773
812
|
path: _path + ".metadata",
|
|
774
813
|
expected: "(__type.o1 | undefined)",
|
|
775
814
|
value: input.metadata
|
|
776
|
-
})) &&
|
|
815
|
+
})) && _vo5(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
777
816
|
path: _path + ".metadata",
|
|
778
817
|
expected: "(__type.o1 | undefined)",
|
|
779
818
|
value: input.metadata
|
|
780
|
-
})].every(flag => flag); const
|
|
819
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
781
820
|
const value = input[key];
|
|
782
821
|
if (undefined === value)
|
|
783
822
|
return true;
|
|
784
823
|
return true;
|
|
785
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
824
|
+
}).every(flag => flag)].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
786
825
|
path: _path + ".name",
|
|
787
826
|
expected: "string",
|
|
788
827
|
value: input.name
|
|
789
|
-
}), "string" === typeof input.description ||
|
|
828
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
790
829
|
path: _path + ".description",
|
|
791
830
|
expected: "string",
|
|
792
831
|
value: input.description
|
|
793
|
-
}), undefined === input.image || "string" === typeof input.image ||
|
|
832
|
+
}), undefined === input.image || "string" === typeof input.image || _report(_exceptionable, {
|
|
794
833
|
path: _path + ".image",
|
|
795
834
|
expected: "(string | undefined)",
|
|
796
835
|
value: input.image
|
|
797
|
-
})].every(flag => flag); const
|
|
836
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || _report(_exceptionable, {
|
|
798
837
|
path: _path + ".rewardId",
|
|
799
838
|
expected: "string",
|
|
800
839
|
value: input.rewardId
|
|
801
|
-
}), "string" === typeof input.instanceId ||
|
|
840
|
+
}), "string" === typeof input.instanceId || _report(_exceptionable, {
|
|
802
841
|
path: _path + ".instanceId",
|
|
803
842
|
expected: "string",
|
|
804
843
|
value: input.instanceId
|
|
805
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata ||
|
|
844
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
806
845
|
path: _path + ".metadata",
|
|
807
846
|
expected: "(__type.o2 | undefined)",
|
|
808
847
|
value: input.metadata
|
|
809
|
-
})) &&
|
|
848
|
+
})) && _vo7(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
810
849
|
path: _path + ".metadata",
|
|
811
850
|
expected: "(__type.o2 | undefined)",
|
|
812
851
|
value: input.metadata
|
|
813
|
-
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) ||
|
|
852
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || _report(_exceptionable, {
|
|
814
853
|
path: _path + ".gatedContent",
|
|
815
854
|
expected: "iClaimGatedContent",
|
|
816
855
|
value: input.gatedContent
|
|
817
|
-
})) &&
|
|
856
|
+
})) && _vo8(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || _report(_exceptionable, {
|
|
818
857
|
path: _path + ".gatedContent",
|
|
819
858
|
expected: "iClaimGatedContent",
|
|
820
859
|
value: input.gatedContent
|
|
821
|
-
}), undefined === input.automatic || "boolean" === typeof input.automatic ||
|
|
860
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || _report(_exceptionable, {
|
|
822
861
|
path: _path + ".automatic",
|
|
823
862
|
expected: "(boolean | undefined)",
|
|
824
863
|
value: input.automatic
|
|
825
|
-
}), undefined === input.calculationMethod || ("object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) ||
|
|
864
|
+
}), undefined === input.calculationMethod || ("object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) || _report(_exceptionable, {
|
|
826
865
|
path: _path + ".calculationMethod",
|
|
827
866
|
expected: "(__type.o4 | undefined)",
|
|
828
867
|
value: input.calculationMethod
|
|
829
|
-
})) &&
|
|
868
|
+
})) && _vo10(input.calculationMethod, _path + ".calculationMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
830
869
|
path: _path + ".calculationMethod",
|
|
831
870
|
expected: "(__type.o4 | undefined)",
|
|
832
871
|
value: input.calculationMethod
|
|
833
|
-
})].every(flag => flag); const
|
|
872
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
834
873
|
path: _path + ".name",
|
|
835
874
|
expected: "string",
|
|
836
875
|
value: input.name
|
|
837
|
-
}), "string" === typeof input.description ||
|
|
876
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
838
877
|
path: _path + ".description",
|
|
839
878
|
expected: "string",
|
|
840
879
|
value: input.description
|
|
841
|
-
}), "string" === typeof input.image ||
|
|
880
|
+
}), "string" === typeof input.image || _report(_exceptionable, {
|
|
842
881
|
path: _path + ".image",
|
|
843
882
|
expected: "string",
|
|
844
883
|
value: input.image
|
|
845
|
-
})].every(flag => flag); const
|
|
884
|
+
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || _report(_exceptionable, {
|
|
846
885
|
path: _path + ".content",
|
|
847
886
|
expected: "(string | undefined)",
|
|
848
887
|
value: input.content
|
|
849
|
-
}), undefined === input.url || "string" === typeof input.url ||
|
|
888
|
+
}), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
|
|
850
889
|
path: _path + ".url",
|
|
851
890
|
expected: "(string | undefined)",
|
|
852
891
|
value: input.url
|
|
853
|
-
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) ||
|
|
892
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || _report(_exceptionable, {
|
|
854
893
|
path: _path + ".params",
|
|
855
894
|
expected: "(__type.o3 | undefined)",
|
|
856
895
|
value: input.params
|
|
857
|
-
})) &&
|
|
896
|
+
})) && _vo9(input.params, _path + ".params", true && _exceptionable) || _report(_exceptionable, {
|
|
858
897
|
path: _path + ".params",
|
|
859
898
|
expected: "(__type.o3 | undefined)",
|
|
860
899
|
value: input.params
|
|
861
|
-
})].every(flag => flag); const
|
|
900
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
862
901
|
const value = input[key];
|
|
863
902
|
if (undefined === value)
|
|
864
903
|
return true;
|
|
865
904
|
return true;
|
|
866
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
905
|
+
}).every(flag => flag)].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow || _report(_exceptionable, {
|
|
867
906
|
path: _path + ".alwaysShow",
|
|
868
907
|
expected: "(boolean | undefined)",
|
|
869
908
|
value: input.alwaysShow
|
|
870
|
-
}), undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses ||
|
|
909
|
+
}), undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses || _report(_exceptionable, {
|
|
871
910
|
path: _path + ".minClaimSuccesses",
|
|
872
911
|
expected: "(number | undefined)",
|
|
873
912
|
value: input.minClaimSuccesses
|
|
874
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input &&
|
|
913
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
875
914
|
if (false === __is(input)) {
|
|
876
915
|
errors = [];
|
|
877
|
-
|
|
878
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
916
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
917
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
879
918
|
path: _path + "",
|
|
880
919
|
expected: "iUpdateAddressListsPayload<T>",
|
|
881
920
|
value: input
|
|
882
|
-
})) &&
|
|
921
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
883
922
|
path: _path + "",
|
|
884
923
|
expected: "iUpdateAddressListsPayload<T>",
|
|
885
924
|
value: input
|
|
886
925
|
}))(input, "$input", true);
|
|
887
926
|
const success = 0 === errors.length;
|
|
888
|
-
return {
|
|
927
|
+
return success ? {
|
|
928
|
+
success,
|
|
929
|
+
data: input
|
|
930
|
+
} : {
|
|
889
931
|
success,
|
|
890
932
|
errors,
|
|
891
|
-
data:
|
|
933
|
+
data: input
|
|
892
934
|
};
|
|
893
935
|
}
|
|
894
936
|
return {
|
|
895
937
|
success: true,
|
|
896
|
-
errors: [],
|
|
897
938
|
data: input
|
|
898
939
|
};
|
|
899
940
|
}; })()(payload ?? {});
|
|
@@ -910,41 +951,43 @@ class BitBadgesAddressList extends docs_js_1.AddressListDoc {
|
|
|
910
951
|
}
|
|
911
952
|
static async DeleteAddressList(api, payload) {
|
|
912
953
|
try {
|
|
913
|
-
const validateRes = (() => { const
|
|
954
|
+
const validateRes = (() => { const _io0 = input => Array.isArray(input.listIds) && input.listIds.every(elem => "string" === typeof elem); const _vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.listIds) || _report(_exceptionable, {
|
|
914
955
|
path: _path + ".listIds",
|
|
915
956
|
expected: "Array<string>",
|
|
916
957
|
value: input.listIds
|
|
917
|
-
})) && input.listIds.map((elem, _index2) => "string" === typeof elem ||
|
|
958
|
+
})) && input.listIds.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
918
959
|
path: _path + ".listIds[" + _index2 + "]",
|
|
919
960
|
expected: "string",
|
|
920
961
|
value: elem
|
|
921
|
-
})).every(flag => flag) ||
|
|
962
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
922
963
|
path: _path + ".listIds",
|
|
923
964
|
expected: "Array<string>",
|
|
924
965
|
value: input.listIds
|
|
925
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input &&
|
|
966
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
926
967
|
if (false === __is(input)) {
|
|
927
968
|
errors = [];
|
|
928
|
-
|
|
929
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
969
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
970
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
930
971
|
path: _path + "",
|
|
931
972
|
expected: "iDeleteAddressListsPayload",
|
|
932
973
|
value: input
|
|
933
|
-
})) &&
|
|
974
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
934
975
|
path: _path + "",
|
|
935
976
|
expected: "iDeleteAddressListsPayload",
|
|
936
977
|
value: input
|
|
937
978
|
}))(input, "$input", true);
|
|
938
979
|
const success = 0 === errors.length;
|
|
939
|
-
return {
|
|
980
|
+
return success ? {
|
|
981
|
+
success,
|
|
982
|
+
data: input
|
|
983
|
+
} : {
|
|
940
984
|
success,
|
|
941
985
|
errors,
|
|
942
|
-
data:
|
|
986
|
+
data: input
|
|
943
987
|
};
|
|
944
988
|
}
|
|
945
989
|
return {
|
|
946
990
|
success: true,
|
|
947
|
-
errors: [],
|
|
948
991
|
data: input
|
|
949
992
|
};
|
|
950
993
|
}; })()(payload ?? {});
|