bitbadgesjs-sdk 0.7.13 → 0.8.1
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.d.ts +11 -1
- package/dist/cjs/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesAddressList.js +251 -198
- package/dist/cjs/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts +48 -21
- package/dist/cjs/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesApi.js +9780 -8628
- 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 +18 -4
- package/dist/cjs/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
- package/dist/cjs/api-indexer/BitBadgesUserInfo.js +132 -38
- 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 +101 -39
- package/dist/cjs/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/requests.js +106 -40
- package/dist/cjs/api-indexer/requests/requests.js.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.d.ts +30 -3
- package/dist/cjs/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/cjs/api-indexer/requests/routes.js +30 -3
- 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/common/string-numbers.js.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.d.ts +11 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesAddressList.js +217 -197
- package/dist/esm/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.d.ts +48 -21
- package/dist/esm/api-indexer/BitBadgesApi.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesApi.js +9782 -8663
- 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 +18 -4
- package/dist/esm/api-indexer/BitBadgesUserInfo.d.ts.map +1 -1
- package/dist/esm/api-indexer/BitBadgesUserInfo.js +99 -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 +101 -39
- package/dist/esm/api-indexer/requests/requests.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/requests.js +102 -39
- package/dist/esm/api-indexer/requests/requests.js.map +1 -1
- package/dist/esm/api-indexer/requests/routes.d.ts +30 -3
- package/dist/esm/api-indexer/requests/routes.d.ts.map +1 -1
- package/dist/esm/api-indexer/requests/routes.js +30 -3
- 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/common/string-numbers.js.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 +5 -5
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import * as __typia_transform__validateReport from "typia/lib/internal/_validateReport.js";
|
|
2
|
+
import * as __typia_transform__accessExpressionAsString from "typia/lib/internal/_accessExpressionAsString.js";
|
|
1
3
|
import { BaseNumberTypeClass, convertClassPropertiesAndMaintainNumberTypes, getConverterFunction } from '../common/base.js';
|
|
4
|
+
import { ClaimDetails } from '../core/approvals.js';
|
|
2
5
|
import typia from 'typia';
|
|
3
6
|
import { EmptyResponseClass } from './base.js';
|
|
4
7
|
import { ListActivityDoc } from './docs/activity.js';
|
|
5
8
|
import { AddressListDoc, UtilityListingDoc } from './docs/docs.js';
|
|
6
9
|
import { Metadata } from './metadata/metadata.js';
|
|
7
10
|
import { BitBadgesApiRoutes } from './requests/routes.js';
|
|
8
|
-
import { ClaimDetails } from '../core/approvals.js';
|
|
9
11
|
export class BitBadgesAddressList extends AddressListDoc {
|
|
10
12
|
metadata;
|
|
11
13
|
listsActivity;
|
|
@@ -124,81 +126,83 @@ export class BitBadgesAddressList extends AddressListDoc {
|
|
|
124
126
|
}
|
|
125
127
|
static async GetAddressLists(api, payload) {
|
|
126
128
|
try {
|
|
127
|
-
const validateRes = (() => { const
|
|
129
|
+
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, {
|
|
128
130
|
path: _path + ".listsToFetch",
|
|
129
131
|
expected: "Array<__type>",
|
|
130
132
|
value: input.listsToFetch
|
|
131
|
-
})) && input.listsToFetch.map((elem, _index3) => ("object" === typeof elem && null !== elem ||
|
|
133
|
+
})) && input.listsToFetch.map((elem, _index3) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
132
134
|
path: _path + ".listsToFetch[" + _index3 + "]",
|
|
133
135
|
expected: "__type",
|
|
134
136
|
value: elem
|
|
135
|
-
})) &&
|
|
137
|
+
})) && _vo1(elem, _path + ".listsToFetch[" + _index3 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
136
138
|
path: _path + ".listsToFetch[" + _index3 + "]",
|
|
137
139
|
expected: "__type",
|
|
138
140
|
value: elem
|
|
139
|
-
})).every(flag => flag) ||
|
|
141
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
140
142
|
path: _path + ".listsToFetch",
|
|
141
143
|
expected: "Array<__type>",
|
|
142
144
|
value: input.listsToFetch
|
|
143
|
-
})].every(flag => flag); const
|
|
145
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.listId || _report(_exceptionable, {
|
|
144
146
|
path: _path + ".listId",
|
|
145
147
|
expected: "string",
|
|
146
148
|
value: input.listId
|
|
147
|
-
}), undefined === input.viewsToFetch || (Array.isArray(input.viewsToFetch) ||
|
|
149
|
+
}), undefined === input.viewsToFetch || (Array.isArray(input.viewsToFetch) || _report(_exceptionable, {
|
|
148
150
|
path: _path + ".viewsToFetch",
|
|
149
151
|
expected: "(Array<__type>.o1 | undefined)",
|
|
150
152
|
value: input.viewsToFetch
|
|
151
|
-
})) && input.viewsToFetch.map((elem, _index4) => ("object" === typeof elem && null !== elem ||
|
|
153
|
+
})) && input.viewsToFetch.map((elem, _index4) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
152
154
|
path: _path + ".viewsToFetch[" + _index4 + "]",
|
|
153
155
|
expected: "__type.o1",
|
|
154
156
|
value: elem
|
|
155
|
-
})) &&
|
|
157
|
+
})) && _vo2(elem, _path + ".viewsToFetch[" + _index4 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
156
158
|
path: _path + ".viewsToFetch[" + _index4 + "]",
|
|
157
159
|
expected: "__type.o1",
|
|
158
160
|
value: elem
|
|
159
|
-
})).every(flag => flag) ||
|
|
161
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
160
162
|
path: _path + ".viewsToFetch",
|
|
161
163
|
expected: "(Array<__type>.o1 | undefined)",
|
|
162
164
|
value: input.viewsToFetch
|
|
163
|
-
}), undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams ||
|
|
165
|
+
}), undefined === input.fetchPrivateParams || "boolean" === typeof input.fetchPrivateParams || _report(_exceptionable, {
|
|
164
166
|
path: _path + ".fetchPrivateParams",
|
|
165
167
|
expected: "(boolean | undefined)",
|
|
166
168
|
value: input.fetchPrivateParams
|
|
167
|
-
})].every(flag => flag); const
|
|
169
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.viewId || _report(_exceptionable, {
|
|
168
170
|
path: _path + ".viewId",
|
|
169
171
|
expected: "string",
|
|
170
172
|
value: input.viewId
|
|
171
|
-
}), "listActivity" === input.viewType || "listings" === input.viewType ||
|
|
173
|
+
}), "listActivity" === input.viewType || "listings" === input.viewType || _report(_exceptionable, {
|
|
172
174
|
path: _path + ".viewType",
|
|
173
175
|
expected: "(\"listActivity\" | \"listings\")",
|
|
174
176
|
value: input.viewType
|
|
175
|
-
}), "string" === typeof input.bookmark ||
|
|
177
|
+
}), "string" === typeof input.bookmark || _report(_exceptionable, {
|
|
176
178
|
path: _path + ".bookmark",
|
|
177
179
|
expected: "string",
|
|
178
180
|
value: input.bookmark
|
|
179
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input &&
|
|
181
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
180
182
|
if (false === __is(input)) {
|
|
181
183
|
errors = [];
|
|
182
|
-
|
|
183
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
184
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
185
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
184
186
|
path: _path + "",
|
|
185
187
|
expected: "iGetAddressListsPayload",
|
|
186
188
|
value: input
|
|
187
|
-
})) &&
|
|
189
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
188
190
|
path: _path + "",
|
|
189
191
|
expected: "iGetAddressListsPayload",
|
|
190
192
|
value: input
|
|
191
193
|
}))(input, "$input", true);
|
|
192
194
|
const success = 0 === errors.length;
|
|
193
|
-
return {
|
|
195
|
+
return success ? {
|
|
196
|
+
success,
|
|
197
|
+
data: input
|
|
198
|
+
} : {
|
|
194
199
|
success,
|
|
195
200
|
errors,
|
|
196
|
-
data:
|
|
201
|
+
data: input
|
|
197
202
|
};
|
|
198
203
|
}
|
|
199
204
|
return {
|
|
200
205
|
success: true,
|
|
201
|
-
errors: [],
|
|
202
206
|
data: input
|
|
203
207
|
};
|
|
204
208
|
}; })()(payload ?? {});
|
|
@@ -215,337 +219,339 @@ export class BitBadgesAddressList extends AddressListDoc {
|
|
|
215
219
|
}
|
|
216
220
|
static async CreateAddressList(api, payload) {
|
|
217
221
|
try {
|
|
218
|
-
const validateRes = (() => { const
|
|
222
|
+
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 => {
|
|
219
223
|
const value = input[key];
|
|
220
224
|
if (undefined === value)
|
|
221
225
|
return true;
|
|
222
226
|
return true;
|
|
223
|
-
}); const
|
|
227
|
+
}); 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 => {
|
|
224
228
|
const value = input[key];
|
|
225
229
|
if (undefined === value)
|
|
226
230
|
return true;
|
|
227
231
|
return true;
|
|
228
|
-
}); const
|
|
232
|
+
}); 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, {
|
|
229
233
|
path: _path + ".addressLists",
|
|
230
234
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
231
235
|
value: input.addressLists
|
|
232
|
-
})) && input.addressLists.map((elem, _index7) => ("object" === typeof elem && null !== elem ||
|
|
236
|
+
})) && input.addressLists.map((elem, _index7) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
233
237
|
path: _path + ".addressLists[" + _index7 + "]",
|
|
234
238
|
expected: "iAddressListCreateObject<T>",
|
|
235
239
|
value: elem
|
|
236
|
-
})) &&
|
|
240
|
+
})) && _vo1(elem, _path + ".addressLists[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
237
241
|
path: _path + ".addressLists[" + _index7 + "]",
|
|
238
242
|
expected: "iAddressListCreateObject<T>",
|
|
239
243
|
value: elem
|
|
240
|
-
})).every(flag => flag) ||
|
|
244
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
241
245
|
path: _path + ".addressLists",
|
|
242
246
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
243
247
|
value: input.addressLists
|
|
244
|
-
})].every(flag => flag); const
|
|
248
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.listId || _report(_exceptionable, {
|
|
245
249
|
path: _path + ".listId",
|
|
246
250
|
expected: "string",
|
|
247
251
|
value: input.listId
|
|
248
|
-
}), (Array.isArray(input.addresses) ||
|
|
252
|
+
}), (Array.isArray(input.addresses) || _report(_exceptionable, {
|
|
249
253
|
path: _path + ".addresses",
|
|
250
254
|
expected: "Array<string>",
|
|
251
255
|
value: input.addresses
|
|
252
|
-
})) && input.addresses.map((elem, _index8) => "string" === typeof elem ||
|
|
256
|
+
})) && input.addresses.map((elem, _index8) => "string" === typeof elem || _report(_exceptionable, {
|
|
253
257
|
path: _path + ".addresses[" + _index8 + "]",
|
|
254
258
|
expected: "string",
|
|
255
259
|
value: elem
|
|
256
|
-
})).every(flag => flag) ||
|
|
260
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
257
261
|
path: _path + ".addresses",
|
|
258
262
|
expected: "Array<string>",
|
|
259
263
|
value: input.addresses
|
|
260
|
-
}), "boolean" === typeof input.whitelist ||
|
|
264
|
+
}), "boolean" === typeof input.whitelist || _report(_exceptionable, {
|
|
261
265
|
path: _path + ".whitelist",
|
|
262
266
|
expected: "boolean",
|
|
263
267
|
value: input.whitelist
|
|
264
|
-
}), "string" === typeof input.uri ||
|
|
268
|
+
}), "string" === typeof input.uri || _report(_exceptionable, {
|
|
265
269
|
path: _path + ".uri",
|
|
266
270
|
expected: "string",
|
|
267
271
|
value: input.uri
|
|
268
|
-
}), "string" === typeof input.customData ||
|
|
272
|
+
}), "string" === typeof input.customData || _report(_exceptionable, {
|
|
269
273
|
path: _path + ".customData",
|
|
270
274
|
expected: "string",
|
|
271
275
|
value: input.customData
|
|
272
|
-
}), undefined === input.createdBy || "string" === typeof input.createdBy ||
|
|
276
|
+
}), undefined === input.createdBy || "string" === typeof input.createdBy || _report(_exceptionable, {
|
|
273
277
|
path: _path + ".createdBy",
|
|
274
278
|
expected: "(string | undefined)",
|
|
275
279
|
value: input.createdBy
|
|
276
|
-
}), undefined === input.aliasAddress || "string" === typeof input.aliasAddress ||
|
|
280
|
+
}), undefined === input.aliasAddress || "string" === typeof input.aliasAddress || _report(_exceptionable, {
|
|
277
281
|
path: _path + ".aliasAddress",
|
|
278
282
|
expected: "(string | undefined)",
|
|
279
283
|
value: input.aliasAddress
|
|
280
|
-
}), undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses ||
|
|
284
|
+
}), undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses || _report(_exceptionable, {
|
|
281
285
|
path: _path + ".updateAddresses",
|
|
282
286
|
expected: "(boolean | undefined)",
|
|
283
287
|
value: input.updateAddresses
|
|
284
|
-
}), (Array.isArray(input.claims) ||
|
|
288
|
+
}), (Array.isArray(input.claims) || _report(_exceptionable, {
|
|
285
289
|
path: _path + ".claims",
|
|
286
290
|
expected: "Array<__type>",
|
|
287
291
|
value: input.claims
|
|
288
|
-
})) && input.claims.map((elem, _index9) => ("object" === typeof elem && null !== elem ||
|
|
292
|
+
})) && input.claims.map((elem, _index9) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
289
293
|
path: _path + ".claims[" + _index9 + "]",
|
|
290
294
|
expected: "__type",
|
|
291
295
|
value: elem
|
|
292
|
-
})) &&
|
|
296
|
+
})) && _vo2(elem, _path + ".claims[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
293
297
|
path: _path + ".claims[" + _index9 + "]",
|
|
294
298
|
expected: "__type",
|
|
295
299
|
value: elem
|
|
296
|
-
})).every(flag => flag) ||
|
|
300
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
297
301
|
path: _path + ".claims",
|
|
298
302
|
expected: "Array<__type>",
|
|
299
303
|
value: input.claims
|
|
300
|
-
})].every(flag => flag); const
|
|
304
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || _report(_exceptionable, {
|
|
301
305
|
path: _path + ".claimId",
|
|
302
306
|
expected: "string",
|
|
303
307
|
value: input.claimId
|
|
304
|
-
}), (Array.isArray(input.plugins) ||
|
|
308
|
+
}), (Array.isArray(input.plugins) || _report(_exceptionable, {
|
|
305
309
|
path: _path + ".plugins",
|
|
306
310
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
307
311
|
value: input.plugins
|
|
308
|
-
})) && input.plugins.map((elem, _index10) => ("object" === typeof elem && null !== elem ||
|
|
312
|
+
})) && input.plugins.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
309
313
|
path: _path + ".plugins[" + _index10 + "]",
|
|
310
314
|
expected: "IntegrationPluginDetails<string>",
|
|
311
315
|
value: elem
|
|
312
|
-
})) &&
|
|
316
|
+
})) && _vo3(elem, _path + ".plugins[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
313
317
|
path: _path + ".plugins[" + _index10 + "]",
|
|
314
318
|
expected: "IntegrationPluginDetails<string>",
|
|
315
319
|
value: elem
|
|
316
|
-
})).every(flag => flag) ||
|
|
320
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
317
321
|
path: _path + ".plugins",
|
|
318
322
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
319
323
|
value: input.plugins
|
|
320
|
-
}), undefined === input.rewards || (Array.isArray(input.rewards) ||
|
|
324
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || _report(_exceptionable, {
|
|
321
325
|
path: _path + ".rewards",
|
|
322
326
|
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
323
327
|
value: input.rewards
|
|
324
|
-
})) && input.rewards.map((elem, _index11) => ("object" === typeof elem && null !== elem ||
|
|
328
|
+
})) && input.rewards.map((elem, _index11) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
325
329
|
path: _path + ".rewards[" + _index11 + "]",
|
|
326
330
|
expected: "ClaimReward<T>",
|
|
327
331
|
value: elem
|
|
328
|
-
})) &&
|
|
332
|
+
})) && _vo6(elem, _path + ".rewards[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
329
333
|
path: _path + ".rewards[" + _index11 + "]",
|
|
330
334
|
expected: "ClaimReward<T>",
|
|
331
335
|
value: elem
|
|
332
|
-
})).every(flag => flag) ||
|
|
336
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
333
337
|
path: _path + ".rewards",
|
|
334
338
|
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
335
339
|
value: input.rewards
|
|
336
|
-
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost ||
|
|
340
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || _report(_exceptionable, {
|
|
337
341
|
path: _path + ".estimatedCost",
|
|
338
342
|
expected: "(string | undefined)",
|
|
339
343
|
value: input.estimatedCost
|
|
340
|
-
}), undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults ||
|
|
344
|
+
}), undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults || _report(_exceptionable, {
|
|
341
345
|
path: _path + ".showInSearchResults",
|
|
342
346
|
expected: "(boolean | undefined)",
|
|
343
347
|
value: input.showInSearchResults
|
|
344
|
-
}), undefined === input.categories || (Array.isArray(input.categories) ||
|
|
348
|
+
}), undefined === input.categories || (Array.isArray(input.categories) || _report(_exceptionable, {
|
|
345
349
|
path: _path + ".categories",
|
|
346
350
|
expected: "(Array<string> | undefined)",
|
|
347
351
|
value: input.categories
|
|
348
|
-
})) && input.categories.map((elem, _index12) => "string" === typeof elem ||
|
|
352
|
+
})) && input.categories.map((elem, _index12) => "string" === typeof elem || _report(_exceptionable, {
|
|
349
353
|
path: _path + ".categories[" + _index12 + "]",
|
|
350
354
|
expected: "string",
|
|
351
355
|
value: elem
|
|
352
|
-
})).every(flag => flag) ||
|
|
356
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
353
357
|
path: _path + ".categories",
|
|
354
358
|
expected: "(Array<string> | undefined)",
|
|
355
359
|
value: input.categories
|
|
356
|
-
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime ||
|
|
360
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || _report(_exceptionable, {
|
|
357
361
|
path: _path + ".estimatedTime",
|
|
358
362
|
expected: "(string | undefined)",
|
|
359
363
|
value: input.estimatedTime
|
|
360
|
-
}), undefined === input.approach || "string" === typeof input.approach ||
|
|
364
|
+
}), undefined === input.approach || "string" === typeof input.approach || _report(_exceptionable, {
|
|
361
365
|
path: _path + ".approach",
|
|
362
366
|
expected: "(string | undefined)",
|
|
363
367
|
value: input.approach
|
|
364
|
-
})].every(flag => flag); const
|
|
368
|
+
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || _report(_exceptionable, {
|
|
365
369
|
path: _path + ".publicState",
|
|
366
370
|
expected: "Record<string, any>",
|
|
367
371
|
value: input.publicState
|
|
368
|
-
})) &&
|
|
372
|
+
})) && _vo4(input.publicState, _path + ".publicState", true && _exceptionable) || _report(_exceptionable, {
|
|
369
373
|
path: _path + ".publicState",
|
|
370
374
|
expected: "Record<string, any>",
|
|
371
375
|
value: input.publicState
|
|
372
|
-
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) ||
|
|
376
|
+
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || _report(_exceptionable, {
|
|
373
377
|
path: _path + ".privateState",
|
|
374
378
|
expected: "(Record<string, any> | undefined)",
|
|
375
379
|
value: input.privateState
|
|
376
|
-
})) &&
|
|
380
|
+
})) && _vo4(input.privateState, _path + ".privateState", true && _exceptionable) || _report(_exceptionable, {
|
|
377
381
|
path: _path + ".privateState",
|
|
378
382
|
expected: "(Record<string, any> | undefined)",
|
|
379
383
|
value: input.privateState
|
|
380
|
-
}), undefined === input.resetState || "boolean" === typeof input.resetState ||
|
|
384
|
+
}), undefined === input.resetState || "boolean" === typeof input.resetState || _report(_exceptionable, {
|
|
381
385
|
path: _path + ".resetState",
|
|
382
386
|
expected: "(boolean | undefined)",
|
|
383
387
|
value: input.resetState
|
|
384
|
-
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) ||
|
|
388
|
+
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || _report(_exceptionable, {
|
|
385
389
|
path: _path + ".newState",
|
|
386
390
|
expected: "(Record<string, any> | undefined)",
|
|
387
391
|
value: input.newState
|
|
388
|
-
})) &&
|
|
392
|
+
})) && _vo4(input.newState, _path + ".newState", true && _exceptionable) || _report(_exceptionable, {
|
|
389
393
|
path: _path + ".newState",
|
|
390
394
|
expected: "(Record<string, any> | undefined)",
|
|
391
395
|
value: input.newState
|
|
392
|
-
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState ||
|
|
396
|
+
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || _report(_exceptionable, {
|
|
393
397
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
394
398
|
expected: "(boolean | undefined)",
|
|
395
399
|
value: input.onlyUpdateProvidedNewState
|
|
396
|
-
}), "string" === typeof input.instanceId ||
|
|
400
|
+
}), "string" === typeof input.instanceId || _report(_exceptionable, {
|
|
397
401
|
path: _path + ".instanceId",
|
|
398
402
|
expected: "string",
|
|
399
403
|
value: input.instanceId
|
|
400
|
-
}), "string" === typeof input.pluginId ||
|
|
404
|
+
}), "string" === typeof input.pluginId || _report(_exceptionable, {
|
|
401
405
|
path: _path + ".pluginId",
|
|
402
406
|
expected: "string",
|
|
403
407
|
value: input.pluginId
|
|
404
|
-
}), "string" === typeof input.version ||
|
|
408
|
+
}), "string" === typeof input.version || _report(_exceptionable, {
|
|
405
409
|
path: _path + ".version",
|
|
406
410
|
expected: "string",
|
|
407
411
|
value: input.version
|
|
408
|
-
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) ||
|
|
412
|
+
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || _report(_exceptionable, {
|
|
409
413
|
path: _path + ".publicParams",
|
|
410
414
|
expected: "Record<string, any>",
|
|
411
415
|
value: input.publicParams
|
|
412
|
-
})) &&
|
|
416
|
+
})) && _vo4(input.publicParams, _path + ".publicParams", true && _exceptionable) || _report(_exceptionable, {
|
|
413
417
|
path: _path + ".publicParams",
|
|
414
418
|
expected: "Record<string, any>",
|
|
415
419
|
value: input.publicParams
|
|
416
|
-
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) ||
|
|
420
|
+
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || _report(_exceptionable, {
|
|
417
421
|
path: _path + ".privateParams",
|
|
418
422
|
expected: "Record<string, any>",
|
|
419
423
|
value: input.privateParams
|
|
420
|
-
})) &&
|
|
424
|
+
})) && _vo4(input.privateParams, _path + ".privateParams", true && _exceptionable) || _report(_exceptionable, {
|
|
421
425
|
path: _path + ".privateParams",
|
|
422
426
|
expected: "Record<string, any>",
|
|
423
427
|
value: input.privateParams
|
|
424
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata ||
|
|
428
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
425
429
|
path: _path + ".metadata",
|
|
426
430
|
expected: "(__type.o1 | undefined)",
|
|
427
431
|
value: input.metadata
|
|
428
|
-
})) &&
|
|
432
|
+
})) && _vo5(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
429
433
|
path: _path + ".metadata",
|
|
430
434
|
expected: "(__type.o1 | undefined)",
|
|
431
435
|
value: input.metadata
|
|
432
|
-
})].every(flag => flag); const
|
|
436
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
433
437
|
const value = input[key];
|
|
434
438
|
if (undefined === value)
|
|
435
439
|
return true;
|
|
436
440
|
return true;
|
|
437
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
441
|
+
}).every(flag => flag)].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
438
442
|
path: _path + ".name",
|
|
439
443
|
expected: "string",
|
|
440
444
|
value: input.name
|
|
441
|
-
}), "string" === typeof input.description ||
|
|
445
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
442
446
|
path: _path + ".description",
|
|
443
447
|
expected: "string",
|
|
444
448
|
value: input.description
|
|
445
|
-
}), undefined === input.image || "string" === typeof input.image ||
|
|
449
|
+
}), undefined === input.image || "string" === typeof input.image || _report(_exceptionable, {
|
|
446
450
|
path: _path + ".image",
|
|
447
451
|
expected: "(string | undefined)",
|
|
448
452
|
value: input.image
|
|
449
|
-
})].every(flag => flag); const
|
|
453
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || _report(_exceptionable, {
|
|
450
454
|
path: _path + ".rewardId",
|
|
451
455
|
expected: "string",
|
|
452
456
|
value: input.rewardId
|
|
453
|
-
}), "string" === typeof input.instanceId ||
|
|
457
|
+
}), "string" === typeof input.instanceId || _report(_exceptionable, {
|
|
454
458
|
path: _path + ".instanceId",
|
|
455
459
|
expected: "string",
|
|
456
460
|
value: input.instanceId
|
|
457
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata ||
|
|
461
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
458
462
|
path: _path + ".metadata",
|
|
459
463
|
expected: "(__type.o2 | undefined)",
|
|
460
464
|
value: input.metadata
|
|
461
|
-
})) &&
|
|
465
|
+
})) && _vo7(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
462
466
|
path: _path + ".metadata",
|
|
463
467
|
expected: "(__type.o2 | undefined)",
|
|
464
468
|
value: input.metadata
|
|
465
|
-
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) ||
|
|
469
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || _report(_exceptionable, {
|
|
466
470
|
path: _path + ".gatedContent",
|
|
467
471
|
expected: "iClaimGatedContent",
|
|
468
472
|
value: input.gatedContent
|
|
469
|
-
})) &&
|
|
473
|
+
})) && _vo8(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || _report(_exceptionable, {
|
|
470
474
|
path: _path + ".gatedContent",
|
|
471
475
|
expected: "iClaimGatedContent",
|
|
472
476
|
value: input.gatedContent
|
|
473
|
-
}), undefined === input.automatic || "boolean" === typeof input.automatic ||
|
|
477
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || _report(_exceptionable, {
|
|
474
478
|
path: _path + ".automatic",
|
|
475
479
|
expected: "(boolean | undefined)",
|
|
476
480
|
value: input.automatic
|
|
477
|
-
}), undefined === input.calculationMethod || ("object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) ||
|
|
481
|
+
}), undefined === input.calculationMethod || ("object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) || _report(_exceptionable, {
|
|
478
482
|
path: _path + ".calculationMethod",
|
|
479
483
|
expected: "(__type.o4 | undefined)",
|
|
480
484
|
value: input.calculationMethod
|
|
481
|
-
})) &&
|
|
485
|
+
})) && _vo10(input.calculationMethod, _path + ".calculationMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
482
486
|
path: _path + ".calculationMethod",
|
|
483
487
|
expected: "(__type.o4 | undefined)",
|
|
484
488
|
value: input.calculationMethod
|
|
485
|
-
})].every(flag => flag); const
|
|
489
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
486
490
|
path: _path + ".name",
|
|
487
491
|
expected: "string",
|
|
488
492
|
value: input.name
|
|
489
|
-
}), "string" === typeof input.description ||
|
|
493
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
490
494
|
path: _path + ".description",
|
|
491
495
|
expected: "string",
|
|
492
496
|
value: input.description
|
|
493
|
-
}), "string" === typeof input.image ||
|
|
497
|
+
}), "string" === typeof input.image || _report(_exceptionable, {
|
|
494
498
|
path: _path + ".image",
|
|
495
499
|
expected: "string",
|
|
496
500
|
value: input.image
|
|
497
|
-
})].every(flag => flag); const
|
|
501
|
+
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || _report(_exceptionable, {
|
|
498
502
|
path: _path + ".content",
|
|
499
503
|
expected: "(string | undefined)",
|
|
500
504
|
value: input.content
|
|
501
|
-
}), undefined === input.url || "string" === typeof input.url ||
|
|
505
|
+
}), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
|
|
502
506
|
path: _path + ".url",
|
|
503
507
|
expected: "(string | undefined)",
|
|
504
508
|
value: input.url
|
|
505
|
-
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) ||
|
|
509
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || _report(_exceptionable, {
|
|
506
510
|
path: _path + ".params",
|
|
507
511
|
expected: "(__type.o3 | undefined)",
|
|
508
512
|
value: input.params
|
|
509
|
-
})) &&
|
|
513
|
+
})) && _vo9(input.params, _path + ".params", true && _exceptionable) || _report(_exceptionable, {
|
|
510
514
|
path: _path + ".params",
|
|
511
515
|
expected: "(__type.o3 | undefined)",
|
|
512
516
|
value: input.params
|
|
513
|
-
})].every(flag => flag); const
|
|
517
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
514
518
|
const value = input[key];
|
|
515
519
|
if (undefined === value)
|
|
516
520
|
return true;
|
|
517
521
|
return true;
|
|
518
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
522
|
+
}).every(flag => flag)].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow || _report(_exceptionable, {
|
|
519
523
|
path: _path + ".alwaysShow",
|
|
520
524
|
expected: "(boolean | undefined)",
|
|
521
525
|
value: input.alwaysShow
|
|
522
|
-
}), undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses ||
|
|
526
|
+
}), undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses || _report(_exceptionable, {
|
|
523
527
|
path: _path + ".minClaimSuccesses",
|
|
524
528
|
expected: "(number | undefined)",
|
|
525
529
|
value: input.minClaimSuccesses
|
|
526
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input &&
|
|
530
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
527
531
|
if (false === __is(input)) {
|
|
528
532
|
errors = [];
|
|
529
|
-
|
|
530
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
533
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
534
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
531
535
|
path: _path + "",
|
|
532
536
|
expected: "iCreateAddressListsPayload<T>",
|
|
533
537
|
value: input
|
|
534
|
-
})) &&
|
|
538
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
535
539
|
path: _path + "",
|
|
536
540
|
expected: "iCreateAddressListsPayload<T>",
|
|
537
541
|
value: input
|
|
538
542
|
}))(input, "$input", true);
|
|
539
543
|
const success = 0 === errors.length;
|
|
540
|
-
return {
|
|
544
|
+
return success ? {
|
|
545
|
+
success,
|
|
546
|
+
data: input
|
|
547
|
+
} : {
|
|
541
548
|
success,
|
|
542
549
|
errors,
|
|
543
|
-
data:
|
|
550
|
+
data: input
|
|
544
551
|
};
|
|
545
552
|
}
|
|
546
553
|
return {
|
|
547
554
|
success: true,
|
|
548
|
-
errors: [],
|
|
549
555
|
data: input
|
|
550
556
|
};
|
|
551
557
|
}; })()(payload ?? {});
|
|
@@ -562,337 +568,339 @@ export class BitBadgesAddressList extends AddressListDoc {
|
|
|
562
568
|
}
|
|
563
569
|
static async UpdateAddressList(api, payload) {
|
|
564
570
|
try {
|
|
565
|
-
const validateRes = (() => { const
|
|
571
|
+
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 => {
|
|
566
572
|
const value = input[key];
|
|
567
573
|
if (undefined === value)
|
|
568
574
|
return true;
|
|
569
575
|
return true;
|
|
570
|
-
}); const
|
|
576
|
+
}); 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 => {
|
|
571
577
|
const value = input[key];
|
|
572
578
|
if (undefined === value)
|
|
573
579
|
return true;
|
|
574
580
|
return true;
|
|
575
|
-
}); const
|
|
581
|
+
}); 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, {
|
|
576
582
|
path: _path + ".addressLists",
|
|
577
583
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
578
584
|
value: input.addressLists
|
|
579
|
-
})) && input.addressLists.map((elem, _index7) => ("object" === typeof elem && null !== elem ||
|
|
585
|
+
})) && input.addressLists.map((elem, _index7) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
580
586
|
path: _path + ".addressLists[" + _index7 + "]",
|
|
581
587
|
expected: "iAddressListCreateObject<T>",
|
|
582
588
|
value: elem
|
|
583
|
-
})) &&
|
|
589
|
+
})) && _vo1(elem, _path + ".addressLists[" + _index7 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
584
590
|
path: _path + ".addressLists[" + _index7 + "]",
|
|
585
591
|
expected: "iAddressListCreateObject<T>",
|
|
586
592
|
value: elem
|
|
587
|
-
})).every(flag => flag) ||
|
|
593
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
588
594
|
path: _path + ".addressLists",
|
|
589
595
|
expected: "Array<iAddressListCreateObject<T>>",
|
|
590
596
|
value: input.addressLists
|
|
591
|
-
})].every(flag => flag); const
|
|
597
|
+
})].every(flag => flag); const _vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.listId || _report(_exceptionable, {
|
|
592
598
|
path: _path + ".listId",
|
|
593
599
|
expected: "string",
|
|
594
600
|
value: input.listId
|
|
595
|
-
}), (Array.isArray(input.addresses) ||
|
|
601
|
+
}), (Array.isArray(input.addresses) || _report(_exceptionable, {
|
|
596
602
|
path: _path + ".addresses",
|
|
597
603
|
expected: "Array<string>",
|
|
598
604
|
value: input.addresses
|
|
599
|
-
})) && input.addresses.map((elem, _index8) => "string" === typeof elem ||
|
|
605
|
+
})) && input.addresses.map((elem, _index8) => "string" === typeof elem || _report(_exceptionable, {
|
|
600
606
|
path: _path + ".addresses[" + _index8 + "]",
|
|
601
607
|
expected: "string",
|
|
602
608
|
value: elem
|
|
603
|
-
})).every(flag => flag) ||
|
|
609
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
604
610
|
path: _path + ".addresses",
|
|
605
611
|
expected: "Array<string>",
|
|
606
612
|
value: input.addresses
|
|
607
|
-
}), "boolean" === typeof input.whitelist ||
|
|
613
|
+
}), "boolean" === typeof input.whitelist || _report(_exceptionable, {
|
|
608
614
|
path: _path + ".whitelist",
|
|
609
615
|
expected: "boolean",
|
|
610
616
|
value: input.whitelist
|
|
611
|
-
}), "string" === typeof input.uri ||
|
|
617
|
+
}), "string" === typeof input.uri || _report(_exceptionable, {
|
|
612
618
|
path: _path + ".uri",
|
|
613
619
|
expected: "string",
|
|
614
620
|
value: input.uri
|
|
615
|
-
}), "string" === typeof input.customData ||
|
|
621
|
+
}), "string" === typeof input.customData || _report(_exceptionable, {
|
|
616
622
|
path: _path + ".customData",
|
|
617
623
|
expected: "string",
|
|
618
624
|
value: input.customData
|
|
619
|
-
}), undefined === input.createdBy || "string" === typeof input.createdBy ||
|
|
625
|
+
}), undefined === input.createdBy || "string" === typeof input.createdBy || _report(_exceptionable, {
|
|
620
626
|
path: _path + ".createdBy",
|
|
621
627
|
expected: "(string | undefined)",
|
|
622
628
|
value: input.createdBy
|
|
623
|
-
}), undefined === input.aliasAddress || "string" === typeof input.aliasAddress ||
|
|
629
|
+
}), undefined === input.aliasAddress || "string" === typeof input.aliasAddress || _report(_exceptionable, {
|
|
624
630
|
path: _path + ".aliasAddress",
|
|
625
631
|
expected: "(string | undefined)",
|
|
626
632
|
value: input.aliasAddress
|
|
627
|
-
}), undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses ||
|
|
633
|
+
}), undefined === input.updateAddresses || "boolean" === typeof input.updateAddresses || _report(_exceptionable, {
|
|
628
634
|
path: _path + ".updateAddresses",
|
|
629
635
|
expected: "(boolean | undefined)",
|
|
630
636
|
value: input.updateAddresses
|
|
631
|
-
}), (Array.isArray(input.claims) ||
|
|
637
|
+
}), (Array.isArray(input.claims) || _report(_exceptionable, {
|
|
632
638
|
path: _path + ".claims",
|
|
633
639
|
expected: "Array<__type>",
|
|
634
640
|
value: input.claims
|
|
635
|
-
})) && input.claims.map((elem, _index9) => ("object" === typeof elem && null !== elem ||
|
|
641
|
+
})) && input.claims.map((elem, _index9) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
636
642
|
path: _path + ".claims[" + _index9 + "]",
|
|
637
643
|
expected: "__type",
|
|
638
644
|
value: elem
|
|
639
|
-
})) &&
|
|
645
|
+
})) && _vo2(elem, _path + ".claims[" + _index9 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
640
646
|
path: _path + ".claims[" + _index9 + "]",
|
|
641
647
|
expected: "__type",
|
|
642
648
|
value: elem
|
|
643
|
-
})).every(flag => flag) ||
|
|
649
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
644
650
|
path: _path + ".claims",
|
|
645
651
|
expected: "Array<__type>",
|
|
646
652
|
value: input.claims
|
|
647
|
-
})].every(flag => flag); const
|
|
653
|
+
})].every(flag => flag); const _vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || _report(_exceptionable, {
|
|
648
654
|
path: _path + ".claimId",
|
|
649
655
|
expected: "string",
|
|
650
656
|
value: input.claimId
|
|
651
|
-
}), (Array.isArray(input.plugins) ||
|
|
657
|
+
}), (Array.isArray(input.plugins) || _report(_exceptionable, {
|
|
652
658
|
path: _path + ".plugins",
|
|
653
659
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
654
660
|
value: input.plugins
|
|
655
|
-
})) && input.plugins.map((elem, _index10) => ("object" === typeof elem && null !== elem ||
|
|
661
|
+
})) && input.plugins.map((elem, _index10) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
656
662
|
path: _path + ".plugins[" + _index10 + "]",
|
|
657
663
|
expected: "IntegrationPluginDetails<string>",
|
|
658
664
|
value: elem
|
|
659
|
-
})) &&
|
|
665
|
+
})) && _vo3(elem, _path + ".plugins[" + _index10 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
660
666
|
path: _path + ".plugins[" + _index10 + "]",
|
|
661
667
|
expected: "IntegrationPluginDetails<string>",
|
|
662
668
|
value: elem
|
|
663
|
-
})).every(flag => flag) ||
|
|
669
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
664
670
|
path: _path + ".plugins",
|
|
665
671
|
expected: "Array<IntegrationPluginDetails<string>>",
|
|
666
672
|
value: input.plugins
|
|
667
|
-
}), undefined === input.rewards || (Array.isArray(input.rewards) ||
|
|
673
|
+
}), undefined === input.rewards || (Array.isArray(input.rewards) || _report(_exceptionable, {
|
|
668
674
|
path: _path + ".rewards",
|
|
669
675
|
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
670
676
|
value: input.rewards
|
|
671
|
-
})) && input.rewards.map((elem, _index11) => ("object" === typeof elem && null !== elem ||
|
|
677
|
+
})) && input.rewards.map((elem, _index11) => ("object" === typeof elem && null !== elem || _report(_exceptionable, {
|
|
672
678
|
path: _path + ".rewards[" + _index11 + "]",
|
|
673
679
|
expected: "ClaimReward<T>",
|
|
674
680
|
value: elem
|
|
675
|
-
})) &&
|
|
681
|
+
})) && _vo6(elem, _path + ".rewards[" + _index11 + "]", true && _exceptionable) || _report(_exceptionable, {
|
|
676
682
|
path: _path + ".rewards[" + _index11 + "]",
|
|
677
683
|
expected: "ClaimReward<T>",
|
|
678
684
|
value: elem
|
|
679
|
-
})).every(flag => flag) ||
|
|
685
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
680
686
|
path: _path + ".rewards",
|
|
681
687
|
expected: "(Array<ClaimReward<T>> | undefined)",
|
|
682
688
|
value: input.rewards
|
|
683
|
-
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost ||
|
|
689
|
+
}), undefined === input.estimatedCost || "string" === typeof input.estimatedCost || _report(_exceptionable, {
|
|
684
690
|
path: _path + ".estimatedCost",
|
|
685
691
|
expected: "(string | undefined)",
|
|
686
692
|
value: input.estimatedCost
|
|
687
|
-
}), undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults ||
|
|
693
|
+
}), undefined === input.showInSearchResults || "boolean" === typeof input.showInSearchResults || _report(_exceptionable, {
|
|
688
694
|
path: _path + ".showInSearchResults",
|
|
689
695
|
expected: "(boolean | undefined)",
|
|
690
696
|
value: input.showInSearchResults
|
|
691
|
-
}), undefined === input.categories || (Array.isArray(input.categories) ||
|
|
697
|
+
}), undefined === input.categories || (Array.isArray(input.categories) || _report(_exceptionable, {
|
|
692
698
|
path: _path + ".categories",
|
|
693
699
|
expected: "(Array<string> | undefined)",
|
|
694
700
|
value: input.categories
|
|
695
|
-
})) && input.categories.map((elem, _index12) => "string" === typeof elem ||
|
|
701
|
+
})) && input.categories.map((elem, _index12) => "string" === typeof elem || _report(_exceptionable, {
|
|
696
702
|
path: _path + ".categories[" + _index12 + "]",
|
|
697
703
|
expected: "string",
|
|
698
704
|
value: elem
|
|
699
|
-
})).every(flag => flag) ||
|
|
705
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
700
706
|
path: _path + ".categories",
|
|
701
707
|
expected: "(Array<string> | undefined)",
|
|
702
708
|
value: input.categories
|
|
703
|
-
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime ||
|
|
709
|
+
}), undefined === input.estimatedTime || "string" === typeof input.estimatedTime || _report(_exceptionable, {
|
|
704
710
|
path: _path + ".estimatedTime",
|
|
705
711
|
expected: "(string | undefined)",
|
|
706
712
|
value: input.estimatedTime
|
|
707
|
-
}), undefined === input.approach || "string" === typeof input.approach ||
|
|
713
|
+
}), undefined === input.approach || "string" === typeof input.approach || _report(_exceptionable, {
|
|
708
714
|
path: _path + ".approach",
|
|
709
715
|
expected: "(string | undefined)",
|
|
710
716
|
value: input.approach
|
|
711
|
-
})].every(flag => flag); const
|
|
717
|
+
})].every(flag => flag); const _vo3 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || _report(_exceptionable, {
|
|
712
718
|
path: _path + ".publicState",
|
|
713
719
|
expected: "Record<string, any>",
|
|
714
720
|
value: input.publicState
|
|
715
|
-
})) &&
|
|
721
|
+
})) && _vo4(input.publicState, _path + ".publicState", true && _exceptionable) || _report(_exceptionable, {
|
|
716
722
|
path: _path + ".publicState",
|
|
717
723
|
expected: "Record<string, any>",
|
|
718
724
|
value: input.publicState
|
|
719
|
-
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) ||
|
|
725
|
+
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || _report(_exceptionable, {
|
|
720
726
|
path: _path + ".privateState",
|
|
721
727
|
expected: "(Record<string, any> | undefined)",
|
|
722
728
|
value: input.privateState
|
|
723
|
-
})) &&
|
|
729
|
+
})) && _vo4(input.privateState, _path + ".privateState", true && _exceptionable) || _report(_exceptionable, {
|
|
724
730
|
path: _path + ".privateState",
|
|
725
731
|
expected: "(Record<string, any> | undefined)",
|
|
726
732
|
value: input.privateState
|
|
727
|
-
}), undefined === input.resetState || "boolean" === typeof input.resetState ||
|
|
733
|
+
}), undefined === input.resetState || "boolean" === typeof input.resetState || _report(_exceptionable, {
|
|
728
734
|
path: _path + ".resetState",
|
|
729
735
|
expected: "(boolean | undefined)",
|
|
730
736
|
value: input.resetState
|
|
731
|
-
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) ||
|
|
737
|
+
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || _report(_exceptionable, {
|
|
732
738
|
path: _path + ".newState",
|
|
733
739
|
expected: "(Record<string, any> | undefined)",
|
|
734
740
|
value: input.newState
|
|
735
|
-
})) &&
|
|
741
|
+
})) && _vo4(input.newState, _path + ".newState", true && _exceptionable) || _report(_exceptionable, {
|
|
736
742
|
path: _path + ".newState",
|
|
737
743
|
expected: "(Record<string, any> | undefined)",
|
|
738
744
|
value: input.newState
|
|
739
|
-
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState ||
|
|
745
|
+
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || _report(_exceptionable, {
|
|
740
746
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
741
747
|
expected: "(boolean | undefined)",
|
|
742
748
|
value: input.onlyUpdateProvidedNewState
|
|
743
|
-
}), "string" === typeof input.instanceId ||
|
|
749
|
+
}), "string" === typeof input.instanceId || _report(_exceptionable, {
|
|
744
750
|
path: _path + ".instanceId",
|
|
745
751
|
expected: "string",
|
|
746
752
|
value: input.instanceId
|
|
747
|
-
}), "string" === typeof input.pluginId ||
|
|
753
|
+
}), "string" === typeof input.pluginId || _report(_exceptionable, {
|
|
748
754
|
path: _path + ".pluginId",
|
|
749
755
|
expected: "string",
|
|
750
756
|
value: input.pluginId
|
|
751
|
-
}), "string" === typeof input.version ||
|
|
757
|
+
}), "string" === typeof input.version || _report(_exceptionable, {
|
|
752
758
|
path: _path + ".version",
|
|
753
759
|
expected: "string",
|
|
754
760
|
value: input.version
|
|
755
|
-
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) ||
|
|
761
|
+
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || _report(_exceptionable, {
|
|
756
762
|
path: _path + ".publicParams",
|
|
757
763
|
expected: "Record<string, any>",
|
|
758
764
|
value: input.publicParams
|
|
759
|
-
})) &&
|
|
765
|
+
})) && _vo4(input.publicParams, _path + ".publicParams", true && _exceptionable) || _report(_exceptionable, {
|
|
760
766
|
path: _path + ".publicParams",
|
|
761
767
|
expected: "Record<string, any>",
|
|
762
768
|
value: input.publicParams
|
|
763
|
-
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) ||
|
|
769
|
+
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || _report(_exceptionable, {
|
|
764
770
|
path: _path + ".privateParams",
|
|
765
771
|
expected: "Record<string, any>",
|
|
766
772
|
value: input.privateParams
|
|
767
|
-
})) &&
|
|
773
|
+
})) && _vo4(input.privateParams, _path + ".privateParams", true && _exceptionable) || _report(_exceptionable, {
|
|
768
774
|
path: _path + ".privateParams",
|
|
769
775
|
expected: "Record<string, any>",
|
|
770
776
|
value: input.privateParams
|
|
771
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata ||
|
|
777
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
772
778
|
path: _path + ".metadata",
|
|
773
779
|
expected: "(__type.o1 | undefined)",
|
|
774
780
|
value: input.metadata
|
|
775
|
-
})) &&
|
|
781
|
+
})) && _vo5(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
776
782
|
path: _path + ".metadata",
|
|
777
783
|
expected: "(__type.o1 | undefined)",
|
|
778
784
|
value: input.metadata
|
|
779
|
-
})].every(flag => flag); const
|
|
785
|
+
})].every(flag => flag); const _vo4 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
780
786
|
const value = input[key];
|
|
781
787
|
if (undefined === value)
|
|
782
788
|
return true;
|
|
783
789
|
return true;
|
|
784
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
790
|
+
}).every(flag => flag)].every(flag => flag); const _vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
785
791
|
path: _path + ".name",
|
|
786
792
|
expected: "string",
|
|
787
793
|
value: input.name
|
|
788
|
-
}), "string" === typeof input.description ||
|
|
794
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
789
795
|
path: _path + ".description",
|
|
790
796
|
expected: "string",
|
|
791
797
|
value: input.description
|
|
792
|
-
}), undefined === input.image || "string" === typeof input.image ||
|
|
798
|
+
}), undefined === input.image || "string" === typeof input.image || _report(_exceptionable, {
|
|
793
799
|
path: _path + ".image",
|
|
794
800
|
expected: "(string | undefined)",
|
|
795
801
|
value: input.image
|
|
796
|
-
})].every(flag => flag); const
|
|
802
|
+
})].every(flag => flag); const _vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.rewardId || _report(_exceptionable, {
|
|
797
803
|
path: _path + ".rewardId",
|
|
798
804
|
expected: "string",
|
|
799
805
|
value: input.rewardId
|
|
800
|
-
}), "string" === typeof input.instanceId ||
|
|
806
|
+
}), "string" === typeof input.instanceId || _report(_exceptionable, {
|
|
801
807
|
path: _path + ".instanceId",
|
|
802
808
|
expected: "string",
|
|
803
809
|
value: input.instanceId
|
|
804
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata ||
|
|
810
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || _report(_exceptionable, {
|
|
805
811
|
path: _path + ".metadata",
|
|
806
812
|
expected: "(__type.o2 | undefined)",
|
|
807
813
|
value: input.metadata
|
|
808
|
-
})) &&
|
|
814
|
+
})) && _vo7(input.metadata, _path + ".metadata", true && _exceptionable) || _report(_exceptionable, {
|
|
809
815
|
path: _path + ".metadata",
|
|
810
816
|
expected: "(__type.o2 | undefined)",
|
|
811
817
|
value: input.metadata
|
|
812
|
-
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) ||
|
|
818
|
+
}), ("object" === typeof input.gatedContent && null !== input.gatedContent && false === Array.isArray(input.gatedContent) || _report(_exceptionable, {
|
|
813
819
|
path: _path + ".gatedContent",
|
|
814
820
|
expected: "iClaimGatedContent",
|
|
815
821
|
value: input.gatedContent
|
|
816
|
-
})) &&
|
|
822
|
+
})) && _vo8(input.gatedContent, _path + ".gatedContent", true && _exceptionable) || _report(_exceptionable, {
|
|
817
823
|
path: _path + ".gatedContent",
|
|
818
824
|
expected: "iClaimGatedContent",
|
|
819
825
|
value: input.gatedContent
|
|
820
|
-
}), undefined === input.automatic || "boolean" === typeof input.automatic ||
|
|
826
|
+
}), undefined === input.automatic || "boolean" === typeof input.automatic || _report(_exceptionable, {
|
|
821
827
|
path: _path + ".automatic",
|
|
822
828
|
expected: "(boolean | undefined)",
|
|
823
829
|
value: input.automatic
|
|
824
|
-
}), undefined === input.calculationMethod || ("object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) ||
|
|
830
|
+
}), undefined === input.calculationMethod || ("object" === typeof input.calculationMethod && null !== input.calculationMethod && false === Array.isArray(input.calculationMethod) || _report(_exceptionable, {
|
|
825
831
|
path: _path + ".calculationMethod",
|
|
826
832
|
expected: "(__type.o4 | undefined)",
|
|
827
833
|
value: input.calculationMethod
|
|
828
|
-
})) &&
|
|
834
|
+
})) && _vo10(input.calculationMethod, _path + ".calculationMethod", true && _exceptionable) || _report(_exceptionable, {
|
|
829
835
|
path: _path + ".calculationMethod",
|
|
830
836
|
expected: "(__type.o4 | undefined)",
|
|
831
837
|
value: input.calculationMethod
|
|
832
|
-
})].every(flag => flag); const
|
|
838
|
+
})].every(flag => flag); const _vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || _report(_exceptionable, {
|
|
833
839
|
path: _path + ".name",
|
|
834
840
|
expected: "string",
|
|
835
841
|
value: input.name
|
|
836
|
-
}), "string" === typeof input.description ||
|
|
842
|
+
}), "string" === typeof input.description || _report(_exceptionable, {
|
|
837
843
|
path: _path + ".description",
|
|
838
844
|
expected: "string",
|
|
839
845
|
value: input.description
|
|
840
|
-
}), "string" === typeof input.image ||
|
|
846
|
+
}), "string" === typeof input.image || _report(_exceptionable, {
|
|
841
847
|
path: _path + ".image",
|
|
842
848
|
expected: "string",
|
|
843
849
|
value: input.image
|
|
844
|
-
})].every(flag => flag); const
|
|
850
|
+
})].every(flag => flag); const _vo8 = (input, _path, _exceptionable = true) => [undefined === input.content || "string" === typeof input.content || _report(_exceptionable, {
|
|
845
851
|
path: _path + ".content",
|
|
846
852
|
expected: "(string | undefined)",
|
|
847
853
|
value: input.content
|
|
848
|
-
}), undefined === input.url || "string" === typeof input.url ||
|
|
854
|
+
}), undefined === input.url || "string" === typeof input.url || _report(_exceptionable, {
|
|
849
855
|
path: _path + ".url",
|
|
850
856
|
expected: "(string | undefined)",
|
|
851
857
|
value: input.url
|
|
852
|
-
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) ||
|
|
858
|
+
}), undefined === input.params || ("object" === typeof input.params && null !== input.params && false === Array.isArray(input.params) || _report(_exceptionable, {
|
|
853
859
|
path: _path + ".params",
|
|
854
860
|
expected: "(__type.o3 | undefined)",
|
|
855
861
|
value: input.params
|
|
856
|
-
})) &&
|
|
862
|
+
})) && _vo9(input.params, _path + ".params", true && _exceptionable) || _report(_exceptionable, {
|
|
857
863
|
path: _path + ".params",
|
|
858
864
|
expected: "(__type.o3 | undefined)",
|
|
859
865
|
value: input.params
|
|
860
|
-
})].every(flag => flag); const
|
|
866
|
+
})].every(flag => flag); const _vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
861
867
|
const value = input[key];
|
|
862
868
|
if (undefined === value)
|
|
863
869
|
return true;
|
|
864
870
|
return true;
|
|
865
|
-
}).every(flag => flag)].every(flag => flag); const
|
|
871
|
+
}).every(flag => flag)].every(flag => flag); const _vo10 = (input, _path, _exceptionable = true) => [undefined === input.alwaysShow || "boolean" === typeof input.alwaysShow || _report(_exceptionable, {
|
|
866
872
|
path: _path + ".alwaysShow",
|
|
867
873
|
expected: "(boolean | undefined)",
|
|
868
874
|
value: input.alwaysShow
|
|
869
|
-
}), undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses ||
|
|
875
|
+
}), undefined === input.minClaimSuccesses || "number" === typeof input.minClaimSuccesses || _report(_exceptionable, {
|
|
870
876
|
path: _path + ".minClaimSuccesses",
|
|
871
877
|
expected: "(number | undefined)",
|
|
872
878
|
value: input.minClaimSuccesses
|
|
873
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input &&
|
|
879
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
874
880
|
if (false === __is(input)) {
|
|
875
881
|
errors = [];
|
|
876
|
-
|
|
877
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
882
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
883
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
878
884
|
path: _path + "",
|
|
879
885
|
expected: "iUpdateAddressListsPayload<T>",
|
|
880
886
|
value: input
|
|
881
|
-
})) &&
|
|
887
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
882
888
|
path: _path + "",
|
|
883
889
|
expected: "iUpdateAddressListsPayload<T>",
|
|
884
890
|
value: input
|
|
885
891
|
}))(input, "$input", true);
|
|
886
892
|
const success = 0 === errors.length;
|
|
887
|
-
return {
|
|
893
|
+
return success ? {
|
|
894
|
+
success,
|
|
895
|
+
data: input
|
|
896
|
+
} : {
|
|
888
897
|
success,
|
|
889
898
|
errors,
|
|
890
|
-
data:
|
|
899
|
+
data: input
|
|
891
900
|
};
|
|
892
901
|
}
|
|
893
902
|
return {
|
|
894
903
|
success: true,
|
|
895
|
-
errors: [],
|
|
896
904
|
data: input
|
|
897
905
|
};
|
|
898
906
|
}; })()(payload ?? {});
|
|
@@ -909,41 +917,43 @@ export class BitBadgesAddressList extends AddressListDoc {
|
|
|
909
917
|
}
|
|
910
918
|
static async DeleteAddressList(api, payload) {
|
|
911
919
|
try {
|
|
912
|
-
const validateRes = (() => { const
|
|
920
|
+
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, {
|
|
913
921
|
path: _path + ".listIds",
|
|
914
922
|
expected: "Array<string>",
|
|
915
923
|
value: input.listIds
|
|
916
|
-
})) && input.listIds.map((elem, _index2) => "string" === typeof elem ||
|
|
924
|
+
})) && input.listIds.map((elem, _index2) => "string" === typeof elem || _report(_exceptionable, {
|
|
917
925
|
path: _path + ".listIds[" + _index2 + "]",
|
|
918
926
|
expected: "string",
|
|
919
927
|
value: elem
|
|
920
|
-
})).every(flag => flag) ||
|
|
928
|
+
})).every(flag => flag) || _report(_exceptionable, {
|
|
921
929
|
path: _path + ".listIds",
|
|
922
930
|
expected: "Array<string>",
|
|
923
931
|
value: input.listIds
|
|
924
|
-
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input &&
|
|
932
|
+
})].every(flag => flag); const __is = input => "object" === typeof input && null !== input && _io0(input); let errors; let _report; return input => {
|
|
925
933
|
if (false === __is(input)) {
|
|
926
934
|
errors = [];
|
|
927
|
-
|
|
928
|
-
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input ||
|
|
935
|
+
_report = __typia_transform__validateReport._validateReport(errors);
|
|
936
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || _report(true, {
|
|
929
937
|
path: _path + "",
|
|
930
938
|
expected: "iDeleteAddressListsPayload",
|
|
931
939
|
value: input
|
|
932
|
-
})) &&
|
|
940
|
+
})) && _vo0(input, _path + "", true) || _report(true, {
|
|
933
941
|
path: _path + "",
|
|
934
942
|
expected: "iDeleteAddressListsPayload",
|
|
935
943
|
value: input
|
|
936
944
|
}))(input, "$input", true);
|
|
937
945
|
const success = 0 === errors.length;
|
|
938
|
-
return {
|
|
946
|
+
return success ? {
|
|
947
|
+
success,
|
|
948
|
+
data: input
|
|
949
|
+
} : {
|
|
939
950
|
success,
|
|
940
951
|
errors,
|
|
941
|
-
data:
|
|
952
|
+
data: input
|
|
942
953
|
};
|
|
943
954
|
}
|
|
944
955
|
return {
|
|
945
956
|
success: true,
|
|
946
|
-
errors: [],
|
|
947
957
|
data: input
|
|
948
958
|
};
|
|
949
959
|
}; })()(payload ?? {});
|
|
@@ -1010,6 +1020,16 @@ const updateAddressListWithResponse = (oldList, newResponse) => {
|
|
|
1010
1020
|
});
|
|
1011
1021
|
return cachedList;
|
|
1012
1022
|
};
|
|
1023
|
+
export class GetAddressListSuccessResponse extends BaseNumberTypeClass {
|
|
1024
|
+
addressList;
|
|
1025
|
+
constructor(data) {
|
|
1026
|
+
super();
|
|
1027
|
+
this.addressList = new BitBadgesAddressList(data.addressList);
|
|
1028
|
+
}
|
|
1029
|
+
convert(convertFunction, options) {
|
|
1030
|
+
return convertClassPropertiesAndMaintainNumberTypes(this, convertFunction, options);
|
|
1031
|
+
}
|
|
1032
|
+
}
|
|
1013
1033
|
export class GetAddressListsSuccessResponse extends BaseNumberTypeClass {
|
|
1014
1034
|
addressLists;
|
|
1015
1035
|
constructor(data) {
|