bitbadgesjs-sdk 0.3.93 → 0.3.94
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/address-converter/converter.d.ts +0 -1
- package/dist/address-converter/converter.d.ts.map +1 -1
- package/dist/address-converter/converter.js +56 -43
- package/dist/address-converter/converter.js.map +1 -1
- package/dist/address-converter/index.js +17 -1
- package/dist/address-converter/index.js.map +1 -1
- package/dist/api-indexer/BitBadgesAddressList.js +36 -25
- package/dist/api-indexer/BitBadgesAddressList.js.map +1 -1
- package/dist/api-indexer/BitBadgesApi.js +645 -637
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/BitBadgesCollection.js +140 -132
- package/dist/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.js +45 -36
- package/dist/api-indexer/BitBadgesUserInfo.js.map +1 -1
- package/dist/api-indexer/base.js +14 -6
- package/dist/api-indexer/base.js.map +1 -1
- package/dist/api-indexer/docs/activity.js +24 -16
- package/dist/api-indexer/docs/activity.js.map +1 -1
- package/dist/api-indexer/docs/docs.js +159 -122
- package/dist/api-indexer/docs/docs.js.map +1 -1
- package/dist/api-indexer/docs/index.js +20 -4
- package/dist/api-indexer/docs/index.js.map +1 -1
- package/dist/api-indexer/docs/interfaces.js +5 -2
- package/dist/api-indexer/docs/interfaces.js.map +1 -1
- package/dist/api-indexer/index.js +24 -8
- package/dist/api-indexer/index.js.map +1 -1
- package/dist/api-indexer/metadata/badgeMetadata.js +51 -23
- package/dist/api-indexer/metadata/badgeMetadata.js.map +1 -1
- package/dist/api-indexer/metadata/index.js +19 -3
- package/dist/api-indexer/metadata/index.js.map +1 -1
- package/dist/api-indexer/metadata/metadata.js +10 -6
- package/dist/api-indexer/metadata/metadata.js.map +1 -1
- package/dist/api-indexer/metadata/metadataIds.js +26 -18
- package/dist/api-indexer/metadata/metadataIds.js.map +1 -1
- package/dist/api-indexer/requests/blockin.js +23 -15
- package/dist/api-indexer/requests/blockin.js.map +1 -1
- package/dist/api-indexer/requests/collections.js +40 -28
- package/dist/api-indexer/requests/collections.js.map +1 -1
- package/dist/api-indexer/requests/index.js +20 -4
- package/dist/api-indexer/requests/index.js.map +1 -1
- package/dist/api-indexer/requests/maps.js +20 -14
- package/dist/api-indexer/requests/maps.js.map +1 -1
- package/dist/api-indexer/requests/requests.js +164 -105
- package/dist/api-indexer/requests/requests.js.map +1 -1
- package/dist/api-indexer/requests/routes.js +5 -1
- package/dist/api-indexer/requests/routes.js.map +1 -1
- package/dist/auth/auth.js +6 -2
- package/dist/auth/auth.js.map +1 -1
- package/dist/auth/index.js +17 -1
- package/dist/auth/index.js.map +1 -1
- package/dist/chain-drivers/BtcDriver.js +6 -3
- package/dist/chain-drivers/BtcDriver.js.map +1 -1
- package/dist/chain-drivers/CosmosDriver.js +9 -6
- package/dist/chain-drivers/CosmosDriver.js.map +1 -1
- package/dist/chain-drivers/EthDriver.js +8 -5
- package/dist/chain-drivers/EthDriver.js.map +1 -1
- package/dist/chain-drivers/SolDriver.js +11 -5
- package/dist/chain-drivers/SolDriver.js.map +1 -1
- package/dist/chain-drivers/verifySig.js +19 -11
- package/dist/chain-drivers/verifySig.js.map +1 -1
- package/dist/common/base.js +26 -14
- package/dist/common/base.js.map +1 -1
- package/dist/common/constants.js +7 -4
- package/dist/common/constants.js.map +1 -1
- package/dist/common/index.js +21 -5
- package/dist/common/index.js.map +1 -1
- package/dist/common/math.js +28 -13
- package/dist/common/math.js.map +1 -1
- package/dist/common/string-numbers.js +11 -4
- package/dist/common/string-numbers.js.map +1 -1
- package/dist/common/typed-arrays.js +5 -1
- package/dist/common/typed-arrays.js.map +1 -1
- package/dist/common/types.js +5 -2
- package/dist/common/types.js.map +1 -1
- package/dist/core/addressLists.js +18 -14
- package/dist/core/addressLists.js.map +1 -1
- package/dist/core/addressLists.spec.js +28 -24
- package/dist/core/addressLists.spec.js.map +1 -1
- package/dist/core/aliases.js +20 -10
- package/dist/core/aliases.js.map +1 -1
- package/dist/core/approval-utils.js +43 -33
- package/dist/core/approval-utils.js.map +1 -1
- package/dist/core/approvals.js +204 -153
- package/dist/core/approvals.js.map +1 -1
- package/dist/core/attestations.js +17 -13
- package/dist/core/attestations.js.map +1 -1
- package/dist/core/balances.js +140 -93
- package/dist/core/balances.js.map +1 -1
- package/dist/core/balances.spec.js +36 -34
- package/dist/core/balances.spec.js.map +1 -1
- package/dist/core/batch-utils.js +19 -14
- package/dist/core/batch-utils.js.map +1 -1
- package/dist/core/batch-utils.spec.js +13 -11
- package/dist/core/batch-utils.spec.js.map +1 -1
- package/dist/core/blockin.d.ts.map +1 -1
- package/dist/core/blockin.js +15 -10
- package/dist/core/blockin.js.map +1 -1
- package/dist/core/coin.js +7 -3
- package/dist/core/coin.js.map +1 -1
- package/dist/core/index.js +33 -17
- package/dist/core/index.js.map +1 -1
- package/dist/core/misc.js +317 -255
- package/dist/core/misc.js.map +1 -1
- package/dist/core/overlaps.js +70 -58
- package/dist/core/overlaps.js.map +1 -1
- package/dist/core/permission-utils.js +26 -22
- package/dist/core/permission-utils.js.map +1 -1
- package/dist/core/permissions.js +211 -171
- package/dist/core/permissions.js.map +1 -1
- package/dist/core/secrets.js +12 -7
- package/dist/core/secrets.js.map +1 -1
- package/dist/core/timelines.js +31 -17
- package/dist/core/timelines.js.map +1 -1
- package/dist/core/transfers.js +104 -69
- package/dist/core/transfers.js.map +1 -1
- package/dist/core/transfers.spec.js +17 -15
- package/dist/core/transfers.spec.js.map +1 -1
- package/dist/core/uintRanges.js +53 -25
- package/dist/core/uintRanges.js.map +1 -1
- package/dist/core/uintRanges.spec.js +12 -10
- package/dist/core/uintRanges.spec.js.map +1 -1
- package/dist/core/userBalances.js +51 -23
- package/dist/core/userBalances.js.map +1 -1
- package/dist/core/validate-utils.js +38 -33
- package/dist/core/validate-utils.js.map +1 -1
- package/dist/index.js +23 -7
- package/dist/index.js.map +1 -1
- package/dist/interfaces/badges/approvals.js +2 -1
- package/dist/interfaces/badges/core.js +2 -1
- package/dist/interfaces/badges/index.js +20 -4
- package/dist/interfaces/badges/index.js.map +1 -1
- package/dist/interfaces/badges/permissions.js +2 -1
- package/dist/interfaces/badges/userBalances.js +2 -1
- package/dist/interfaces/index.js +18 -2
- package/dist/interfaces/index.js.map +1 -1
- package/dist/node-rest-api/account.js +5 -1
- package/dist/node-rest-api/account.js.map +1 -1
- package/dist/node-rest-api/balances.js +5 -1
- package/dist/node-rest-api/balances.js.map +1 -1
- package/dist/node-rest-api/broadcast.js +9 -4
- package/dist/node-rest-api/broadcast.js.map +1 -1
- package/dist/node-rest-api/gov.js +9 -4
- package/dist/node-rest-api/gov.js.map +1 -1
- package/dist/node-rest-api/ibc.js +5 -1
- package/dist/node-rest-api/ibc.js.map +1 -1
- package/dist/node-rest-api/index.js +22 -6
- package/dist/node-rest-api/index.js.map +1 -1
- package/dist/node-rest-api/staking.js +11 -4
- package/dist/node-rest-api/staking.js.map +1 -1
- package/dist/proto/amino/amino_pb.js +9 -6
- package/dist/proto/amino/amino_pb.js.map +1 -1
- package/dist/proto/anchor/genesis_pb.js +14 -10
- package/dist/proto/anchor/genesis_pb.js.map +1 -1
- package/dist/proto/anchor/index.js +21 -5
- package/dist/proto/anchor/index.js.map +1 -1
- package/dist/proto/anchor/packet_pb.js +16 -11
- package/dist/proto/anchor/packet_pb.js.map +1 -1
- package/dist/proto/anchor/params_pb.js +10 -6
- package/dist/proto/anchor/params_pb.js.map +1 -1
- package/dist/proto/anchor/query_pb.js +32 -25
- package/dist/proto/anchor/query_pb.js.map +1 -1
- package/dist/proto/anchor/tx_pb.js +28 -21
- package/dist/proto/anchor/tx_pb.js.map +1 -1
- package/dist/proto/badges/address_lists_pb.js +10 -6
- package/dist/proto/badges/address_lists_pb.js.map +1 -1
- package/dist/proto/badges/balances_pb.js +22 -16
- package/dist/proto/badges/balances_pb.js.map +1 -1
- package/dist/proto/badges/collections_pb.js +23 -19
- package/dist/proto/badges/collections_pb.js.map +1 -1
- package/dist/proto/badges/genesis_pb.js +19 -15
- package/dist/proto/badges/genesis_pb.js.map +1 -1
- package/dist/proto/badges/index.js +29 -13
- package/dist/proto/badges/index.js.map +1 -1
- package/dist/proto/badges/legacytx_pb.js +164 -142
- package/dist/proto/badges/legacytx_pb.js.map +1 -1
- package/dist/proto/badges/metadata_pb.js +24 -18
- package/dist/proto/badges/metadata_pb.js.map +1 -1
- package/dist/proto/badges/packet_pb.js +16 -11
- package/dist/proto/badges/packet_pb.js.map +1 -1
- package/dist/proto/badges/params_pb.js +10 -6
- package/dist/proto/badges/params_pb.js.map +1 -1
- package/dist/proto/badges/permissions_pb.js +87 -75
- package/dist/proto/badges/permissions_pb.js.map +1 -1
- package/dist/proto/badges/query_pb.js +85 -70
- package/dist/proto/badges/query_pb.js.map +1 -1
- package/dist/proto/badges/timelines_pb.js +65 -54
- package/dist/proto/badges/timelines_pb.js.map +1 -1
- package/dist/proto/badges/transfers_pb.js +158 -133
- package/dist/proto/badges/transfers_pb.js.map +1 -1
- package/dist/proto/badges/tx_pb.js +148 -128
- package/dist/proto/badges/tx_pb.js.map +1 -1
- package/dist/proto/bitcoin/index.js +17 -1
- package/dist/proto/bitcoin/index.js.map +1 -1
- package/dist/proto/bitcoin/web3_pb.js +11 -7
- package/dist/proto/bitcoin/web3_pb.js.map +1 -1
- package/dist/proto/cosmos/app/index.js +28 -2
- package/dist/proto/cosmos/app/index.js.map +1 -1
- package/dist/proto/cosmos/app/runtime/index.js +27 -1
- package/dist/proto/cosmos/app/runtime/index.js.map +1 -1
- package/dist/proto/cosmos/app/runtime/v1alpha1/index.js +17 -1
- package/dist/proto/cosmos/app/runtime/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/app/runtime/v1alpha1/module_pb.js +16 -11
- package/dist/proto/cosmos/app/runtime/v1alpha1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/app/v1alpha1/config_pb.js +23 -17
- package/dist/proto/cosmos/app/v1alpha1/config_pb.js.map +1 -1
- package/dist/proto/cosmos/app/v1alpha1/index.js +19 -3
- package/dist/proto/cosmos/app/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/app/v1alpha1/module_pb.js +23 -17
- package/dist/proto/cosmos/app/v1alpha1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/app/v1alpha1/query_pb.js +18 -13
- package/dist/proto/cosmos/app/v1alpha1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/index.js +28 -2
- package/dist/proto/cosmos/auth/index.js.map +1 -1
- package/dist/proto/cosmos/auth/module/index.js +27 -1
- package/dist/proto/cosmos/auth/module/index.js.map +1 -1
- package/dist/proto/cosmos/auth/module/v1/index.js +17 -1
- package/dist/proto/cosmos/auth/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/auth/module/v1/module_pb.js +16 -11
- package/dist/proto/cosmos/auth/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/auth_pb.js +36 -29
- package/dist/proto/cosmos/auth/v1beta1/auth_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/genesis_pb.js +13 -9
- package/dist/proto/cosmos/auth/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/auth/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/query_pb.js +136 -113
- package/dist/proto/cosmos/auth/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/auth/v1beta1/tx_pb.js +18 -13
- package/dist/proto/cosmos/auth/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/index.js +28 -2
- package/dist/proto/cosmos/authz/index.js.map +1 -1
- package/dist/proto/cosmos/authz/module/index.js +27 -1
- package/dist/proto/cosmos/authz/module/index.js.map +1 -1
- package/dist/proto/cosmos/authz/module/v1/index.js +17 -1
- package/dist/proto/cosmos/authz/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/authz/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/authz/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/authz_pb.js +32 -25
- package/dist/proto/cosmos/authz/v1beta1/authz_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/event_pb.js +16 -11
- package/dist/proto/cosmos/authz/v1beta1/event_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/genesis_pb.js +12 -8
- package/dist/proto/cosmos/authz/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/index.js +21 -5
- package/dist/proto/cosmos/authz/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/query_pb.js +51 -42
- package/dist/proto/cosmos/authz/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/authz/v1beta1/tx_pb.js +43 -34
- package/dist/proto/cosmos/authz/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/autocli/index.js +27 -1
- package/dist/proto/cosmos/autocli/index.js.map +1 -1
- package/dist/proto/cosmos/autocli/v1/index.js +18 -2
- package/dist/proto/cosmos/autocli/v1/index.js.map +1 -1
- package/dist/proto/cosmos/autocli/v1/options_pb.js +34 -26
- package/dist/proto/cosmos/autocli/v1/options_pb.js.map +1 -1
- package/dist/proto/cosmos/autocli/v1/query_pb.js +18 -13
- package/dist/proto/cosmos/autocli/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/index.js +28 -2
- package/dist/proto/cosmos/bank/index.js.map +1 -1
- package/dist/proto/cosmos/bank/module/index.js +27 -1
- package/dist/proto/cosmos/bank/module/index.js.map +1 -1
- package/dist/proto/cosmos/bank/module/v1/index.js +17 -1
- package/dist/proto/cosmos/bank/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/bank/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/bank/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/authz_pb.js +12 -8
- package/dist/proto/cosmos/bank/v1beta1/authz_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/bank_pb.js +50 -40
- package/dist/proto/cosmos/bank/v1beta1/bank_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/genesis_pb.js +23 -18
- package/dist/proto/cosmos/bank/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/index.js +21 -5
- package/dist/proto/cosmos/bank/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/query_pb.js +168 -142
- package/dist/proto/cosmos/bank/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/bank/v1beta1/tx_pb.js +59 -48
- package/dist/proto/cosmos/bank/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/base/abci/index.js +27 -1
- package/dist/proto/cosmos/base/abci/index.js.map +1 -1
- package/dist/proto/cosmos/base/abci/v1beta1/abci_pb.js +80 -67
- package/dist/proto/cosmos/base/abci/v1beta1/abci_pb.js.map +1 -1
- package/dist/proto/cosmos/base/abci/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/abci/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/index.js +35 -9
- package/dist/proto/cosmos/base/index.js.map +1 -1
- package/dist/proto/cosmos/base/kv/index.js +27 -1
- package/dist/proto/cosmos/base/kv/index.js.map +1 -1
- package/dist/proto/cosmos/base/kv/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/kv/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/kv/v1beta1/kv_pb.js +16 -11
- package/dist/proto/cosmos/base/kv/v1beta1/kv_pb.js.map +1 -1
- package/dist/proto/cosmos/base/node/index.js +27 -1
- package/dist/proto/cosmos/base/node/index.js.map +1 -1
- package/dist/proto/cosmos/base/node/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/node/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/node/v1beta1/query_pb.js +16 -11
- package/dist/proto/cosmos/base/node/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/base/query/index.js +27 -1
- package/dist/proto/cosmos/base/query/index.js.map +1 -1
- package/dist/proto/cosmos/base/query/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/query/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/query/v1beta1/pagination_pb.js +19 -14
- package/dist/proto/cosmos/base/query/v1beta1/pagination_pb.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/index.js +28 -2
- package/dist/proto/cosmos/base/reflection/index.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/reflection/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/v1beta1/reflection_pb.js +28 -21
- package/dist/proto/cosmos/base/reflection/v1beta1/reflection_pb.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/v2alpha1/index.js +17 -1
- package/dist/proto/cosmos/base/reflection/v2alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/base/reflection/v2alpha1/reflection_pb.js +160 -131
- package/dist/proto/cosmos/base/reflection/v2alpha1/reflection_pb.js.map +1 -1
- package/dist/proto/cosmos/base/snapshots/index.js +27 -1
- package/dist/proto/cosmos/base/snapshots/index.js.map +1 -1
- package/dist/proto/cosmos/base/snapshots/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/snapshots/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.js +60 -48
- package/dist/proto/cosmos/base/snapshots/v1beta1/snapshot_pb.js.map +1 -1
- package/dist/proto/cosmos/base/store/index.js +27 -1
- package/dist/proto/cosmos/base/store/index.js.map +1 -1
- package/dist/proto/cosmos/base/store/v1beta1/commit_info_pb.js +25 -19
- package/dist/proto/cosmos/base/store/v1beta1/commit_info_pb.js.map +1 -1
- package/dist/proto/cosmos/base/store/v1beta1/index.js +19 -3
- package/dist/proto/cosmos/base/store/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/store/v1beta1/listening_pb.js +30 -24
- package/dist/proto/cosmos/base/store/v1beta1/listening_pb.js.map +1 -1
- package/dist/proto/cosmos/base/store/v1beta1/snapshot_pb.js +23 -17
- package/dist/proto/cosmos/base/store/v1beta1/snapshot_pb.js.map +1 -1
- package/dist/proto/cosmos/base/tendermint/index.js +27 -1
- package/dist/proto/cosmos/base/tendermint/index.js.map +1 -1
- package/dist/proto/cosmos/base/tendermint/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/base/tendermint/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/base/tendermint/v1beta1/query_pb.js +144 -122
- package/dist/proto/cosmos/base/tendermint/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/base/tendermint/v1beta1/types_pb.js +26 -21
- package/dist/proto/cosmos/base/tendermint/v1beta1/types_pb.js.map +1 -1
- package/dist/proto/cosmos/base/v1beta1/coin_pb.js +28 -21
- package/dist/proto/cosmos/base/v1beta1/coin_pb.js.map +1 -1
- package/dist/proto/cosmos/base/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/base/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/capability/index.js +28 -2
- package/dist/proto/cosmos/capability/index.js.map +1 -1
- package/dist/proto/cosmos/capability/module/index.js +27 -1
- package/dist/proto/cosmos/capability/module/index.js.map +1 -1
- package/dist/proto/cosmos/capability/module/v1/index.js +17 -1
- package/dist/proto/cosmos/capability/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/capability/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/capability/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/capability/v1beta1/capability_pb.js +23 -17
- package/dist/proto/cosmos/capability/v1beta1/capability_pb.js.map +1 -1
- package/dist/proto/cosmos/capability/v1beta1/genesis_pb.js +20 -15
- package/dist/proto/cosmos/capability/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/capability/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/capability/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/index.js +28 -2
- package/dist/proto/cosmos/consensus/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/module/index.js +27 -1
- package/dist/proto/cosmos/consensus/module/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/module/v1/index.js +17 -1
- package/dist/proto/cosmos/consensus/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/consensus/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/consensus/v1/index.js +18 -2
- package/dist/proto/cosmos/consensus/v1/index.js.map +1 -1
- package/dist/proto/cosmos/consensus/v1/query_pb.js +18 -13
- package/dist/proto/cosmos/consensus/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/consensus/v1/tx_pb.js +20 -15
- package/dist/proto/cosmos/consensus/v1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/crisis/index.js +28 -2
- package/dist/proto/cosmos/crisis/index.js.map +1 -1
- package/dist/proto/cosmos/crisis/module/index.js +27 -1
- package/dist/proto/cosmos/crisis/module/index.js.map +1 -1
- package/dist/proto/cosmos/crisis/module/v1/index.js +17 -1
- package/dist/proto/cosmos/crisis/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/crisis/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/crisis/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/crisis/v1beta1/genesis_pb.js +12 -8
- package/dist/proto/cosmos/crisis/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/crisis/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/crisis/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/crisis/v1beta1/tx_pb.js +30 -23
- package/dist/proto/cosmos/crisis/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/ed25519/index.js +17 -1
- package/dist/proto/cosmos/crypto/ed25519/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/ed25519/keys_pb.js +16 -11
- package/dist/proto/cosmos/crypto/ed25519/keys_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/hd/index.js +27 -1
- package/dist/proto/cosmos/crypto/hd/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/hd/v1/hd_pb.js +10 -6
- package/dist/proto/cosmos/crypto/hd/v1/hd_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/hd/v1/index.js +17 -1
- package/dist/proto/cosmos/crypto/hd/v1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/index.js +32 -6
- package/dist/proto/cosmos/crypto/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/keyring/index.js +27 -1
- package/dist/proto/cosmos/crypto/keyring/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/keyring/v1/index.js +17 -1
- package/dist/proto/cosmos/crypto/keyring/v1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/keyring/v1/record_pb.js +38 -30
- package/dist/proto/cosmos/crypto/keyring/v1/record_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/multisig/index.js +31 -2
- package/dist/proto/cosmos/crypto/multisig/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/multisig/keys_pb.js +11 -7
- package/dist/proto/cosmos/crypto/multisig/keys_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/multisig/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/crypto/multisig/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.js +16 -11
- package/dist/proto/cosmos/crypto/multisig/v1beta1/multisig_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/secp256k1/index.js +17 -1
- package/dist/proto/cosmos/crypto/secp256k1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/secp256k1/keys_pb.js +16 -11
- package/dist/proto/cosmos/crypto/secp256k1/keys_pb.js.map +1 -1
- package/dist/proto/cosmos/crypto/secp256r1/index.js +17 -1
- package/dist/proto/cosmos/crypto/secp256r1/index.js.map +1 -1
- package/dist/proto/cosmos/crypto/secp256r1/keys_pb.js +16 -11
- package/dist/proto/cosmos/crypto/secp256r1/keys_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/index.js +28 -2
- package/dist/proto/cosmos/distribution/index.js.map +1 -1
- package/dist/proto/cosmos/distribution/module/index.js +27 -1
- package/dist/proto/cosmos/distribution/module/index.js.map +1 -1
- package/dist/proto/cosmos/distribution/module/v1/index.js +17 -1
- package/dist/proto/cosmos/distribution/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/distribution/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/distribution/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/distribution_pb.js +88 -73
- package/dist/proto/cosmos/distribution/v1beta1/distribution_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/genesis_pb.js +65 -54
- package/dist/proto/cosmos/distribution/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/distribution/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/query_pb.js +141 -118
- package/dist/proto/cosmos/distribution/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/distribution/v1beta1/tx_pb.js +83 -68
- package/dist/proto/cosmos/distribution/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/index.js +28 -2
- package/dist/proto/cosmos/evidence/index.js.map +1 -1
- package/dist/proto/cosmos/evidence/module/index.js +27 -1
- package/dist/proto/cosmos/evidence/module/index.js.map +1 -1
- package/dist/proto/cosmos/evidence/module/v1/index.js +17 -1
- package/dist/proto/cosmos/evidence/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/evidence/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/evidence/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/evidence_pb.js +13 -9
- package/dist/proto/cosmos/evidence/v1beta1/evidence_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/genesis_pb.js +11 -7
- package/dist/proto/cosmos/evidence/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/evidence/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/query_pb.js +33 -26
- package/dist/proto/cosmos/evidence/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/evidence/v1beta1/tx_pb.js +17 -12
- package/dist/proto/cosmos/evidence/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/index.js +28 -2
- package/dist/proto/cosmos/feegrant/index.js.map +1 -1
- package/dist/proto/cosmos/feegrant/module/index.js +27 -1
- package/dist/proto/cosmos/feegrant/module/index.js.map +1 -1
- package/dist/proto/cosmos/feegrant/module/v1/index.js +17 -1
- package/dist/proto/cosmos/feegrant/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/feegrant/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/feegrant/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/feegrant_pb.js +37 -30
- package/dist/proto/cosmos/feegrant/v1beta1/feegrant_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/genesis_pb.js +12 -8
- package/dist/proto/cosmos/feegrant/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/feegrant/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/query_pb.js +49 -40
- package/dist/proto/cosmos/feegrant/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/feegrant/v1beta1/tx_pb.js +29 -22
- package/dist/proto/cosmos/feegrant/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/genutil/index.js +28 -2
- package/dist/proto/cosmos/genutil/index.js.map +1 -1
- package/dist/proto/cosmos/genutil/module/index.js +27 -1
- package/dist/proto/cosmos/genutil/module/index.js.map +1 -1
- package/dist/proto/cosmos/genutil/module/v1/index.js +17 -1
- package/dist/proto/cosmos/genutil/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/genutil/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/genutil/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/genutil/v1beta1/genesis_pb.js +10 -6
- package/dist/proto/cosmos/genutil/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/genutil/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/genutil/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/gov/index.js +29 -3
- package/dist/proto/cosmos/gov/index.js.map +1 -1
- package/dist/proto/cosmos/gov/module/index.js +27 -1
- package/dist/proto/cosmos/gov/module/index.js.map +1 -1
- package/dist/proto/cosmos/gov/module/v1/index.js +17 -1
- package/dist/proto/cosmos/gov/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/gov/module/v1/module_pb.js +11 -7
- package/dist/proto/cosmos/gov/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/genesis_pb.js +19 -15
- package/dist/proto/cosmos/gov/v1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/gov_pb.js +83 -71
- package/dist/proto/cosmos/gov/v1/gov_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/index.js +20 -4
- package/dist/proto/cosmos/gov/v1/index.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/query_pb.js +127 -108
- package/dist/proto/cosmos/gov/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1/tx_pb.js +90 -75
- package/dist/proto/cosmos/gov/v1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/genesis_pb.js +18 -14
- package/dist/proto/cosmos/gov/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/gov_pb.js +81 -69
- package/dist/proto/cosmos/gov/v1beta1/gov_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/gov/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/query_pb.js +126 -107
- package/dist/proto/cosmos/gov/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/gov/v1beta1/tx_pb.js +64 -53
- package/dist/proto/cosmos/gov/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/group/index.js +28 -2
- package/dist/proto/cosmos/group/index.js.map +1 -1
- package/dist/proto/cosmos/group/module/index.js +27 -1
- package/dist/proto/cosmos/group/module/index.js.map +1 -1
- package/dist/proto/cosmos/group/module/v1/index.js +17 -1
- package/dist/proto/cosmos/group/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/group/module/v1/module_pb.js +12 -8
- package/dist/proto/cosmos/group/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/events_pb.js +78 -65
- package/dist/proto/cosmos/group/v1/events_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/genesis_pb.js +19 -15
- package/dist/proto/cosmos/group/v1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/index.js +21 -5
- package/dist/proto/cosmos/group/v1/index.js.map +1 -1
- package/dist/proto/cosmos/group/v1/query_pb.js +213 -182
- package/dist/proto/cosmos/group/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/tx_pb.js +200 -169
- package/dist/proto/cosmos/group/v1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/group/v1/types_pb.js +101 -87
- package/dist/proto/cosmos/group/v1/types_pb.js.map +1 -1
- package/dist/proto/cosmos/index.js +52 -26
- package/dist/proto/cosmos/index.js.map +1 -1
- package/dist/proto/cosmos/mint/index.js +28 -2
- package/dist/proto/cosmos/mint/index.js.map +1 -1
- package/dist/proto/cosmos/mint/module/index.js +27 -1
- package/dist/proto/cosmos/mint/module/index.js.map +1 -1
- package/dist/proto/cosmos/mint/module/v1/index.js +17 -1
- package/dist/proto/cosmos/mint/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/mint/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/mint/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/genesis_pb.js +13 -9
- package/dist/proto/cosmos/mint/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/mint/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/mint_pb.js +17 -12
- package/dist/proto/cosmos/mint/v1beta1/mint_pb.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/query_pb.js +42 -33
- package/dist/proto/cosmos/mint/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/mint/v1beta1/tx_pb.js +18 -13
- package/dist/proto/cosmos/mint/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/msg/v1/msg_pb.js +6 -3
- package/dist/proto/cosmos/msg/v1/msg_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/index.js +28 -2
- package/dist/proto/cosmos/nft/index.js.map +1 -1
- package/dist/proto/cosmos/nft/module/index.js +27 -1
- package/dist/proto/cosmos/nft/module/index.js.map +1 -1
- package/dist/proto/cosmos/nft/module/v1/index.js +17 -1
- package/dist/proto/cosmos/nft/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/nft/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/nft/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/event_pb.js +22 -16
- package/dist/proto/cosmos/nft/v1beta1/event_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/genesis_pb.js +19 -14
- package/dist/proto/cosmos/nft/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/index.js +21 -5
- package/dist/proto/cosmos/nft/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/nft_pb.js +18 -13
- package/dist/proto/cosmos/nft/v1beta1/nft_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/query_pb.js +100 -83
- package/dist/proto/cosmos/nft/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/nft/v1beta1/tx_pb.js +16 -11
- package/dist/proto/cosmos/nft/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/orm/index.js +30 -4
- package/dist/proto/cosmos/orm/index.js.map +1 -1
- package/dist/proto/cosmos/orm/module/index.js +27 -1
- package/dist/proto/cosmos/orm/module/index.js.map +1 -1
- package/dist/proto/cosmos/orm/module/v1alpha1/index.js +17 -1
- package/dist/proto/cosmos/orm/module/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/orm/module/v1alpha1/module_pb.js +10 -6
- package/dist/proto/cosmos/orm/module/v1alpha1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/orm/query/index.js +27 -1
- package/dist/proto/cosmos/orm/query/index.js.map +1 -1
- package/dist/proto/cosmos/orm/query/v1alpha1/index.js +17 -1
- package/dist/proto/cosmos/orm/query/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/orm/query/v1alpha1/query_pb.js +53 -43
- package/dist/proto/cosmos/orm/query/v1alpha1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/orm/v1/index.js +17 -1
- package/dist/proto/cosmos/orm/v1/index.js.map +1 -1
- package/dist/proto/cosmos/orm/v1/orm_pb.js +30 -23
- package/dist/proto/cosmos/orm/v1/orm_pb.js.map +1 -1
- package/dist/proto/cosmos/orm/v1alpha1/index.js +17 -1
- package/dist/proto/cosmos/orm/v1alpha1/index.js.map +1 -1
- package/dist/proto/cosmos/orm/v1alpha1/schema_pb.js +21 -16
- package/dist/proto/cosmos/orm/v1alpha1/schema_pb.js.map +1 -1
- package/dist/proto/cosmos/params/index.js +28 -2
- package/dist/proto/cosmos/params/index.js.map +1 -1
- package/dist/proto/cosmos/params/module/index.js +27 -1
- package/dist/proto/cosmos/params/module/index.js.map +1 -1
- package/dist/proto/cosmos/params/module/v1/index.js +17 -1
- package/dist/proto/cosmos/params/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/params/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/params/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/params/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/params/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/params/v1beta1/params_pb.js +16 -11
- package/dist/proto/cosmos/params/v1beta1/params_pb.js.map +1 -1
- package/dist/proto/cosmos/params/v1beta1/query_pb.js +36 -28
- package/dist/proto/cosmos/params/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/query/v1/query_pb.js +5 -2
- package/dist/proto/cosmos/query/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/reflection/index.js +27 -1
- package/dist/proto/cosmos/reflection/index.js.map +1 -1
- package/dist/proto/cosmos/reflection/v1/index.js +17 -1
- package/dist/proto/cosmos/reflection/v1/index.js.map +1 -1
- package/dist/proto/cosmos/reflection/v1/reflection_pb.js +17 -12
- package/dist/proto/cosmos/reflection/v1/reflection_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/index.js +28 -2
- package/dist/proto/cosmos/slashing/index.js.map +1 -1
- package/dist/proto/cosmos/slashing/module/index.js +27 -1
- package/dist/proto/cosmos/slashing/module/index.js.map +1 -1
- package/dist/proto/cosmos/slashing/module/v1/index.js +17 -1
- package/dist/proto/cosmos/slashing/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/slashing/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/slashing/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/genesis_pb.js +32 -25
- package/dist/proto/cosmos/slashing/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/index.js +20 -4
- package/dist/proto/cosmos/slashing/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/query_pb.js +47 -38
- package/dist/proto/cosmos/slashing/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/slashing_pb.js +22 -17
- package/dist/proto/cosmos/slashing/v1beta1/slashing_pb.js.map +1 -1
- package/dist/proto/cosmos/slashing/v1beta1/tx_pb.js +30 -23
- package/dist/proto/cosmos/slashing/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/index.js +28 -2
- package/dist/proto/cosmos/staking/index.js.map +1 -1
- package/dist/proto/cosmos/staking/module/index.js +27 -1
- package/dist/proto/cosmos/staking/module/index.js.map +1 -1
- package/dist/proto/cosmos/staking/module/v1/index.js +17 -1
- package/dist/proto/cosmos/staking/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/staking/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/staking/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/authz_pb.js +22 -17
- package/dist/proto/cosmos/staking/v1beta1/authz_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/genesis_pb.js +23 -18
- package/dist/proto/cosmos/staking/v1beta1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/index.js +21 -5
- package/dist/proto/cosmos/staking/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/query_pb.js +203 -172
- package/dist/proto/cosmos/staking/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/staking_pb.js +157 -133
- package/dist/proto/cosmos/staking/v1beta1/staking_pb.js.map +1 -1
- package/dist/proto/cosmos/staking/v1beta1/tx_pb.js +103 -86
- package/dist/proto/cosmos/staking/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/tx/config/index.js +27 -1
- package/dist/proto/cosmos/tx/config/index.js.map +1 -1
- package/dist/proto/cosmos/tx/config/v1/config_pb.js +10 -6
- package/dist/proto/cosmos/tx/config/v1/config_pb.js.map +1 -1
- package/dist/proto/cosmos/tx/config/v1/index.js +17 -1
- package/dist/proto/cosmos/tx/config/v1/index.js.map +1 -1
- package/dist/proto/cosmos/tx/index.js +29 -3
- package/dist/proto/cosmos/tx/index.js.map +1 -1
- package/dist/proto/cosmos/tx/signing/index.js +27 -1
- package/dist/proto/cosmos/tx/signing/index.js.map +1 -1
- package/dist/proto/cosmos/tx/signing/v1beta1/index.js +17 -1
- package/dist/proto/cosmos/tx/signing/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/tx/signing/v1beta1/signing_pb.js +42 -34
- package/dist/proto/cosmos/tx/signing/v1beta1/signing_pb.js.map +1 -1
- package/dist/proto/cosmos/tx/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/tx/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/tx/v1beta1/service_pb.js +146 -125
- package/dist/proto/cosmos/tx/v1beta1/service_pb.js.map +1 -1
- package/dist/proto/cosmos/tx/v1beta1/tx_pb.js +103 -87
- package/dist/proto/cosmos/tx/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/upgrade/index.js +28 -2
- package/dist/proto/cosmos/upgrade/index.js.map +1 -1
- package/dist/proto/cosmos/upgrade/module/index.js +27 -1
- package/dist/proto/cosmos/upgrade/module/index.js.map +1 -1
- package/dist/proto/cosmos/upgrade/module/v1/index.js +17 -1
- package/dist/proto/cosmos/upgrade/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/upgrade/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/upgrade/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/upgrade/v1beta1/index.js +19 -3
- package/dist/proto/cosmos/upgrade/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/upgrade/v1beta1/query_pb.js +69 -56
- package/dist/proto/cosmos/upgrade/v1beta1/query_pb.js.map +1 -1
- package/dist/proto/cosmos/upgrade/v1beta1/tx_pb.js +30 -23
- package/dist/proto/cosmos/upgrade/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/upgrade/v1beta1/upgrade_pb.js +32 -25
- package/dist/proto/cosmos/upgrade/v1beta1/upgrade_pb.js.map +1 -1
- package/dist/proto/cosmos/vesting/index.js +28 -2
- package/dist/proto/cosmos/vesting/index.js.map +1 -1
- package/dist/proto/cosmos/vesting/module/index.js +27 -1
- package/dist/proto/cosmos/vesting/module/index.js.map +1 -1
- package/dist/proto/cosmos/vesting/module/v1/index.js +17 -1
- package/dist/proto/cosmos/vesting/module/v1/index.js.map +1 -1
- package/dist/proto/cosmos/vesting/module/v1/module_pb.js +10 -6
- package/dist/proto/cosmos/vesting/module/v1/module_pb.js.map +1 -1
- package/dist/proto/cosmos/vesting/v1beta1/index.js +18 -2
- package/dist/proto/cosmos/vesting/v1beta1/index.js.map +1 -1
- package/dist/proto/cosmos/vesting/v1beta1/tx_pb.js +47 -38
- package/dist/proto/cosmos/vesting/v1beta1/tx_pb.js.map +1 -1
- package/dist/proto/cosmos/vesting/v1beta1/vesting_pb.js +51 -42
- package/dist/proto/cosmos/vesting/v1beta1/vesting_pb.js.map +1 -1
- package/dist/proto/cosmos_proto/cosmos_pb.js +25 -20
- package/dist/proto/cosmos_proto/cosmos_pb.js.map +1 -1
- package/dist/proto/cosmos_proto/index.js +17 -1
- package/dist/proto/cosmos_proto/index.js.map +1 -1
- package/dist/proto/cosmwasm/index.js +27 -1
- package/dist/proto/cosmwasm/index.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/index.js +27 -1
- package/dist/proto/cosmwasm/wasm/index.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/authz_pb.js +79 -65
- package/dist/proto/cosmwasm/wasm/v1/authz_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/genesis_pb.js +36 -29
- package/dist/proto/cosmwasm/wasm/v1/genesis_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/ibc_pb.js +25 -19
- package/dist/proto/cosmwasm/wasm/v1/ibc_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/index.js +22 -6
- package/dist/proto/cosmwasm/wasm/v1/index.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/query_pb.js +164 -138
- package/dist/proto/cosmwasm/wasm/v1/query_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/tx_pb.js +233 -195
- package/dist/proto/cosmwasm/wasm/v1/tx_pb.js.map +1 -1
- package/dist/proto/cosmwasm/wasm/v1/types_pb.js +67 -56
- package/dist/proto/cosmwasm/wasm/v1/types_pb.js.map +1 -1
- package/dist/proto/ethereum/ethsecp256k1/index.js +17 -1
- package/dist/proto/ethereum/ethsecp256k1/index.js.map +1 -1
- package/dist/proto/ethereum/ethsecp256k1/keys_pb.js +16 -11
- package/dist/proto/ethereum/ethsecp256k1/keys_pb.js.map +1 -1
- package/dist/proto/ethereum/index.js +31 -2
- package/dist/proto/ethereum/index.js.map +1 -1
- package/dist/proto/ethereum/web3_pb.js +11 -7
- package/dist/proto/ethereum/web3_pb.js.map +1 -1
- package/dist/proto/gogoproto/gogo_pb.js +82 -78
- package/dist/proto/gogoproto/gogo_pb.js.map +1 -1
- package/dist/proto/google/api/annotations_pb.js +6 -3
- package/dist/proto/google/api/annotations_pb.js.map +1 -1
- package/dist/proto/google/api/http_pb.js +22 -16
- package/dist/proto/google/api/http_pb.js.map +1 -1
- package/dist/proto/google/api/httpbody_pb.js +11 -7
- package/dist/proto/google/api/httpbody_pb.js.map +1 -1
- package/dist/proto/google/api/index.js +18 -2
- package/dist/proto/google/api/index.js.map +1 -1
- package/dist/proto/google/index.js +28 -2
- package/dist/proto/google/index.js.map +1 -1
- package/dist/proto/google/protobuf/any_pb.js +10 -6
- package/dist/proto/google/protobuf/any_pb.js.map +1 -1
- package/dist/proto/google/protobuf/descriptor_pb.js +190 -160
- package/dist/proto/google/protobuf/descriptor_pb.js.map +1 -1
- package/dist/proto/google/protobuf/index.js +18 -2
- package/dist/proto/google/protobuf/index.js.map +1 -1
- package/dist/proto/index.js +43 -14
- package/dist/proto/index.js.map +1 -1
- package/dist/proto/maps/balances_pb.js +10 -6
- package/dist/proto/maps/balances_pb.js.map +1 -1
- package/dist/proto/maps/genesis_pb.js +15 -11
- package/dist/proto/maps/genesis_pb.js.map +1 -1
- package/dist/proto/maps/index.js +25 -9
- package/dist/proto/maps/index.js.map +1 -1
- package/dist/proto/maps/metadata_pb.js +10 -6
- package/dist/proto/maps/metadata_pb.js.map +1 -1
- package/dist/proto/maps/packet_pb.js +16 -11
- package/dist/proto/maps/packet_pb.js.map +1 -1
- package/dist/proto/maps/params_pb.js +10 -6
- package/dist/proto/maps/params_pb.js.map +1 -1
- package/dist/proto/maps/permissions_pb.js +22 -17
- package/dist/proto/maps/permissions_pb.js.map +1 -1
- package/dist/proto/maps/query_pb.js +45 -36
- package/dist/proto/maps/query_pb.js.map +1 -1
- package/dist/proto/maps/timelines_pb.js +21 -16
- package/dist/proto/maps/timelines_pb.js.map +1 -1
- package/dist/proto/maps/tx_pb.js +105 -87
- package/dist/proto/maps/tx_pb.js.map +1 -1
- package/dist/proto/proofs_pb.js +94 -78
- package/dist/proto/proofs_pb.js.map +1 -1
- package/dist/proto/protocols/genesis_pb.js +14 -10
- package/dist/proto/protocols/genesis_pb.js.map +1 -1
- package/dist/proto/protocols/index.js +21 -5
- package/dist/proto/protocols/index.js.map +1 -1
- package/dist/proto/protocols/packet_pb.js +16 -11
- package/dist/proto/protocols/packet_pb.js.map +1 -1
- package/dist/proto/protocols/params_pb.js +10 -6
- package/dist/proto/protocols/params_pb.js.map +1 -1
- package/dist/proto/protocols/query_pb.js +44 -35
- package/dist/proto/protocols/query_pb.js.map +1 -1
- package/dist/proto/protocols/tx_pb.js +76 -61
- package/dist/proto/protocols/tx_pb.js.map +1 -1
- package/dist/proto/solana/index.js +17 -1
- package/dist/proto/solana/index.js.map +1 -1
- package/dist/proto/solana/web3_pb.js +11 -7
- package/dist/proto/solana/web3_pb.js.map +1 -1
- package/dist/proto/tendermint/abci/index.js +17 -1
- package/dist/proto/tendermint/abci/index.js.map +1 -1
- package/dist/proto/tendermint/abci/types_pb.js +340 -290
- package/dist/proto/tendermint/abci/types_pb.js.map +1 -1
- package/dist/proto/tendermint/crypto/index.js +18 -2
- package/dist/proto/tendermint/crypto/index.js.map +1 -1
- package/dist/proto/tendermint/crypto/keys_pb.js +10 -6
- package/dist/proto/tendermint/crypto/keys_pb.js.map +1 -1
- package/dist/proto/tendermint/crypto/proof_pb.js +36 -28
- package/dist/proto/tendermint/crypto/proof_pb.js.map +1 -1
- package/dist/proto/tendermint/index.js +32 -6
- package/dist/proto/tendermint/index.js.map +1 -1
- package/dist/proto/tendermint/libs/bits/index.js +17 -1
- package/dist/proto/tendermint/libs/bits/index.js.map +1 -1
- package/dist/proto/tendermint/libs/bits/types_pb.js +11 -7
- package/dist/proto/tendermint/libs/bits/types_pb.js.map +1 -1
- package/dist/proto/tendermint/libs/index.js +27 -1
- package/dist/proto/tendermint/libs/index.js.map +1 -1
- package/dist/proto/tendermint/p2p/index.js +17 -1
- package/dist/proto/tendermint/p2p/index.js.map +1 -1
- package/dist/proto/tendermint/p2p/types_pb.js +31 -24
- package/dist/proto/tendermint/p2p/types_pb.js.map +1 -1
- package/dist/proto/tendermint/types/block_pb.js +16 -12
- package/dist/proto/tendermint/types/block_pb.js.map +1 -1
- package/dist/proto/tendermint/types/evidence_pb.js +40 -33
- package/dist/proto/tendermint/types/evidence_pb.js.map +1 -1
- package/dist/proto/tendermint/types/index.js +21 -5
- package/dist/proto/tendermint/types/index.js.map +1 -1
- package/dist/proto/tendermint/types/params_pb.js +48 -39
- package/dist/proto/tendermint/types/params_pb.js.map +1 -1
- package/dist/proto/tendermint/types/types_pb.js +108 -92
- package/dist/proto/tendermint/types/types_pb.js.map +1 -1
- package/dist/proto/tendermint/types/validator_pb.js +29 -23
- package/dist/proto/tendermint/types/validator_pb.js.map +1 -1
- package/dist/proto/tendermint/version/index.js +17 -1
- package/dist/proto/tendermint/version/index.js.map +1 -1
- package/dist/proto/tendermint/version/types_pb.js +19 -14
- package/dist/proto/tendermint/version/types_pb.js.map +1 -1
- package/dist/proto/wasmx/genesis_pb.js +12 -8
- package/dist/proto/wasmx/genesis_pb.js.map +1 -1
- package/dist/proto/wasmx/index.js +20 -4
- package/dist/proto/wasmx/index.js.map +1 -1
- package/dist/proto/wasmx/query_pb.js +32 -25
- package/dist/proto/wasmx/query_pb.js.map +1 -1
- package/dist/proto/wasmx/tx_pb.js +28 -21
- package/dist/proto/wasmx/tx_pb.js.map +1 -1
- package/dist/proto/wasmx/wasmx_pb.js +13 -9
- package/dist/proto/wasmx/wasmx_pb.js.map +1 -1
- package/dist/transactions/amino/objectConverter.js +20 -10
- package/dist/transactions/amino/objectConverter.js.map +1 -1
- package/dist/transactions/amino/registry.js +63 -53
- package/dist/transactions/amino/registry.js.map +1 -1
- package/dist/transactions/eip712/payload/createDomain.js +12 -9
- package/dist/transactions/eip712/payload/createDomain.js.map +1 -1
- package/dist/transactions/eip712/payload/createTypedData.js +16 -9
- package/dist/transactions/eip712/payload/createTypedData.js.map +1 -1
- package/dist/transactions/eip712/payload/createTypes/index.js +8 -1
- package/dist/transactions/eip712/payload/createTypes/index.js.map +1 -1
- package/dist/transactions/eip712/payload/createTypes/parseMessage.js +14 -11
- package/dist/transactions/eip712/payload/createTypes/parseMessage.js.map +1 -1
- package/dist/transactions/eip712/payload/createTypes/parsePayload.js +18 -11
- package/dist/transactions/eip712/payload/createTypes/parsePayload.js.map +1 -1
- package/dist/transactions/eip712/payload/eip712Types.js +9 -3
- package/dist/transactions/eip712/payload/eip712Types.js.map +1 -1
- package/dist/transactions/eip712/payload/flattenPayload.js +7 -3
- package/dist/transactions/eip712/payload/flattenPayload.js.map +1 -1
- package/dist/transactions/eip712/payload/samples/getSampleMsg.js +237 -228
- package/dist/transactions/eip712/payload/samples/getSampleMsg.js.map +1 -1
- package/dist/transactions/eip712/payload/types.js +2 -1
- package/dist/transactions/index.js +17 -1
- package/dist/transactions/index.js.map +1 -1
- package/dist/transactions/messages/base.js +48 -40
- package/dist/transactions/messages/base.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/index.js +24 -8
- package/dist/transactions/messages/bitbadges/badges/index.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/interfaces.js +2 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.js +33 -6
- package/dist/transactions/messages/bitbadges/badges/msgCreateAddressLists.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.js +60 -33
- package/dist/transactions/messages/bitbadges/badges/msgCreateCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.js +33 -6
- package/dist/transactions/messages/bitbadges/badges/msgDeleteCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.js +36 -9
- package/dist/transactions/messages/bitbadges/badges/msgTransferBadges.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js +60 -33
- package/dist/transactions/messages/bitbadges/badges/msgUniversalUpdateCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.js +57 -30
- package/dist/transactions/messages/bitbadges/badges/msgUpdateCollection.js.map +1 -1
- package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js +42 -15
- package/dist/transactions/messages/bitbadges/badges/msgUpdateUserApprovals.js.map +1 -1
- package/dist/transactions/messages/bitbadges/index.js +19 -3
- package/dist/transactions/messages/bitbadges/index.js.map +1 -1
- package/dist/transactions/messages/bitbadges/maps/index.js +17 -1
- package/dist/transactions/messages/bitbadges/maps/index.js.map +1 -1
- package/dist/transactions/messages/bitbadges/maps/interfaces.js +66 -30
- package/dist/transactions/messages/bitbadges/maps/interfaces.js.map +1 -1
- package/dist/transactions/messages/bitbadges/wasmx/index.js +19 -3
- package/dist/transactions/messages/bitbadges/wasmx/index.js.map +1 -1
- package/dist/transactions/messages/bitbadges/wasmx/interfaces.js +2 -1
- package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js +30 -3
- package/dist/transactions/messages/bitbadges/wasmx/msgExecuteContractCompat.js.map +1 -1
- package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js +30 -3
- package/dist/transactions/messages/bitbadges/wasmx/msgInstantiateContractCompat.js.map +1 -1
- package/dist/transactions/messages/common.js +2 -1
- package/dist/transactions/messages/index.js +19 -3
- package/dist/transactions/messages/index.js.map +1 -1
- package/dist/transactions/messages/signDoc.js +13 -5
- package/dist/transactions/messages/signDoc.js.map +1 -1
- package/dist/transactions/messages/transaction.js +62 -46
- package/dist/transactions/messages/transaction.js.map +1 -1
- package/dist/transactions/messages/txRaw.js +22 -14
- package/dist/transactions/messages/txRaw.js.map +1 -1
- package/dist/transactions/messages/utils.js +7 -3
- package/dist/transactions/messages/utils.js.map +1 -1
- package/dist/transactions/messages/web3Extension.js +41 -9
- package/dist/transactions/messages/web3Extension.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -2
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.BitBadgesAdminAPI = exports.BitBadgesAPI = void 0;
|
|
7
|
+
const BitBadgesCollection_1 = require("./BitBadgesCollection");
|
|
8
|
+
const typia_1 = __importDefault(require("typia"));
|
|
9
|
+
const BitBadgesAddressList_1 = require("./BitBadgesAddressList");
|
|
10
|
+
const BitBadgesUserInfo_1 = require("./BitBadgesUserInfo");
|
|
11
|
+
const base_1 = require("./base");
|
|
12
|
+
const collections_1 = require("./requests/collections");
|
|
13
|
+
const maps_1 = require("./requests/maps");
|
|
14
|
+
const requests_1 = require("./requests/requests");
|
|
15
|
+
const routes_1 = require("./requests/routes");
|
|
16
|
+
class BitBadgesAPI extends base_1.BaseBitBadgesApi {
|
|
11
17
|
constructor(apiDetails) {
|
|
12
18
|
super(apiDetails);
|
|
13
19
|
}
|
|
@@ -19,7 +25,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
19
25
|
return "object" === typeof input && null !== input && true;
|
|
20
26
|
};
|
|
21
27
|
if (false === __is(input)) {
|
|
22
|
-
const $report =
|
|
28
|
+
const $report = typia_1.default.validate.report(errors);
|
|
23
29
|
((input, _path, _exceptionable = true) => {
|
|
24
30
|
const $vo0 = (input, _path, _exceptionable = true) => true;
|
|
25
31
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
@@ -43,8 +49,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
43
49
|
if (!validateRes.success) {
|
|
44
50
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
45
51
|
}
|
|
46
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetStatusRoute()}`);
|
|
47
|
-
return new GetStatusSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
52
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetStatusRoute()}`);
|
|
53
|
+
return new requests_1.GetStatusSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
48
54
|
}
|
|
49
55
|
catch (error) {
|
|
50
56
|
await this.handleApiError(error);
|
|
@@ -60,7 +66,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
60
66
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
61
67
|
};
|
|
62
68
|
if (false === __is(input)) {
|
|
63
|
-
const $report =
|
|
69
|
+
const $report = typia_1.default.validate.report(errors);
|
|
64
70
|
((input, _path, _exceptionable = true) => {
|
|
65
71
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.noCollections || "boolean" === typeof input.noCollections || $report(_exceptionable, {
|
|
66
72
|
path: _path + ".noCollections",
|
|
@@ -104,8 +110,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
104
110
|
if (!validateRes.success) {
|
|
105
111
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
106
112
|
}
|
|
107
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SearchRoute(searchValue)}`, payload);
|
|
108
|
-
return new GetSearchSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
113
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SearchRoute(searchValue)}`, payload);
|
|
114
|
+
return new requests_1.GetSearchSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
109
115
|
}
|
|
110
116
|
catch (error) {
|
|
111
117
|
await this.handleApiError(error);
|
|
@@ -113,19 +119,19 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
113
119
|
}
|
|
114
120
|
}
|
|
115
121
|
async getCollections(payload) {
|
|
116
|
-
return await BitBadgesCollection.GetCollections(this, payload);
|
|
122
|
+
return await BitBadgesCollection_1.BitBadgesCollection.GetCollections(this, payload);
|
|
117
123
|
}
|
|
118
124
|
async getOwnersForBadge(collectionId, badgeId, payload) {
|
|
119
|
-
return await BitBadgesCollection.GetOwnersForBadge(this, collectionId, badgeId, payload);
|
|
125
|
+
return await BitBadgesCollection_1.BitBadgesCollection.GetOwnersForBadge(this, collectionId, badgeId, payload);
|
|
120
126
|
}
|
|
121
127
|
async getBadgeBalanceByAddress(collectionId, address, payload) {
|
|
122
|
-
return await BitBadgesCollection.GetBadgeBalanceByAddress(this, collectionId, address, payload);
|
|
128
|
+
return await BitBadgesCollection_1.BitBadgesCollection.GetBadgeBalanceByAddress(this, collectionId, address, payload);
|
|
123
129
|
}
|
|
124
130
|
async getBadgeActivity(collectionId, badgeId, payload) {
|
|
125
|
-
return await BitBadgesCollection.GetBadgeActivity(this, collectionId, badgeId, payload);
|
|
131
|
+
return await BitBadgesCollection_1.BitBadgesCollection.GetBadgeActivity(this, collectionId, badgeId, payload);
|
|
126
132
|
}
|
|
127
133
|
async refreshMetadata(collectionId, payload) {
|
|
128
|
-
return await BitBadgesCollection.RefreshMetadata(this, collectionId, payload);
|
|
134
|
+
return await BitBadgesCollection_1.BitBadgesCollection.RefreshMetadata(this, collectionId, payload);
|
|
129
135
|
}
|
|
130
136
|
async completeClaim(claimId, cosmosAddress, payload) {
|
|
131
137
|
try {
|
|
@@ -143,9 +149,9 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
143
149
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
144
150
|
};
|
|
145
151
|
if (false === __is(input)) {
|
|
146
|
-
const $report =
|
|
152
|
+
const $report = typia_1.default.validate.report(errors);
|
|
147
153
|
((input, _path, _exceptionable = true) => {
|
|
148
|
-
const $join =
|
|
154
|
+
const $join = typia_1.default.validate.join;
|
|
149
155
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input._fetchedAt || "number" === typeof input._fetchedAt || $report(_exceptionable, {
|
|
150
156
|
path: _path + "._fetchedAt",
|
|
151
157
|
expected: "(number | undefined)",
|
|
@@ -182,8 +188,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
182
188
|
if (!claimId) {
|
|
183
189
|
throw new Error('claimId is required');
|
|
184
190
|
}
|
|
185
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CompleteClaimRoute(claimId, cosmosAddress)}`, payload);
|
|
186
|
-
return new CompleteClaimSuccessResponse(response.data);
|
|
191
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CompleteClaimRoute(claimId, cosmosAddress)}`, payload);
|
|
192
|
+
return new requests_1.CompleteClaimSuccessResponse(response.data);
|
|
187
193
|
}
|
|
188
194
|
catch (error) {
|
|
189
195
|
await this.handleApiError(error);
|
|
@@ -206,9 +212,9 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
206
212
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
207
213
|
};
|
|
208
214
|
if (false === __is(input)) {
|
|
209
|
-
const $report =
|
|
215
|
+
const $report = typia_1.default.validate.report(errors);
|
|
210
216
|
((input, _path, _exceptionable = true) => {
|
|
211
|
-
const $join =
|
|
217
|
+
const $join = typia_1.default.validate.join;
|
|
212
218
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input._fetchedAt || "number" === typeof input._fetchedAt || $report(_exceptionable, {
|
|
213
219
|
path: _path + "._fetchedAt",
|
|
214
220
|
expected: "(number | undefined)",
|
|
@@ -257,8 +263,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
257
263
|
if (!claimId) {
|
|
258
264
|
throw new Error('claimId is required');
|
|
259
265
|
}
|
|
260
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SimulateClaimRoute(claimId, cosmosAddress)}`, payload);
|
|
261
|
-
return new SimulateClaimSuccessResponse(response.data);
|
|
266
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SimulateClaimRoute(claimId, cosmosAddress)}`, payload);
|
|
267
|
+
return new requests_1.SimulateClaimSuccessResponse(response.data);
|
|
262
268
|
}
|
|
263
269
|
catch (error) {
|
|
264
270
|
await this.handleApiError(error);
|
|
@@ -273,7 +279,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
273
279
|
return "object" === typeof input && null !== input && true;
|
|
274
280
|
};
|
|
275
281
|
if (false === __is(input)) {
|
|
276
|
-
const $report =
|
|
282
|
+
const $report = typia_1.default.validate.report(errors);
|
|
277
283
|
((input, _path, _exceptionable = true) => {
|
|
278
284
|
const $vo0 = (input, _path, _exceptionable = true) => true;
|
|
279
285
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
@@ -300,8 +306,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
300
306
|
if (!claimId) {
|
|
301
307
|
throw new Error('claimId is required');
|
|
302
308
|
}
|
|
303
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetReservedClaimCodesRoute(claimId, cosmosAddress)}`, payload);
|
|
304
|
-
return new GetReservedClaimCodesSuccessResponse(response.data);
|
|
309
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetReservedClaimCodesRoute(claimId, cosmosAddress)}`, payload);
|
|
310
|
+
return new requests_1.GetReservedClaimCodesSuccessResponse(response.data);
|
|
305
311
|
}
|
|
306
312
|
catch (error) {
|
|
307
313
|
await this.handleApiError(error);
|
|
@@ -316,7 +322,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
316
322
|
};
|
|
317
323
|
if (false === __is(input))
|
|
318
324
|
((input, _path, _exceptionable = true) => {
|
|
319
|
-
const $guard =
|
|
325
|
+
const $guard = typia_1.default.assert.guard;
|
|
320
326
|
return "string" === typeof input || $guard(true, {
|
|
321
327
|
path: _path + "",
|
|
322
328
|
expected: "string",
|
|
@@ -328,8 +334,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
328
334
|
if (!claimAttemptId) {
|
|
329
335
|
throw new Error('claimAttemptId is required');
|
|
330
336
|
}
|
|
331
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetClaimAttemptStatusRoute(claimAttemptId)}`);
|
|
332
|
-
return new GetClaimAttemptStatusSuccessResponse(response.data);
|
|
337
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetClaimAttemptStatusRoute(claimAttemptId)}`);
|
|
338
|
+
return new requests_1.GetClaimAttemptStatusSuccessResponse(response.data);
|
|
333
339
|
}
|
|
334
340
|
catch (error) {
|
|
335
341
|
await this.handleApiError(error);
|
|
@@ -344,7 +350,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
344
350
|
return "object" === typeof input && null !== input && "string" === typeof input.reviewId;
|
|
345
351
|
};
|
|
346
352
|
if (false === __is(input)) {
|
|
347
|
-
const $report =
|
|
353
|
+
const $report = typia_1.default.validate.report(errors);
|
|
348
354
|
((input, _path, _exceptionable = true) => {
|
|
349
355
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.reviewId || $report(_exceptionable, {
|
|
350
356
|
path: _path + ".reviewId",
|
|
@@ -372,10 +378,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
372
378
|
if (!validateRes.success) {
|
|
373
379
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
374
380
|
}
|
|
375
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.DeleteReviewRoute(reviewId)}`, {
|
|
381
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.DeleteReviewRoute(reviewId)}`, {
|
|
376
382
|
data: payload
|
|
377
383
|
});
|
|
378
|
-
return new DeleteReviewSuccessResponse(response.data);
|
|
384
|
+
return new requests_1.DeleteReviewSuccessResponse(response.data);
|
|
379
385
|
}
|
|
380
386
|
catch (error) {
|
|
381
387
|
await this.handleApiError(error);
|
|
@@ -391,7 +397,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
391
397
|
return "object" === typeof input && null !== input && $io0(input);
|
|
392
398
|
};
|
|
393
399
|
if (false === __is(input)) {
|
|
394
|
-
const $report =
|
|
400
|
+
const $report = typia_1.default.validate.report(errors);
|
|
395
401
|
((input, _path, _exceptionable = true) => {
|
|
396
402
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.review || $report(_exceptionable, {
|
|
397
403
|
path: _path + ".review",
|
|
@@ -431,8 +437,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
431
437
|
if (!validateRes.success) {
|
|
432
438
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
433
439
|
}
|
|
434
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddReviewRoute()}`, payload);
|
|
435
|
-
return new AddReviewSuccessResponse(response.data);
|
|
440
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddReviewRoute()}`, payload);
|
|
441
|
+
return new requests_1.AddReviewSuccessResponse(response.data);
|
|
436
442
|
}
|
|
437
443
|
catch (error) {
|
|
438
444
|
await this.handleApiError(error);
|
|
@@ -440,7 +446,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
440
446
|
}
|
|
441
447
|
}
|
|
442
448
|
async getAccounts(payload) {
|
|
443
|
-
return await BitBadgesUserInfo.GetAccounts(this, payload);
|
|
449
|
+
return await BitBadgesUserInfo_1.BitBadgesUserInfo.GetAccounts(this, payload);
|
|
444
450
|
}
|
|
445
451
|
async updateAccountInfo(payload) {
|
|
446
452
|
try {
|
|
@@ -474,7 +480,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
474
480
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
475
481
|
};
|
|
476
482
|
if (false === __is(input)) {
|
|
477
|
-
const $report =
|
|
483
|
+
const $report = typia_1.default.validate.report(errors);
|
|
478
484
|
((input, _path, _exceptionable = true) => {
|
|
479
485
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.discord || "string" === typeof input.discord || $report(_exceptionable, {
|
|
480
486
|
path: _path + ".discord",
|
|
@@ -1117,8 +1123,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1117
1123
|
if (!validateRes.success) {
|
|
1118
1124
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
1119
1125
|
}
|
|
1120
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.UpdateAccountInfoRoute()}`, payload);
|
|
1121
|
-
return new UpdateAccountInfoSuccessResponse(response.data);
|
|
1126
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.UpdateAccountInfoRoute()}`, payload);
|
|
1127
|
+
return new requests_1.UpdateAccountInfoSuccessResponse(response.data);
|
|
1122
1128
|
}
|
|
1123
1129
|
catch (error) {
|
|
1124
1130
|
await this.handleApiError(error);
|
|
@@ -1134,7 +1140,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1134
1140
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1135
1141
|
};
|
|
1136
1142
|
if (false === __is(input)) {
|
|
1137
|
-
const $report =
|
|
1143
|
+
const $report = typia_1.default.validate.report(errors);
|
|
1138
1144
|
((input, _path, _exceptionable = true) => {
|
|
1139
1145
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.validateAccessTokens || "boolean" === typeof input.validateAccessTokens || $report(_exceptionable, {
|
|
1140
1146
|
path: _path + ".validateAccessTokens",
|
|
@@ -1162,8 +1168,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1162
1168
|
if (!validateRes.success) {
|
|
1163
1169
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
1164
1170
|
}
|
|
1165
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CheckIfSignedInRoute()}`, payload);
|
|
1166
|
-
return new CheckSignInStatusSuccessResponse(response.data);
|
|
1171
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CheckIfSignedInRoute()}`, payload);
|
|
1172
|
+
return new requests_1.CheckSignInStatusSuccessResponse(response.data);
|
|
1167
1173
|
}
|
|
1168
1174
|
catch (error) {
|
|
1169
1175
|
await this.handleApiError(error);
|
|
@@ -1178,7 +1184,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1178
1184
|
return "object" === typeof input && null !== input && true;
|
|
1179
1185
|
};
|
|
1180
1186
|
if (false === __is(input)) {
|
|
1181
|
-
const $report =
|
|
1187
|
+
const $report = typia_1.default.validate.report(errors);
|
|
1182
1188
|
((input, _path, _exceptionable = true) => {
|
|
1183
1189
|
const $vo0 = (input, _path, _exceptionable = true) => true;
|
|
1184
1190
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
@@ -1202,8 +1208,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1202
1208
|
if (!validateRes.success) {
|
|
1203
1209
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
1204
1210
|
}
|
|
1205
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetBrowseCollectionsRoute()}`, payload);
|
|
1206
|
-
return new GetBrowseCollectionsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
1211
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetBrowseCollectionsRoute()}`, payload);
|
|
1212
|
+
return new requests_1.GetBrowseCollectionsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
1207
1213
|
}
|
|
1208
1214
|
catch (error) {
|
|
1209
1215
|
await this.handleApiError(error);
|
|
@@ -1212,8 +1218,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1212
1218
|
}
|
|
1213
1219
|
async broadcastTx(payload) {
|
|
1214
1220
|
try {
|
|
1215
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.BroadcastTxRoute()}`, payload);
|
|
1216
|
-
return new BroadcastTxSuccessResponse(response.data);
|
|
1221
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.BroadcastTxRoute()}`, payload);
|
|
1222
|
+
return new requests_1.BroadcastTxSuccessResponse(response.data);
|
|
1217
1223
|
}
|
|
1218
1224
|
catch (error) {
|
|
1219
1225
|
await this.handleApiError(error);
|
|
@@ -1222,8 +1228,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1222
1228
|
}
|
|
1223
1229
|
async simulateTx(payload) {
|
|
1224
1230
|
try {
|
|
1225
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SimulateTxRoute()}`, payload);
|
|
1226
|
-
return new SimulateTxSuccessResponse(response.data);
|
|
1231
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SimulateTxRoute()}`, payload);
|
|
1232
|
+
return new requests_1.SimulateTxSuccessResponse(response.data);
|
|
1227
1233
|
}
|
|
1228
1234
|
catch (error) {
|
|
1229
1235
|
await this.handleApiError(error);
|
|
@@ -1231,16 +1237,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1231
1237
|
}
|
|
1232
1238
|
}
|
|
1233
1239
|
async createAddressLists(payload) {
|
|
1234
|
-
return await BitBadgesAddressList.CreateAddressList(this, payload);
|
|
1240
|
+
return await BitBadgesAddressList_1.BitBadgesAddressList.CreateAddressList(this, payload);
|
|
1235
1241
|
}
|
|
1236
1242
|
async updateAddressLists(payload) {
|
|
1237
|
-
return await BitBadgesAddressList.UpdateAddressList(this, payload);
|
|
1243
|
+
return await BitBadgesAddressList_1.BitBadgesAddressList.UpdateAddressList(this, payload);
|
|
1238
1244
|
}
|
|
1239
1245
|
async getAddressLists(payload) {
|
|
1240
|
-
return await BitBadgesAddressList.GetAddressLists(this, payload);
|
|
1246
|
+
return await BitBadgesAddressList_1.BitBadgesAddressList.GetAddressLists(this, payload);
|
|
1241
1247
|
}
|
|
1242
1248
|
async deleteAddressLists(payload) {
|
|
1243
|
-
return await BitBadgesAddressList.DeleteAddressList(this, payload);
|
|
1249
|
+
return await BitBadgesAddressList_1.BitBadgesAddressList.DeleteAddressList(this, payload);
|
|
1244
1250
|
}
|
|
1245
1251
|
async exchangeSIWBBAuthorizationCode(payload) {
|
|
1246
1252
|
try {
|
|
@@ -1268,7 +1274,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1268
1274
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
1269
1275
|
};
|
|
1270
1276
|
if (false === __is(input)) {
|
|
1271
|
-
const $report =
|
|
1277
|
+
const $report = typia_1.default.validate.report(errors);
|
|
1272
1278
|
((input, _path, _exceptionable = true) => {
|
|
1273
1279
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.code || "string" === typeof input.code || $report(_exceptionable, {
|
|
1274
1280
|
path: _path + ".code",
|
|
@@ -1501,8 +1507,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1501
1507
|
if (!validateRes.success) {
|
|
1502
1508
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
1503
1509
|
}
|
|
1504
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.ExchangeSIWBBAuthorizationCodesRoute()}`, payload);
|
|
1505
|
-
return new ExchangeSIWBBAuthorizationCodeSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
1510
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.ExchangeSIWBBAuthorizationCodesRoute()}`, payload);
|
|
1511
|
+
return new requests_1.ExchangeSIWBBAuthorizationCodeSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
1506
1512
|
}
|
|
1507
1513
|
catch (error) {
|
|
1508
1514
|
await this.handleApiError(error);
|
|
@@ -1518,7 +1524,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1518
1524
|
return "object" === typeof input && null !== input && $io0(input);
|
|
1519
1525
|
};
|
|
1520
1526
|
if (false === __is(input)) {
|
|
1521
|
-
const $report =
|
|
1527
|
+
const $report = typia_1.default.validate.report(errors);
|
|
1522
1528
|
((input, _path, _exceptionable = true) => {
|
|
1523
1529
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.bookmark || "string" === typeof input.bookmark || $report(_exceptionable, {
|
|
1524
1530
|
path: _path + ".bookmark",
|
|
@@ -1550,8 +1556,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1550
1556
|
if (!validateRes.success) {
|
|
1551
1557
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
1552
1558
|
}
|
|
1553
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetSIWBBRequestsForDeveloperAppRoute()}`, payload);
|
|
1554
|
-
return new GetSIWBBRequestsForDeveloperAppSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
1559
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetSIWBBRequestsForDeveloperAppRoute()}`, payload);
|
|
1560
|
+
return new requests_1.GetSIWBBRequestsForDeveloperAppSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
1555
1561
|
}
|
|
1556
1562
|
catch (error) {
|
|
1557
1563
|
await this.handleApiError(error);
|
|
@@ -1590,7 +1596,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
1590
1596
|
return "object" === typeof input && null !== input && $io0(input);
|
|
1591
1597
|
};
|
|
1592
1598
|
if (false === __is(input)) {
|
|
1593
|
-
const $report =
|
|
1599
|
+
const $report = typia_1.default.validate.report(errors);
|
|
1594
1600
|
((input, _path, _exceptionable = true) => {
|
|
1595
1601
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.response_type || $report(_exceptionable, {
|
|
1596
1602
|
path: _path + ".response_type",
|
|
@@ -2013,8 +2019,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2013
2019
|
if (!validateRes.success) {
|
|
2014
2020
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2015
2021
|
}
|
|
2016
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDSIWBBRequestRoute()}`, payload);
|
|
2017
|
-
return new CreateSIWBBRequestSuccessResponse(response.data);
|
|
2022
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDSIWBBRequestRoute()}`, payload);
|
|
2023
|
+
return new requests_1.CreateSIWBBRequestSuccessResponse(response.data);
|
|
2018
2024
|
}
|
|
2019
2025
|
catch (error) {
|
|
2020
2026
|
await this.handleApiError(error);
|
|
@@ -2029,7 +2035,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2029
2035
|
return "object" === typeof input && null !== input && "string" === typeof input.code;
|
|
2030
2036
|
};
|
|
2031
2037
|
if (false === __is(input)) {
|
|
2032
|
-
const $report =
|
|
2038
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2033
2039
|
((input, _path, _exceptionable = true) => {
|
|
2034
2040
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
|
|
2035
2041
|
path: _path + ".code",
|
|
@@ -2057,8 +2063,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2057
2063
|
if (!validateRes.success) {
|
|
2058
2064
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2059
2065
|
}
|
|
2060
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.RotateSIWBBRequestRoute()}`, payload);
|
|
2061
|
-
return new RotateSIWBBRequestSuccessResponse(response.data);
|
|
2066
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.RotateSIWBBRequestRoute()}`, payload);
|
|
2067
|
+
return new requests_1.RotateSIWBBRequestSuccessResponse(response.data);
|
|
2062
2068
|
}
|
|
2063
2069
|
catch (error) {
|
|
2064
2070
|
await this.handleApiError(error);
|
|
@@ -2073,7 +2079,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2073
2079
|
return "object" === typeof input && null !== input && "string" === typeof input.code;
|
|
2074
2080
|
};
|
|
2075
2081
|
if (false === __is(input)) {
|
|
2076
|
-
const $report =
|
|
2082
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2077
2083
|
((input, _path, _exceptionable = true) => {
|
|
2078
2084
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
|
|
2079
2085
|
path: _path + ".code",
|
|
@@ -2101,8 +2107,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2101
2107
|
if (!validateRes.success) {
|
|
2102
2108
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2103
2109
|
}
|
|
2104
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDSIWBBRequestRoute()}`, { data: payload });
|
|
2105
|
-
return new DeleteSIWBBRequestSuccessResponse(response.data);
|
|
2110
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDSIWBBRequestRoute()}`, { data: payload });
|
|
2111
|
+
return new requests_1.DeleteSIWBBRequestSuccessResponse(response.data);
|
|
2106
2112
|
}
|
|
2107
2113
|
catch (error) {
|
|
2108
2114
|
await this.handleApiError(error);
|
|
@@ -2142,7 +2148,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2142
2148
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2143
2149
|
};
|
|
2144
2150
|
if (false === __is(input)) {
|
|
2145
|
-
const $report =
|
|
2151
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2146
2152
|
((input, _path, _exceptionable = true) => {
|
|
2147
2153
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.options || ("object" === typeof input.options && null !== input.options && false === Array.isArray(input.options) || $report(_exceptionable, {
|
|
2148
2154
|
path: _path + ".options",
|
|
@@ -2614,8 +2620,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2614
2620
|
if (!validateRes.success) {
|
|
2615
2621
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2616
2622
|
}
|
|
2617
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenericVerifyRoute()}`, payload);
|
|
2618
|
-
return new GenericBlockinVerifySuccessResponse(response.data);
|
|
2623
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenericVerifyRoute()}`, payload);
|
|
2624
|
+
return new requests_1.GenericBlockinVerifySuccessResponse(response.data);
|
|
2619
2625
|
}
|
|
2620
2626
|
catch (error) {
|
|
2621
2627
|
await this.handleApiError(error);
|
|
@@ -2647,7 +2653,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2647
2653
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2648
2654
|
};
|
|
2649
2655
|
if (false === __is(input)) {
|
|
2650
|
-
const $report =
|
|
2656
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2651
2657
|
((input, _path, _exceptionable = true) => {
|
|
2652
2658
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.address || $report(_exceptionable, {
|
|
2653
2659
|
path: _path + ".address",
|
|
@@ -2831,8 +2837,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2831
2837
|
if (!validateRes.success) {
|
|
2832
2838
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2833
2839
|
}
|
|
2834
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenericVerifyAssetsRoute()}`, payload);
|
|
2835
|
-
return new GenericVerifyAssetsSuccessResponse(response.data);
|
|
2840
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenericVerifyAssetsRoute()}`, payload);
|
|
2841
|
+
return new requests_1.GenericVerifyAssetsSuccessResponse(response.data);
|
|
2836
2842
|
}
|
|
2837
2843
|
catch (error) {
|
|
2838
2844
|
await this.handleApiError(error);
|
|
@@ -2849,7 +2855,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2849
2855
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2850
2856
|
};
|
|
2851
2857
|
if (false === __is(input)) {
|
|
2852
|
-
const $report =
|
|
2858
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2853
2859
|
((input, _path, _exceptionable = true) => {
|
|
2854
2860
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimAlerts) || $report(_exceptionable, {
|
|
2855
2861
|
path: _path + ".claimAlerts",
|
|
@@ -2910,8 +2916,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2910
2916
|
if (!validateRes.success) {
|
|
2911
2917
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2912
2918
|
}
|
|
2913
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SendClaimAlertRoute()}`, payload);
|
|
2914
|
-
return new SendClaimAlertsSuccessResponse(response.data);
|
|
2919
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SendClaimAlertRoute()}`, payload);
|
|
2920
|
+
return new requests_1.SendClaimAlertsSuccessResponse(response.data);
|
|
2915
2921
|
}
|
|
2916
2922
|
catch (error) {
|
|
2917
2923
|
await this.handleApiError(error);
|
|
@@ -2927,7 +2933,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2927
2933
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2928
2934
|
};
|
|
2929
2935
|
if (false === __is(input)) {
|
|
2930
|
-
const $report =
|
|
2936
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2931
2937
|
((input, _path, _exceptionable = true) => {
|
|
2932
2938
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
|
|
2933
2939
|
path: _path + ".collectionId",
|
|
@@ -2959,8 +2965,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2959
2965
|
if (!validateRes.success) {
|
|
2960
2966
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2961
2967
|
}
|
|
2962
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetClaimAlertsRoute()}`, payload);
|
|
2963
|
-
return new GetClaimAlertsForCollectionSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
2968
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetClaimAlertsRoute()}`, payload);
|
|
2969
|
+
return new requests_1.GetClaimAlertsForCollectionSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
2964
2970
|
}
|
|
2965
2971
|
catch (error) {
|
|
2966
2972
|
await this.handleApiError(error);
|
|
@@ -2968,7 +2974,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2968
2974
|
}
|
|
2969
2975
|
}
|
|
2970
2976
|
async getRefreshStatus(collectionId) {
|
|
2971
|
-
return await BitBadgesCollection.GetRefreshStatus(this, collectionId);
|
|
2977
|
+
return await BitBadgesCollection_1.BitBadgesCollection.GetRefreshStatus(this, collectionId);
|
|
2972
2978
|
}
|
|
2973
2979
|
async getMaps(payload) {
|
|
2974
2980
|
try {
|
|
@@ -2979,7 +2985,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2979
2985
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2980
2986
|
};
|
|
2981
2987
|
if (false === __is(input)) {
|
|
2982
|
-
const $report =
|
|
2988
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2983
2989
|
((input, _path, _exceptionable = true) => {
|
|
2984
2990
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.mapIds) || $report(_exceptionable, {
|
|
2985
2991
|
path: _path + ".mapIds",
|
|
@@ -3015,8 +3021,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3015
3021
|
if (!validateRes.success) {
|
|
3016
3022
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3017
3023
|
}
|
|
3018
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetMapsRoute()}`, payload);
|
|
3019
|
-
return new GetMapsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3024
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetMapsRoute()}`, payload);
|
|
3025
|
+
return new maps_1.GetMapsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3020
3026
|
}
|
|
3021
3027
|
catch (error) {
|
|
3022
3028
|
await this.handleApiError(error);
|
|
@@ -3033,7 +3039,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3033
3039
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3034
3040
|
};
|
|
3035
3041
|
if (false === __is(input)) {
|
|
3036
|
-
const $report =
|
|
3042
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3037
3043
|
((input, _path, _exceptionable = true) => {
|
|
3038
3044
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.valuesToFetch) || $report(_exceptionable, {
|
|
3039
3045
|
path: _path + ".valuesToFetch",
|
|
@@ -3090,8 +3096,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3090
3096
|
if (!validateRes.success) {
|
|
3091
3097
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3092
3098
|
}
|
|
3093
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetMapValuesRoute()}`, payload);
|
|
3094
|
-
return new GetMapValuesSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3099
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetMapValuesRoute()}`, payload);
|
|
3100
|
+
return new maps_1.GetMapValuesSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3095
3101
|
}
|
|
3096
3102
|
catch (error) {
|
|
3097
3103
|
await this.handleApiError(error);
|
|
@@ -3099,7 +3105,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3099
3105
|
}
|
|
3100
3106
|
}
|
|
3101
3107
|
async filterBadgesInCollection(collectionId, payload) {
|
|
3102
|
-
return await BitBadgesCollection.FilterBadgesInCollection(this, collectionId, payload);
|
|
3108
|
+
return await BitBadgesCollection_1.BitBadgesCollection.FilterBadgesInCollection(this, collectionId, payload);
|
|
3103
3109
|
}
|
|
3104
3110
|
async filterSuggestions(collectionId, payload) {
|
|
3105
3111
|
try {
|
|
@@ -3109,7 +3115,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3109
3115
|
return "object" === typeof input && null !== input && true;
|
|
3110
3116
|
};
|
|
3111
3117
|
if (false === __is(input)) {
|
|
3112
|
-
const $report =
|
|
3118
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3113
3119
|
((input, _path, _exceptionable = true) => {
|
|
3114
3120
|
const $vo0 = (input, _path, _exceptionable = true) => true;
|
|
3115
3121
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
@@ -3133,8 +3139,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3133
3139
|
if (!validateRes.success) {
|
|
3134
3140
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3135
3141
|
}
|
|
3136
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.FilterSuggestionsRoute(collectionId)}`, payload);
|
|
3137
|
-
return new FilterSuggestionsSuccessResponse(response.data);
|
|
3142
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.FilterSuggestionsRoute(collectionId)}`, payload);
|
|
3143
|
+
return new collections_1.FilterSuggestionsSuccessResponse(response.data);
|
|
3138
3144
|
}
|
|
3139
3145
|
catch (error) {
|
|
3140
3146
|
await this.handleApiError(error);
|
|
@@ -3150,7 +3156,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3150
3156
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3151
3157
|
};
|
|
3152
3158
|
if (false === __is(input)) {
|
|
3153
|
-
const $report =
|
|
3159
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3154
3160
|
((input, _path, _exceptionable = true) => {
|
|
3155
3161
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
3156
3162
|
path: _path + ".claimIds",
|
|
@@ -3190,8 +3196,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3190
3196
|
if (!validateRes.success) {
|
|
3191
3197
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3192
3198
|
}
|
|
3193
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetClaimsRoute()}`, payload);
|
|
3194
|
-
return new GetClaimsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3199
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetClaimsRoute()}`, payload);
|
|
3200
|
+
return new requests_1.GetClaimsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3195
3201
|
}
|
|
3196
3202
|
catch (error) {
|
|
3197
3203
|
await this.handleApiError(error);
|
|
@@ -3207,7 +3213,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3207
3213
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
3208
3214
|
};
|
|
3209
3215
|
if (false === __is(input)) {
|
|
3210
|
-
const $report =
|
|
3216
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3211
3217
|
((input, _path, _exceptionable = true) => {
|
|
3212
3218
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.addKey || "string" === typeof input.addKey || $report(_exceptionable, {
|
|
3213
3219
|
path: _path + ".addKey",
|
|
@@ -3239,8 +3245,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3239
3245
|
if (!validateRes.success) {
|
|
3240
3246
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3241
3247
|
}
|
|
3242
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetAttestationsRoute()}`, payload);
|
|
3243
|
-
return new GetAttestationSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3248
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetAttestationsRoute()}`, payload);
|
|
3249
|
+
return new requests_1.GetAttestationSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3244
3250
|
}
|
|
3245
3251
|
catch (error) {
|
|
3246
3252
|
await this.handleApiError(error);
|
|
@@ -3258,7 +3264,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3258
3264
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3259
3265
|
};
|
|
3260
3266
|
if (false === __is(input)) {
|
|
3261
|
-
const $report =
|
|
3267
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3262
3268
|
((input, _path, _exceptionable = true) => {
|
|
3263
3269
|
const $vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
|
|
3264
3270
|
path: _path + ".proofOfIssuance",
|
|
@@ -3364,8 +3370,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3364
3370
|
if (!validateRes.success) {
|
|
3365
3371
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3366
3372
|
}
|
|
3367
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
|
|
3368
|
-
return new CreateAttestationSuccessResponse(response.data);
|
|
3373
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
|
|
3374
|
+
return new requests_1.CreateAttestationSuccessResponse(response.data);
|
|
3369
3375
|
}
|
|
3370
3376
|
catch (error) {
|
|
3371
3377
|
await this.handleApiError(error);
|
|
@@ -3380,7 +3386,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3380
3386
|
return "object" === typeof input && null !== input && "string" === typeof input.attestationId;
|
|
3381
3387
|
};
|
|
3382
3388
|
if (false === __is(input)) {
|
|
3383
|
-
const $report =
|
|
3389
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3384
3390
|
((input, _path, _exceptionable = true) => {
|
|
3385
3391
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.attestationId || $report(_exceptionable, {
|
|
3386
3392
|
path: _path + ".attestationId",
|
|
@@ -3408,10 +3414,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3408
3414
|
if (!validateRes.success) {
|
|
3409
3415
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3410
3416
|
}
|
|
3411
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationRoute()}`, {
|
|
3417
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationRoute()}`, {
|
|
3412
3418
|
data: payload
|
|
3413
3419
|
});
|
|
3414
|
-
return new DeleteAttestationSuccessResponse(response.data);
|
|
3420
|
+
return new requests_1.DeleteAttestationSuccessResponse(response.data);
|
|
3415
3421
|
}
|
|
3416
3422
|
catch (error) {
|
|
3417
3423
|
await this.handleApiError(error);
|
|
@@ -3431,7 +3437,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3431
3437
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
3432
3438
|
};
|
|
3433
3439
|
if (false === __is(input)) {
|
|
3434
|
-
const $report =
|
|
3440
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3435
3441
|
((input, _path, _exceptionable = true) => {
|
|
3436
3442
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.attestationId || "string" === typeof input.attestationId || $report(_exceptionable, {
|
|
3437
3443
|
path: _path + ".attestationId",
|
|
@@ -3599,8 +3605,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3599
3605
|
if (!validateRes.success) {
|
|
3600
3606
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3601
3607
|
}
|
|
3602
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
|
|
3603
|
-
return new UpdateAttestationSuccessResponse(response.data);
|
|
3608
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
|
|
3609
|
+
return new requests_1.UpdateAttestationSuccessResponse(response.data);
|
|
3604
3610
|
}
|
|
3605
3611
|
catch (error) {
|
|
3606
3612
|
await this.handleApiError(error);
|
|
@@ -3613,30 +3619,30 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3613
3619
|
const errors = [];
|
|
3614
3620
|
const __is = input => {
|
|
3615
3621
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
3616
|
-
const $io1 = input =>
|
|
3617
|
-
const $io2 = input =>
|
|
3618
|
-
const $io3 = input =>
|
|
3622
|
+
const $io1 = input => "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io2(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io8(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod) && (undefined === input.listId || "string" === typeof input.listId) && (undefined === input.collectionId || "string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId) && (undefined === input.cid || "string" === typeof input.cid) && (Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io12(elem)));
|
|
3623
|
+
const $io2 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io3(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io6(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
3624
|
+
const $io3 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io4(elem));
|
|
3625
|
+
const $io4 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io5(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io5(elem)));
|
|
3626
|
+
const $io5 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
3627
|
+
const $io6 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io4(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
|
|
3628
|
+
const $io8 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io9(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io10(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io11(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
|
|
3629
|
+
const $io9 = input => Object.keys(input).every(key => {
|
|
3619
3630
|
const value = input[key];
|
|
3620
3631
|
if (undefined === value)
|
|
3621
3632
|
return true;
|
|
3622
3633
|
return "string" === typeof value;
|
|
3623
3634
|
});
|
|
3624
|
-
const $
|
|
3625
|
-
const $
|
|
3626
|
-
const $io6 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io10(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
3627
|
-
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
3628
|
-
const $io8 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io9(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io9(elem)));
|
|
3629
|
-
const $io9 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
3630
|
-
const $io10 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io8(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
|
|
3635
|
+
const $io10 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
3636
|
+
const $io11 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
3631
3637
|
const $io12 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io13(input.metadata)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io14(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true);
|
|
3632
3638
|
const $io13 = input => "string" === typeof input.name && "string" === typeof input.description;
|
|
3633
3639
|
const $io14 = input => true;
|
|
3634
3640
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3635
3641
|
};
|
|
3636
3642
|
if (false === __is(input)) {
|
|
3637
|
-
const $report =
|
|
3643
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3638
3644
|
((input, _path, _exceptionable = true) => {
|
|
3639
|
-
const $join =
|
|
3645
|
+
const $join = typia_1.default.validate.join;
|
|
3640
3646
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
|
|
3641
3647
|
path: _path + ".claims",
|
|
3642
3648
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
@@ -3654,15 +3660,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3654
3660
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
3655
3661
|
value: input.claims
|
|
3656
3662
|
})].every(flag => flag);
|
|
3657
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
|
3658
|
-
path: _path + ".metadata",
|
|
3659
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3660
|
-
value: input.metadata
|
|
3661
|
-
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3662
|
-
path: _path + ".metadata",
|
|
3663
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
3664
|
-
value: input.metadata
|
|
3665
|
-
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
3663
|
+
const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.claimId || $report(_exceptionable, {
|
|
3666
3664
|
path: _path + ".claimId",
|
|
3667
3665
|
expected: "string",
|
|
3668
3666
|
value: input.claimId
|
|
@@ -3670,7 +3668,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3670
3668
|
path: _path + ".balancesToSet",
|
|
3671
3669
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3672
3670
|
value: input.balancesToSet
|
|
3673
|
-
})) && $
|
|
3671
|
+
})) && $vo2(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
3674
3672
|
path: _path + ".balancesToSet",
|
|
3675
3673
|
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
3676
3674
|
value: input.balancesToSet
|
|
@@ -3686,6 +3684,14 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3686
3684
|
path: _path + ".seedCode",
|
|
3687
3685
|
expected: "(string | undefined)",
|
|
3688
3686
|
value: input.seedCode
|
|
3687
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3688
|
+
path: _path + ".metadata",
|
|
3689
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3690
|
+
value: input.metadata
|
|
3691
|
+
})) && $vo8(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
3692
|
+
path: _path + ".metadata",
|
|
3693
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
3694
|
+
value: input.metadata
|
|
3689
3695
|
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3690
3696
|
path: _path + ".assignMethod",
|
|
3691
3697
|
expected: "(string | undefined)",
|
|
@@ -3719,129 +3725,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3719
3725
|
expected: "Array<ManagePluginRequest>",
|
|
3720
3726
|
value: input.plugins
|
|
3721
3727
|
})].every(flag => flag);
|
|
3722
|
-
const $vo2 = (input, _path, _exceptionable = true) => [
|
|
3723
|
-
path: _path + ".name",
|
|
3724
|
-
expected: "string",
|
|
3725
|
-
value: input.name
|
|
3726
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3727
|
-
path: _path + ".description",
|
|
3728
|
-
expected: "string",
|
|
3729
|
-
value: input.description
|
|
3730
|
-
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3731
|
-
path: _path + ".image",
|
|
3732
|
-
expected: "string",
|
|
3733
|
-
value: input.image
|
|
3734
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3735
|
-
path: _path + ".video",
|
|
3736
|
-
expected: "(string | undefined)",
|
|
3737
|
-
value: input.video
|
|
3738
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3739
|
-
path: _path + ".category",
|
|
3740
|
-
expected: "(string | undefined)",
|
|
3741
|
-
value: input.category
|
|
3742
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3743
|
-
path: _path + ".externalUrl",
|
|
3744
|
-
expected: "(string | undefined)",
|
|
3745
|
-
value: input.externalUrl
|
|
3746
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3747
|
-
path: _path + ".tags",
|
|
3748
|
-
expected: "(Array<string> | undefined)",
|
|
3749
|
-
value: input.tags
|
|
3750
|
-
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
3751
|
-
path: _path + ".tags[" + _index3 + "]",
|
|
3752
|
-
expected: "string",
|
|
3753
|
-
value: elem
|
|
3754
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3755
|
-
path: _path + ".tags",
|
|
3756
|
-
expected: "(Array<string> | undefined)",
|
|
3757
|
-
value: input.tags
|
|
3758
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3759
|
-
path: _path + ".socials",
|
|
3760
|
-
expected: "(__type | undefined)",
|
|
3761
|
-
value: input.socials
|
|
3762
|
-
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3763
|
-
path: _path + ".socials",
|
|
3764
|
-
expected: "(__type | undefined)",
|
|
3765
|
-
value: input.socials
|
|
3766
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3767
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3768
|
-
expected: "(__type.o1 | undefined)",
|
|
3769
|
-
value: input.offChainTransferabilityInfo
|
|
3770
|
-
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3771
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
3772
|
-
expected: "(__type.o1 | undefined)",
|
|
3773
|
-
value: input.offChainTransferabilityInfo
|
|
3774
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3775
|
-
path: _path + ".attributes",
|
|
3776
|
-
expected: "(Array<__type> | undefined)",
|
|
3777
|
-
value: input.attributes
|
|
3778
|
-
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3779
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
3780
|
-
expected: "__type.o2",
|
|
3781
|
-
value: elem
|
|
3782
|
-
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3783
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
3784
|
-
expected: "__type.o2",
|
|
3785
|
-
value: elem
|
|
3786
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
3787
|
-
path: _path + ".attributes",
|
|
3788
|
-
expected: "(Array<__type> | undefined)",
|
|
3789
|
-
value: input.attributes
|
|
3790
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3791
|
-
path: _path + ".fetchedAtBlock",
|
|
3792
|
-
expected: "(bigint | number | string | undefined)",
|
|
3793
|
-
value: input.fetchedAtBlock
|
|
3794
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3795
|
-
path: _path + ".fetchedAt",
|
|
3796
|
-
expected: "(bigint | number | string | undefined)",
|
|
3797
|
-
value: input.fetchedAt
|
|
3798
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3799
|
-
path: _path + "._isUpdating",
|
|
3800
|
-
expected: "(boolean | undefined)",
|
|
3801
|
-
value: input._isUpdating
|
|
3802
|
-
})].every(flag => flag);
|
|
3803
|
-
const $vo3 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3804
|
-
const value = input[key];
|
|
3805
|
-
if (undefined === value)
|
|
3806
|
-
return true;
|
|
3807
|
-
return "string" === typeof value || $report(_exceptionable, {
|
|
3808
|
-
path: _path + $join(key),
|
|
3809
|
-
expected: "string",
|
|
3810
|
-
value: value
|
|
3811
|
-
});
|
|
3812
|
-
}).every(flag => flag)].every(flag => flag);
|
|
3813
|
-
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3814
|
-
path: _path + ".host",
|
|
3815
|
-
expected: "string",
|
|
3816
|
-
value: input.host
|
|
3817
|
-
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3818
|
-
path: _path + ".assignMethod",
|
|
3819
|
-
expected: "string",
|
|
3820
|
-
value: input.assignMethod
|
|
3821
|
-
})].every(flag => flag);
|
|
3822
|
-
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
3823
|
-
path: _path + ".type",
|
|
3824
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
3825
|
-
value: input.type
|
|
3826
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3827
|
-
path: _path + ".name",
|
|
3828
|
-
expected: "string",
|
|
3829
|
-
value: input.name
|
|
3830
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3831
|
-
path: _path + ".value",
|
|
3832
|
-
expected: "(boolean | number | string)",
|
|
3833
|
-
value: input.value
|
|
3834
|
-
})].every(flag => flag);
|
|
3835
|
-
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
3728
|
+
const $vo2 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
3836
3729
|
path: _path + ".manualBalances",
|
|
3837
3730
|
expected: "Array<iManualBalances<NumberType>>",
|
|
3838
3731
|
value: input.manualBalances
|
|
3839
|
-
})) && input.manualBalances.map((elem,
|
|
3840
|
-
path: _path + ".manualBalances[" +
|
|
3732
|
+
})) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3733
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
3841
3734
|
expected: "iManualBalances<NumberType>",
|
|
3842
3735
|
value: elem
|
|
3843
|
-
})) && $
|
|
3844
|
-
path: _path + ".manualBalances[" +
|
|
3736
|
+
})) && $vo3(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3737
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
3845
3738
|
expected: "iManualBalances<NumberType>",
|
|
3846
3739
|
value: elem
|
|
3847
3740
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3852,7 +3745,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3852
3745
|
path: _path + ".incrementedBalances",
|
|
3853
3746
|
expected: "iIncrementedBalances<NumberType>",
|
|
3854
3747
|
value: input.incrementedBalances
|
|
3855
|
-
})) && $
|
|
3748
|
+
})) && $vo6(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
3856
3749
|
path: _path + ".incrementedBalances",
|
|
3857
3750
|
expected: "iIncrementedBalances<NumberType>",
|
|
3858
3751
|
value: input.incrementedBalances
|
|
@@ -3860,21 +3753,21 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3860
3753
|
path: _path + ".orderCalculationMethod",
|
|
3861
3754
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3862
3755
|
value: input.orderCalculationMethod
|
|
3863
|
-
})) && $
|
|
3756
|
+
})) && $vo7(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
3864
3757
|
path: _path + ".orderCalculationMethod",
|
|
3865
3758
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
3866
3759
|
value: input.orderCalculationMethod
|
|
3867
3760
|
})].every(flag => flag);
|
|
3868
|
-
const $
|
|
3761
|
+
const $vo3 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
3869
3762
|
path: _path + ".balances",
|
|
3870
3763
|
expected: "Array<iBalance<NumberType>>",
|
|
3871
3764
|
value: input.balances
|
|
3872
|
-
})) && input.balances.map((elem,
|
|
3873
|
-
path: _path + ".balances[" +
|
|
3765
|
+
})) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3766
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
3874
3767
|
expected: "iBalance<NumberType>",
|
|
3875
3768
|
value: elem
|
|
3876
|
-
})) && $
|
|
3877
|
-
path: _path + ".balances[" +
|
|
3769
|
+
})) && $vo4(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3770
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
3878
3771
|
expected: "iBalance<NumberType>",
|
|
3879
3772
|
value: elem
|
|
3880
3773
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3882,7 +3775,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3882
3775
|
expected: "Array<iBalance<NumberType>>",
|
|
3883
3776
|
value: input.balances
|
|
3884
3777
|
})].every(flag => flag);
|
|
3885
|
-
const $
|
|
3778
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
3886
3779
|
path: _path + ".amount",
|
|
3887
3780
|
expected: "(bigint | number | string)",
|
|
3888
3781
|
value: input.amount
|
|
@@ -3890,12 +3783,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3890
3783
|
path: _path + ".badgeIds",
|
|
3891
3784
|
expected: "Array<iUintRange<NumberType>>",
|
|
3892
3785
|
value: input.badgeIds
|
|
3893
|
-
})) && input.badgeIds.map((elem,
|
|
3894
|
-
path: _path + ".badgeIds[" +
|
|
3786
|
+
})) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3787
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
3895
3788
|
expected: "iUintRange<NumberType>",
|
|
3896
3789
|
value: elem
|
|
3897
|
-
})) && $
|
|
3898
|
-
path: _path + ".badgeIds[" +
|
|
3790
|
+
})) && $vo5(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3791
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
3899
3792
|
expected: "iUintRange<NumberType>",
|
|
3900
3793
|
value: elem
|
|
3901
3794
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3906,12 +3799,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3906
3799
|
path: _path + ".ownershipTimes",
|
|
3907
3800
|
expected: "Array<iUintRange<NumberType>>",
|
|
3908
3801
|
value: input.ownershipTimes
|
|
3909
|
-
})) && input.ownershipTimes.map((elem,
|
|
3910
|
-
path: _path + ".ownershipTimes[" +
|
|
3802
|
+
})) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3803
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
3911
3804
|
expected: "iUintRange<NumberType>",
|
|
3912
3805
|
value: elem
|
|
3913
|
-
})) && $
|
|
3914
|
-
path: _path + ".ownershipTimes[" +
|
|
3806
|
+
})) && $vo5(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3807
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
3915
3808
|
expected: "iUintRange<NumberType>",
|
|
3916
3809
|
value: elem
|
|
3917
3810
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3919,7 +3812,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3919
3812
|
expected: "Array<iUintRange<NumberType>>",
|
|
3920
3813
|
value: input.ownershipTimes
|
|
3921
3814
|
})].every(flag => flag);
|
|
3922
|
-
const $
|
|
3815
|
+
const $vo5 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
3923
3816
|
path: _path + ".start",
|
|
3924
3817
|
expected: "(bigint | number | string)",
|
|
3925
3818
|
value: input.start
|
|
@@ -3928,16 +3821,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3928
3821
|
expected: "(bigint | number | string)",
|
|
3929
3822
|
value: input.end
|
|
3930
3823
|
})].every(flag => flag);
|
|
3931
|
-
const $
|
|
3824
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
3932
3825
|
path: _path + ".startBalances",
|
|
3933
3826
|
expected: "Array<iBalance<NumberType>>",
|
|
3934
3827
|
value: input.startBalances
|
|
3935
|
-
})) && input.startBalances.map((elem,
|
|
3936
|
-
path: _path + ".startBalances[" +
|
|
3828
|
+
})) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3829
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
3937
3830
|
expected: "iBalance<NumberType>",
|
|
3938
3831
|
value: elem
|
|
3939
|
-
})) && $
|
|
3940
|
-
path: _path + ".startBalances[" +
|
|
3832
|
+
})) && $vo4(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3833
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
3941
3834
|
expected: "iBalance<NumberType>",
|
|
3942
3835
|
value: elem
|
|
3943
3836
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -3953,7 +3846,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3953
3846
|
expected: "(bigint | number | string)",
|
|
3954
3847
|
value: input.incrementOwnershipTimesBy
|
|
3955
3848
|
})].every(flag => flag);
|
|
3956
|
-
const $
|
|
3849
|
+
const $vo7 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
3957
3850
|
path: _path + ".useOverallNumTransfers",
|
|
3958
3851
|
expected: "boolean",
|
|
3959
3852
|
value: input.useOverallNumTransfers
|
|
@@ -3978,6 +3871,119 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3978
3871
|
expected: "string",
|
|
3979
3872
|
value: input.challengeTrackerId
|
|
3980
3873
|
})].every(flag => flag);
|
|
3874
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
3875
|
+
path: _path + ".name",
|
|
3876
|
+
expected: "string",
|
|
3877
|
+
value: input.name
|
|
3878
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
3879
|
+
path: _path + ".description",
|
|
3880
|
+
expected: "string",
|
|
3881
|
+
value: input.description
|
|
3882
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
3883
|
+
path: _path + ".image",
|
|
3884
|
+
expected: "string",
|
|
3885
|
+
value: input.image
|
|
3886
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
3887
|
+
path: _path + ".video",
|
|
3888
|
+
expected: "(string | undefined)",
|
|
3889
|
+
value: input.video
|
|
3890
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
3891
|
+
path: _path + ".category",
|
|
3892
|
+
expected: "(string | undefined)",
|
|
3893
|
+
value: input.category
|
|
3894
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
3895
|
+
path: _path + ".externalUrl",
|
|
3896
|
+
expected: "(string | undefined)",
|
|
3897
|
+
value: input.externalUrl
|
|
3898
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
3899
|
+
path: _path + ".tags",
|
|
3900
|
+
expected: "(Array<string> | undefined)",
|
|
3901
|
+
value: input.tags
|
|
3902
|
+
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
3903
|
+
path: _path + ".tags[" + _index8 + "]",
|
|
3904
|
+
expected: "string",
|
|
3905
|
+
value: elem
|
|
3906
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3907
|
+
path: _path + ".tags",
|
|
3908
|
+
expected: "(Array<string> | undefined)",
|
|
3909
|
+
value: input.tags
|
|
3910
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
3911
|
+
path: _path + ".socials",
|
|
3912
|
+
expected: "(__type | undefined)",
|
|
3913
|
+
value: input.socials
|
|
3914
|
+
})) && $vo9(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
3915
|
+
path: _path + ".socials",
|
|
3916
|
+
expected: "(__type | undefined)",
|
|
3917
|
+
value: input.socials
|
|
3918
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
3919
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3920
|
+
expected: "(__type.o1 | undefined)",
|
|
3921
|
+
value: input.offChainTransferabilityInfo
|
|
3922
|
+
})) && $vo10(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
3923
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
3924
|
+
expected: "(__type.o1 | undefined)",
|
|
3925
|
+
value: input.offChainTransferabilityInfo
|
|
3926
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
3927
|
+
path: _path + ".attributes",
|
|
3928
|
+
expected: "(Array<__type> | undefined)",
|
|
3929
|
+
value: input.attributes
|
|
3930
|
+
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
3931
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
3932
|
+
expected: "__type.o2",
|
|
3933
|
+
value: elem
|
|
3934
|
+
})) && $vo11(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
3935
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
3936
|
+
expected: "__type.o2",
|
|
3937
|
+
value: elem
|
|
3938
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
3939
|
+
path: _path + ".attributes",
|
|
3940
|
+
expected: "(Array<__type> | undefined)",
|
|
3941
|
+
value: input.attributes
|
|
3942
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
3943
|
+
path: _path + ".fetchedAtBlock",
|
|
3944
|
+
expected: "(bigint | number | string | undefined)",
|
|
3945
|
+
value: input.fetchedAtBlock
|
|
3946
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
3947
|
+
path: _path + ".fetchedAt",
|
|
3948
|
+
expected: "(bigint | number | string | undefined)",
|
|
3949
|
+
value: input.fetchedAt
|
|
3950
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
3951
|
+
path: _path + "._isUpdating",
|
|
3952
|
+
expected: "(boolean | undefined)",
|
|
3953
|
+
value: input._isUpdating
|
|
3954
|
+
})].every(flag => flag);
|
|
3955
|
+
const $vo9 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
3956
|
+
const value = input[key];
|
|
3957
|
+
if (undefined === value)
|
|
3958
|
+
return true;
|
|
3959
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
3960
|
+
path: _path + $join(key),
|
|
3961
|
+
expected: "string",
|
|
3962
|
+
value: value
|
|
3963
|
+
});
|
|
3964
|
+
}).every(flag => flag)].every(flag => flag);
|
|
3965
|
+
const $vo10 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
3966
|
+
path: _path + ".host",
|
|
3967
|
+
expected: "string",
|
|
3968
|
+
value: input.host
|
|
3969
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
3970
|
+
path: _path + ".assignMethod",
|
|
3971
|
+
expected: "string",
|
|
3972
|
+
value: input.assignMethod
|
|
3973
|
+
})].every(flag => flag);
|
|
3974
|
+
const $vo11 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
3975
|
+
path: _path + ".type",
|
|
3976
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
3977
|
+
value: input.type
|
|
3978
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
3979
|
+
path: _path + ".name",
|
|
3980
|
+
expected: "string",
|
|
3981
|
+
value: input.name
|
|
3982
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
3983
|
+
path: _path + ".value",
|
|
3984
|
+
expected: "(boolean | number | string)",
|
|
3985
|
+
value: input.value
|
|
3986
|
+
})].every(flag => flag);
|
|
3981
3987
|
const $vo12 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
3982
3988
|
path: _path + ".metadata",
|
|
3983
3989
|
expected: "(__type.o3 | undefined)",
|
|
@@ -4058,8 +4064,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4058
4064
|
if (!validateRes.success) {
|
|
4059
4065
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4060
4066
|
}
|
|
4061
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
|
|
4062
|
-
return new CreateClaimSuccessResponse(response.data);
|
|
4067
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
|
|
4068
|
+
return new requests_1.CreateClaimSuccessResponse(response.data);
|
|
4063
4069
|
}
|
|
4064
4070
|
catch (error) {
|
|
4065
4071
|
await this.handleApiError(error);
|
|
@@ -4075,7 +4081,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4075
4081
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4076
4082
|
};
|
|
4077
4083
|
if (false === __is(input)) {
|
|
4078
|
-
const $report =
|
|
4084
|
+
const $report = typia_1.default.validate.report(errors);
|
|
4079
4085
|
((input, _path, _exceptionable = true) => {
|
|
4080
4086
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
4081
4087
|
path: _path + ".claimIds",
|
|
@@ -4111,10 +4117,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4111
4117
|
if (!validateRes.success) {
|
|
4112
4118
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4113
4119
|
}
|
|
4114
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDClaimsRoute()}`, {
|
|
4120
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDClaimsRoute()}`, {
|
|
4115
4121
|
data: payload
|
|
4116
4122
|
});
|
|
4117
|
-
return new DeleteClaimSuccessResponse(response.data);
|
|
4123
|
+
return new requests_1.DeleteClaimSuccessResponse(response.data);
|
|
4118
4124
|
}
|
|
4119
4125
|
catch (error) {
|
|
4120
4126
|
await this.handleApiError(error);
|
|
@@ -4127,30 +4133,30 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4127
4133
|
const errors = [];
|
|
4128
4134
|
const __is = input => {
|
|
4129
4135
|
const $io0 = input => Array.isArray(input.claims) && input.claims.every(elem => "object" === typeof elem && null !== elem && $io1(elem));
|
|
4130
|
-
const $io1 = input =>
|
|
4131
|
-
const $io2 = input => "
|
|
4132
|
-
const $io3 = input =>
|
|
4136
|
+
const $io1 = input => Array.isArray(input.plugins) && input.plugins.every(elem => "object" === typeof elem && null !== elem && $io2(elem)) && "string" === typeof input.claimId && (undefined === input.balancesToSet || "object" === typeof input.balancesToSet && null !== input.balancesToSet && $io5(input.balancesToSet)) && (undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution) && (undefined === input.approach || "string" === typeof input.approach) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io11(input.metadata)) && (undefined === input.assignMethod || "string" === typeof input.assignMethod);
|
|
4137
|
+
const $io2 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io3(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io3(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io4(input.metadata));
|
|
4138
|
+
const $io3 = input => true;
|
|
4139
|
+
const $io4 = input => "string" === typeof input.name && "string" === typeof input.description;
|
|
4140
|
+
const $io5 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io6(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io9(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
4141
|
+
const $io6 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io7(elem));
|
|
4142
|
+
const $io7 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io8(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io8(elem)));
|
|
4143
|
+
const $io8 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
4144
|
+
const $io9 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io7(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
|
|
4145
|
+
const $io11 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.video || "string" === typeof input.video) && (undefined === input.category || "string" === typeof input.category) && (undefined === input.externalUrl || "string" === typeof input.externalUrl) && (undefined === input.tags || Array.isArray(input.tags) && input.tags.every(elem => "string" === typeof elem)) && (undefined === input.socials || "object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) && $io12(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io13(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io14(elem))) && (undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock) && (undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt) && (undefined === input._isUpdating || "boolean" === typeof input._isUpdating);
|
|
4146
|
+
const $io12 = input => Object.keys(input).every(key => {
|
|
4133
4147
|
const value = input[key];
|
|
4134
4148
|
if (undefined === value)
|
|
4135
4149
|
return true;
|
|
4136
4150
|
return "string" === typeof value;
|
|
4137
4151
|
});
|
|
4138
|
-
const $
|
|
4139
|
-
const $
|
|
4140
|
-
const $io6 = input => "object" === typeof input.publicState && null !== input.publicState && true && (undefined === input.privateState || "object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) && $io7(input.privateState)) && (undefined === input.resetState || "boolean" === typeof input.resetState) && (undefined === input.newState || "object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) && $io7(input.newState)) && (undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState) && "string" === typeof input.instanceId && "string" === typeof input.pluginId && ("object" === typeof input.publicParams && null !== input.publicParams && true) && ("object" === typeof input.privateParams && null !== input.privateParams && true) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io8(input.metadata));
|
|
4141
|
-
const $io7 = input => true;
|
|
4142
|
-
const $io8 = input => "string" === typeof input.name && "string" === typeof input.description;
|
|
4143
|
-
const $io9 = input => Array.isArray(input.manualBalances) && input.manualBalances.every(elem => "object" === typeof elem && null !== elem && $io10(elem)) && ("object" === typeof input.incrementedBalances && null !== input.incrementedBalances && $io13(input.incrementedBalances)) && ("object" === typeof input.orderCalculationMethod && null !== input.orderCalculationMethod && ("boolean" === typeof input.orderCalculationMethod.useOverallNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerToAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerFromAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.usePerInitiatedByAddressNumTransfers && "boolean" === typeof input.orderCalculationMethod.useMerkleChallengeLeafIndex && "string" === typeof input.orderCalculationMethod.challengeTrackerId));
|
|
4144
|
-
const $io10 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io11(elem));
|
|
4145
|
-
const $io11 = input => ("string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount) && (Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io12(elem))) && (Array.isArray(input.ownershipTimes) && input.ownershipTimes.every(elem => "object" === typeof elem && null !== elem && $io12(elem)));
|
|
4146
|
-
const $io12 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
4147
|
-
const $io13 = input => Array.isArray(input.startBalances) && input.startBalances.every(elem => "object" === typeof elem && null !== elem && $io11(elem)) && ("string" === typeof input.incrementBadgeIdsBy || "number" === typeof input.incrementBadgeIdsBy || "bigint" === typeof input.incrementBadgeIdsBy) && ("string" === typeof input.incrementOwnershipTimesBy || "number" === typeof input.incrementOwnershipTimesBy || "bigint" === typeof input.incrementOwnershipTimesBy);
|
|
4152
|
+
const $io13 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
4153
|
+
const $io14 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
4148
4154
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4149
4155
|
};
|
|
4150
4156
|
if (false === __is(input)) {
|
|
4151
|
-
const $report =
|
|
4157
|
+
const $report = typia_1.default.validate.report(errors);
|
|
4152
4158
|
((input, _path, _exceptionable = true) => {
|
|
4153
|
-
const $join =
|
|
4159
|
+
const $join = typia_1.default.validate.join;
|
|
4154
4160
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
|
|
4155
4161
|
path: _path + ".claims",
|
|
4156
4162
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
@@ -4164,187 +4170,74 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4164
4170
|
expected: "Omit<iClaimDetails<NumberType>, \"seedCode\">",
|
|
4165
4171
|
value: elem
|
|
4166
4172
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
4167
|
-
path: _path + ".claims",
|
|
4168
|
-
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
4169
|
-
value: input.claims
|
|
4170
|
-
})].every(flag => flag);
|
|
4171
|
-
const $vo1 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4172
|
-
path: _path + ".metadata",
|
|
4173
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4174
|
-
value: input.metadata
|
|
4175
|
-
})) && $vo2(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4176
|
-
path: _path + ".metadata",
|
|
4177
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
4178
|
-
value: input.metadata
|
|
4179
|
-
}), (Array.isArray(input.plugins) || $report(_exceptionable, {
|
|
4180
|
-
path: _path + ".plugins",
|
|
4181
|
-
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4182
|
-
value: input.plugins
|
|
4183
|
-
})) && input.plugins.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4184
|
-
path: _path + ".plugins[" + _index2 + "]",
|
|
4185
|
-
expected: "IntegrationPluginDetails<string>",
|
|
4186
|
-
value: elem
|
|
4187
|
-
})) && $vo6(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4188
|
-
path: _path + ".plugins[" + _index2 + "]",
|
|
4189
|
-
expected: "IntegrationPluginDetails<string>",
|
|
4190
|
-
value: elem
|
|
4191
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4192
|
-
path: _path + ".plugins",
|
|
4193
|
-
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4194
|
-
value: input.plugins
|
|
4195
|
-
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
4196
|
-
path: _path + ".claimId",
|
|
4197
|
-
expected: "string",
|
|
4198
|
-
value: input.claimId
|
|
4199
|
-
}), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
|
|
4200
|
-
path: _path + ".balancesToSet",
|
|
4201
|
-
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4202
|
-
value: input.balancesToSet
|
|
4203
|
-
})) && $vo9(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4204
|
-
path: _path + ".balancesToSet",
|
|
4205
|
-
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4206
|
-
value: input.balancesToSet
|
|
4207
|
-
}), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
|
|
4208
|
-
path: _path + ".manualDistribution",
|
|
4209
|
-
expected: "(boolean | undefined)",
|
|
4210
|
-
value: input.manualDistribution
|
|
4211
|
-
}), undefined === input.approach || "string" === typeof input.approach || $report(_exceptionable, {
|
|
4212
|
-
path: _path + ".approach",
|
|
4213
|
-
expected: "(string | undefined)",
|
|
4214
|
-
value: input.approach
|
|
4215
|
-
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4216
|
-
path: _path + ".assignMethod",
|
|
4217
|
-
expected: "(string | undefined)",
|
|
4218
|
-
value: input.assignMethod
|
|
4219
|
-
})].every(flag => flag);
|
|
4220
|
-
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4221
|
-
path: _path + ".name",
|
|
4222
|
-
expected: "string",
|
|
4223
|
-
value: input.name
|
|
4224
|
-
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4225
|
-
path: _path + ".description",
|
|
4226
|
-
expected: "string",
|
|
4227
|
-
value: input.description
|
|
4228
|
-
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4229
|
-
path: _path + ".image",
|
|
4230
|
-
expected: "string",
|
|
4231
|
-
value: input.image
|
|
4232
|
-
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4233
|
-
path: _path + ".video",
|
|
4234
|
-
expected: "(string | undefined)",
|
|
4235
|
-
value: input.video
|
|
4236
|
-
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4237
|
-
path: _path + ".category",
|
|
4238
|
-
expected: "(string | undefined)",
|
|
4239
|
-
value: input.category
|
|
4240
|
-
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4241
|
-
path: _path + ".externalUrl",
|
|
4242
|
-
expected: "(string | undefined)",
|
|
4243
|
-
value: input.externalUrl
|
|
4244
|
-
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4245
|
-
path: _path + ".tags",
|
|
4246
|
-
expected: "(Array<string> | undefined)",
|
|
4247
|
-
value: input.tags
|
|
4248
|
-
})) && input.tags.map((elem, _index3) => "string" === typeof elem || $report(_exceptionable, {
|
|
4249
|
-
path: _path + ".tags[" + _index3 + "]",
|
|
4250
|
-
expected: "string",
|
|
4251
|
-
value: elem
|
|
4252
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4253
|
-
path: _path + ".tags",
|
|
4254
|
-
expected: "(Array<string> | undefined)",
|
|
4255
|
-
value: input.tags
|
|
4256
|
-
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4257
|
-
path: _path + ".socials",
|
|
4258
|
-
expected: "(__type | undefined)",
|
|
4259
|
-
value: input.socials
|
|
4260
|
-
})) && $vo3(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4261
|
-
path: _path + ".socials",
|
|
4262
|
-
expected: "(__type | undefined)",
|
|
4263
|
-
value: input.socials
|
|
4264
|
-
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4265
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4266
|
-
expected: "(__type.o1 | undefined)",
|
|
4267
|
-
value: input.offChainTransferabilityInfo
|
|
4268
|
-
})) && $vo4(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4269
|
-
path: _path + ".offChainTransferabilityInfo",
|
|
4270
|
-
expected: "(__type.o1 | undefined)",
|
|
4271
|
-
value: input.offChainTransferabilityInfo
|
|
4272
|
-
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4273
|
-
path: _path + ".attributes",
|
|
4274
|
-
expected: "(Array<__type> | undefined)",
|
|
4275
|
-
value: input.attributes
|
|
4276
|
-
})) && input.attributes.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4277
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
4278
|
-
expected: "__type.o2",
|
|
4279
|
-
value: elem
|
|
4280
|
-
})) && $vo5(elem, _path + ".attributes[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4281
|
-
path: _path + ".attributes[" + _index4 + "]",
|
|
4282
|
-
expected: "__type.o2",
|
|
4283
|
-
value: elem
|
|
4284
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
4285
|
-
path: _path + ".attributes",
|
|
4286
|
-
expected: "(Array<__type> | undefined)",
|
|
4287
|
-
value: input.attributes
|
|
4288
|
-
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4289
|
-
path: _path + ".fetchedAtBlock",
|
|
4290
|
-
expected: "(bigint | number | string | undefined)",
|
|
4291
|
-
value: input.fetchedAtBlock
|
|
4292
|
-
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4293
|
-
path: _path + ".fetchedAt",
|
|
4294
|
-
expected: "(bigint | number | string | undefined)",
|
|
4295
|
-
value: input.fetchedAt
|
|
4296
|
-
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4297
|
-
path: _path + "._isUpdating",
|
|
4298
|
-
expected: "(boolean | undefined)",
|
|
4299
|
-
value: input._isUpdating
|
|
4173
|
+
path: _path + ".claims",
|
|
4174
|
+
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
4175
|
+
value: input.claims
|
|
4300
4176
|
})].every(flag => flag);
|
|
4301
|
-
const $
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4177
|
+
const $vo1 = (input, _path, _exceptionable = true) => [(Array.isArray(input.plugins) || $report(_exceptionable, {
|
|
4178
|
+
path: _path + ".plugins",
|
|
4179
|
+
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4180
|
+
value: input.plugins
|
|
4181
|
+
})) && input.plugins.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4182
|
+
path: _path + ".plugins[" + _index2 + "]",
|
|
4183
|
+
expected: "IntegrationPluginDetails<string>",
|
|
4184
|
+
value: elem
|
|
4185
|
+
})) && $vo2(elem, _path + ".plugins[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4186
|
+
path: _path + ".plugins[" + _index2 + "]",
|
|
4187
|
+
expected: "IntegrationPluginDetails<string>",
|
|
4188
|
+
value: elem
|
|
4189
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4190
|
+
path: _path + ".plugins",
|
|
4191
|
+
expected: "Array<IntegrationPluginDetails<string>>",
|
|
4192
|
+
value: input.plugins
|
|
4193
|
+
}), "string" === typeof input.claimId || $report(_exceptionable, {
|
|
4194
|
+
path: _path + ".claimId",
|
|
4313
4195
|
expected: "string",
|
|
4314
|
-
value: input.
|
|
4315
|
-
}), "
|
|
4196
|
+
value: input.claimId
|
|
4197
|
+
}), undefined === input.balancesToSet || ("object" === typeof input.balancesToSet && null !== input.balancesToSet || $report(_exceptionable, {
|
|
4198
|
+
path: _path + ".balancesToSet",
|
|
4199
|
+
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4200
|
+
value: input.balancesToSet
|
|
4201
|
+
})) && $vo5(input.balancesToSet, _path + ".balancesToSet", true && _exceptionable) || $report(_exceptionable, {
|
|
4202
|
+
path: _path + ".balancesToSet",
|
|
4203
|
+
expected: "(iPredeterminedBalances<NumberType> | undefined)",
|
|
4204
|
+
value: input.balancesToSet
|
|
4205
|
+
}), undefined === input.manualDistribution || "boolean" === typeof input.manualDistribution || $report(_exceptionable, {
|
|
4206
|
+
path: _path + ".manualDistribution",
|
|
4207
|
+
expected: "(boolean | undefined)",
|
|
4208
|
+
value: input.manualDistribution
|
|
4209
|
+
}), undefined === input.approach || "string" === typeof input.approach || $report(_exceptionable, {
|
|
4210
|
+
path: _path + ".approach",
|
|
4211
|
+
expected: "(string | undefined)",
|
|
4212
|
+
value: input.approach
|
|
4213
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4214
|
+
path: _path + ".metadata",
|
|
4215
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4216
|
+
value: input.metadata
|
|
4217
|
+
})) && $vo11(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4218
|
+
path: _path + ".metadata",
|
|
4219
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
4220
|
+
value: input.metadata
|
|
4221
|
+
}), undefined === input.assignMethod || "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4316
4222
|
path: _path + ".assignMethod",
|
|
4317
|
-
expected: "string",
|
|
4223
|
+
expected: "(string | undefined)",
|
|
4318
4224
|
value: input.assignMethod
|
|
4319
4225
|
})].every(flag => flag);
|
|
4320
|
-
const $
|
|
4321
|
-
path: _path + ".type",
|
|
4322
|
-
expected: "(\"date\" | \"url\" | undefined)",
|
|
4323
|
-
value: input.type
|
|
4324
|
-
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4325
|
-
path: _path + ".name",
|
|
4326
|
-
expected: "string",
|
|
4327
|
-
value: input.name
|
|
4328
|
-
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4329
|
-
path: _path + ".value",
|
|
4330
|
-
expected: "(boolean | number | string)",
|
|
4331
|
-
value: input.value
|
|
4332
|
-
})].every(flag => flag);
|
|
4333
|
-
const $vo6 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
|
|
4226
|
+
const $vo2 = (input, _path, _exceptionable = true) => [("object" === typeof input.publicState && null !== input.publicState && false === Array.isArray(input.publicState) || $report(_exceptionable, {
|
|
4334
4227
|
path: _path + ".publicState",
|
|
4335
|
-
expected: "__type
|
|
4228
|
+
expected: "__type",
|
|
4336
4229
|
value: input.publicState
|
|
4337
|
-
})) && $
|
|
4230
|
+
})) && $vo3(input.publicState, _path + ".publicState", true && _exceptionable) || $report(_exceptionable, {
|
|
4338
4231
|
path: _path + ".publicState",
|
|
4339
|
-
expected: "__type
|
|
4232
|
+
expected: "__type",
|
|
4340
4233
|
value: input.publicState
|
|
4341
4234
|
}), undefined === input.privateState || ("object" === typeof input.privateState && null !== input.privateState && false === Array.isArray(input.privateState) || $report(_exceptionable, {
|
|
4342
4235
|
path: _path + ".privateState",
|
|
4343
|
-
expected: "(__type
|
|
4236
|
+
expected: "(__type | undefined)",
|
|
4344
4237
|
value: input.privateState
|
|
4345
|
-
})) && $
|
|
4238
|
+
})) && $vo3(input.privateState, _path + ".privateState", true && _exceptionable) || $report(_exceptionable, {
|
|
4346
4239
|
path: _path + ".privateState",
|
|
4347
|
-
expected: "(__type
|
|
4240
|
+
expected: "(__type | undefined)",
|
|
4348
4241
|
value: input.privateState
|
|
4349
4242
|
}), undefined === input.resetState || "boolean" === typeof input.resetState || $report(_exceptionable, {
|
|
4350
4243
|
path: _path + ".resetState",
|
|
@@ -4352,11 +4245,11 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4352
4245
|
value: input.resetState
|
|
4353
4246
|
}), undefined === input.newState || ("object" === typeof input.newState && null !== input.newState && false === Array.isArray(input.newState) || $report(_exceptionable, {
|
|
4354
4247
|
path: _path + ".newState",
|
|
4355
|
-
expected: "(__type
|
|
4248
|
+
expected: "(__type | undefined)",
|
|
4356
4249
|
value: input.newState
|
|
4357
|
-
})) && $
|
|
4250
|
+
})) && $vo3(input.newState, _path + ".newState", true && _exceptionable) || $report(_exceptionable, {
|
|
4358
4251
|
path: _path + ".newState",
|
|
4359
|
-
expected: "(__type
|
|
4252
|
+
expected: "(__type | undefined)",
|
|
4360
4253
|
value: input.newState
|
|
4361
4254
|
}), undefined === input.onlyUpdateProvidedNewState || "boolean" === typeof input.onlyUpdateProvidedNewState || $report(_exceptionable, {
|
|
4362
4255
|
path: _path + ".onlyUpdateProvidedNewState",
|
|
@@ -4372,31 +4265,31 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4372
4265
|
value: input.pluginId
|
|
4373
4266
|
}), ("object" === typeof input.publicParams && null !== input.publicParams && false === Array.isArray(input.publicParams) || $report(_exceptionable, {
|
|
4374
4267
|
path: _path + ".publicParams",
|
|
4375
|
-
expected: "__type
|
|
4268
|
+
expected: "__type",
|
|
4376
4269
|
value: input.publicParams
|
|
4377
|
-
})) && $
|
|
4270
|
+
})) && $vo3(input.publicParams, _path + ".publicParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4378
4271
|
path: _path + ".publicParams",
|
|
4379
|
-
expected: "__type
|
|
4272
|
+
expected: "__type",
|
|
4380
4273
|
value: input.publicParams
|
|
4381
4274
|
}), ("object" === typeof input.privateParams && null !== input.privateParams && false === Array.isArray(input.privateParams) || $report(_exceptionable, {
|
|
4382
4275
|
path: _path + ".privateParams",
|
|
4383
|
-
expected: "__type
|
|
4276
|
+
expected: "__type",
|
|
4384
4277
|
value: input.privateParams
|
|
4385
|
-
})) && $
|
|
4278
|
+
})) && $vo3(input.privateParams, _path + ".privateParams", true && _exceptionable) || $report(_exceptionable, {
|
|
4386
4279
|
path: _path + ".privateParams",
|
|
4387
|
-
expected: "__type
|
|
4280
|
+
expected: "__type",
|
|
4388
4281
|
value: input.privateParams
|
|
4389
4282
|
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
4390
4283
|
path: _path + ".metadata",
|
|
4391
|
-
expected: "(__type.
|
|
4284
|
+
expected: "(__type.o1 | undefined)",
|
|
4392
4285
|
value: input.metadata
|
|
4393
|
-
})) && $
|
|
4286
|
+
})) && $vo4(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
4394
4287
|
path: _path + ".metadata",
|
|
4395
|
-
expected: "(__type.
|
|
4288
|
+
expected: "(__type.o1 | undefined)",
|
|
4396
4289
|
value: input.metadata
|
|
4397
4290
|
})].every(flag => flag);
|
|
4398
|
-
const $
|
|
4399
|
-
const $
|
|
4291
|
+
const $vo3 = (input, _path, _exceptionable = true) => true;
|
|
4292
|
+
const $vo4 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4400
4293
|
path: _path + ".name",
|
|
4401
4294
|
expected: "string",
|
|
4402
4295
|
value: input.name
|
|
@@ -4405,16 +4298,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4405
4298
|
expected: "string",
|
|
4406
4299
|
value: input.description
|
|
4407
4300
|
})].every(flag => flag);
|
|
4408
|
-
const $
|
|
4301
|
+
const $vo5 = (input, _path, _exceptionable = true) => [(Array.isArray(input.manualBalances) || $report(_exceptionable, {
|
|
4409
4302
|
path: _path + ".manualBalances",
|
|
4410
4303
|
expected: "Array<iManualBalances<NumberType>>",
|
|
4411
4304
|
value: input.manualBalances
|
|
4412
|
-
})) && input.manualBalances.map((elem,
|
|
4413
|
-
path: _path + ".manualBalances[" +
|
|
4305
|
+
})) && input.manualBalances.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4306
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
4414
4307
|
expected: "iManualBalances<NumberType>",
|
|
4415
4308
|
value: elem
|
|
4416
|
-
})) && $
|
|
4417
|
-
path: _path + ".manualBalances[" +
|
|
4309
|
+
})) && $vo6(elem, _path + ".manualBalances[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4310
|
+
path: _path + ".manualBalances[" + _index3 + "]",
|
|
4418
4311
|
expected: "iManualBalances<NumberType>",
|
|
4419
4312
|
value: elem
|
|
4420
4313
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4425,7 +4318,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4425
4318
|
path: _path + ".incrementedBalances",
|
|
4426
4319
|
expected: "iIncrementedBalances<NumberType>",
|
|
4427
4320
|
value: input.incrementedBalances
|
|
4428
|
-
})) && $
|
|
4321
|
+
})) && $vo9(input.incrementedBalances, _path + ".incrementedBalances", true && _exceptionable) || $report(_exceptionable, {
|
|
4429
4322
|
path: _path + ".incrementedBalances",
|
|
4430
4323
|
expected: "iIncrementedBalances<NumberType>",
|
|
4431
4324
|
value: input.incrementedBalances
|
|
@@ -4433,21 +4326,21 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4433
4326
|
path: _path + ".orderCalculationMethod",
|
|
4434
4327
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4435
4328
|
value: input.orderCalculationMethod
|
|
4436
|
-
})) && $
|
|
4329
|
+
})) && $vo10(input.orderCalculationMethod, _path + ".orderCalculationMethod", true && _exceptionable) || $report(_exceptionable, {
|
|
4437
4330
|
path: _path + ".orderCalculationMethod",
|
|
4438
4331
|
expected: "iPredeterminedOrderCalculationMethod",
|
|
4439
4332
|
value: input.orderCalculationMethod
|
|
4440
4333
|
})].every(flag => flag);
|
|
4441
|
-
const $
|
|
4334
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4442
4335
|
path: _path + ".balances",
|
|
4443
4336
|
expected: "Array<iBalance<NumberType>>",
|
|
4444
4337
|
value: input.balances
|
|
4445
|
-
})) && input.balances.map((elem,
|
|
4446
|
-
path: _path + ".balances[" +
|
|
4338
|
+
})) && input.balances.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4339
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
4447
4340
|
expected: "iBalance<NumberType>",
|
|
4448
4341
|
value: elem
|
|
4449
|
-
})) && $
|
|
4450
|
-
path: _path + ".balances[" +
|
|
4342
|
+
})) && $vo7(elem, _path + ".balances[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4343
|
+
path: _path + ".balances[" + _index4 + "]",
|
|
4451
4344
|
expected: "iBalance<NumberType>",
|
|
4452
4345
|
value: elem
|
|
4453
4346
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4455,7 +4348,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4455
4348
|
expected: "Array<iBalance<NumberType>>",
|
|
4456
4349
|
value: input.balances
|
|
4457
4350
|
})].every(flag => flag);
|
|
4458
|
-
const $
|
|
4351
|
+
const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.amount || "number" === typeof input.amount || "bigint" === typeof input.amount || $report(_exceptionable, {
|
|
4459
4352
|
path: _path + ".amount",
|
|
4460
4353
|
expected: "(bigint | number | string)",
|
|
4461
4354
|
value: input.amount
|
|
@@ -4463,12 +4356,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4463
4356
|
path: _path + ".badgeIds",
|
|
4464
4357
|
expected: "Array<iUintRange<NumberType>>",
|
|
4465
4358
|
value: input.badgeIds
|
|
4466
|
-
})) && input.badgeIds.map((elem,
|
|
4467
|
-
path: _path + ".badgeIds[" +
|
|
4359
|
+
})) && input.badgeIds.map((elem, _index5) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4360
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
4468
4361
|
expected: "iUintRange<NumberType>",
|
|
4469
4362
|
value: elem
|
|
4470
|
-
})) && $
|
|
4471
|
-
path: _path + ".badgeIds[" +
|
|
4363
|
+
})) && $vo8(elem, _path + ".badgeIds[" + _index5 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4364
|
+
path: _path + ".badgeIds[" + _index5 + "]",
|
|
4472
4365
|
expected: "iUintRange<NumberType>",
|
|
4473
4366
|
value: elem
|
|
4474
4367
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4479,12 +4372,12 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4479
4372
|
path: _path + ".ownershipTimes",
|
|
4480
4373
|
expected: "Array<iUintRange<NumberType>>",
|
|
4481
4374
|
value: input.ownershipTimes
|
|
4482
|
-
})) && input.ownershipTimes.map((elem,
|
|
4483
|
-
path: _path + ".ownershipTimes[" +
|
|
4375
|
+
})) && input.ownershipTimes.map((elem, _index6) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4376
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
4484
4377
|
expected: "iUintRange<NumberType>",
|
|
4485
4378
|
value: elem
|
|
4486
|
-
})) && $
|
|
4487
|
-
path: _path + ".ownershipTimes[" +
|
|
4379
|
+
})) && $vo8(elem, _path + ".ownershipTimes[" + _index6 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4380
|
+
path: _path + ".ownershipTimes[" + _index6 + "]",
|
|
4488
4381
|
expected: "iUintRange<NumberType>",
|
|
4489
4382
|
value: elem
|
|
4490
4383
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4492,7 +4385,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4492
4385
|
expected: "Array<iUintRange<NumberType>>",
|
|
4493
4386
|
value: input.ownershipTimes
|
|
4494
4387
|
})].every(flag => flag);
|
|
4495
|
-
const $
|
|
4388
|
+
const $vo8 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
4496
4389
|
path: _path + ".start",
|
|
4497
4390
|
expected: "(bigint | number | string)",
|
|
4498
4391
|
value: input.start
|
|
@@ -4501,16 +4394,16 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4501
4394
|
expected: "(bigint | number | string)",
|
|
4502
4395
|
value: input.end
|
|
4503
4396
|
})].every(flag => flag);
|
|
4504
|
-
const $
|
|
4397
|
+
const $vo9 = (input, _path, _exceptionable = true) => [(Array.isArray(input.startBalances) || $report(_exceptionable, {
|
|
4505
4398
|
path: _path + ".startBalances",
|
|
4506
4399
|
expected: "Array<iBalance<NumberType>>",
|
|
4507
4400
|
value: input.startBalances
|
|
4508
|
-
})) && input.startBalances.map((elem,
|
|
4509
|
-
path: _path + ".startBalances[" +
|
|
4401
|
+
})) && input.startBalances.map((elem, _index7) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4402
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
4510
4403
|
expected: "iBalance<NumberType>",
|
|
4511
4404
|
value: elem
|
|
4512
|
-
})) && $
|
|
4513
|
-
path: _path + ".startBalances[" +
|
|
4405
|
+
})) && $vo7(elem, _path + ".startBalances[" + _index7 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4406
|
+
path: _path + ".startBalances[" + _index7 + "]",
|
|
4514
4407
|
expected: "iBalance<NumberType>",
|
|
4515
4408
|
value: elem
|
|
4516
4409
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -4526,7 +4419,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4526
4419
|
expected: "(bigint | number | string)",
|
|
4527
4420
|
value: input.incrementOwnershipTimesBy
|
|
4528
4421
|
})].every(flag => flag);
|
|
4529
|
-
const $
|
|
4422
|
+
const $vo10 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.useOverallNumTransfers || $report(_exceptionable, {
|
|
4530
4423
|
path: _path + ".useOverallNumTransfers",
|
|
4531
4424
|
expected: "boolean",
|
|
4532
4425
|
value: input.useOverallNumTransfers
|
|
@@ -4551,6 +4444,119 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4551
4444
|
expected: "string",
|
|
4552
4445
|
value: input.challengeTrackerId
|
|
4553
4446
|
})].every(flag => flag);
|
|
4447
|
+
const $vo11 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
4448
|
+
path: _path + ".name",
|
|
4449
|
+
expected: "string",
|
|
4450
|
+
value: input.name
|
|
4451
|
+
}), "string" === typeof input.description || $report(_exceptionable, {
|
|
4452
|
+
path: _path + ".description",
|
|
4453
|
+
expected: "string",
|
|
4454
|
+
value: input.description
|
|
4455
|
+
}), "string" === typeof input.image || $report(_exceptionable, {
|
|
4456
|
+
path: _path + ".image",
|
|
4457
|
+
expected: "string",
|
|
4458
|
+
value: input.image
|
|
4459
|
+
}), undefined === input.video || "string" === typeof input.video || $report(_exceptionable, {
|
|
4460
|
+
path: _path + ".video",
|
|
4461
|
+
expected: "(string | undefined)",
|
|
4462
|
+
value: input.video
|
|
4463
|
+
}), undefined === input.category || "string" === typeof input.category || $report(_exceptionable, {
|
|
4464
|
+
path: _path + ".category",
|
|
4465
|
+
expected: "(string | undefined)",
|
|
4466
|
+
value: input.category
|
|
4467
|
+
}), undefined === input.externalUrl || "string" === typeof input.externalUrl || $report(_exceptionable, {
|
|
4468
|
+
path: _path + ".externalUrl",
|
|
4469
|
+
expected: "(string | undefined)",
|
|
4470
|
+
value: input.externalUrl
|
|
4471
|
+
}), undefined === input.tags || (Array.isArray(input.tags) || $report(_exceptionable, {
|
|
4472
|
+
path: _path + ".tags",
|
|
4473
|
+
expected: "(Array<string> | undefined)",
|
|
4474
|
+
value: input.tags
|
|
4475
|
+
})) && input.tags.map((elem, _index8) => "string" === typeof elem || $report(_exceptionable, {
|
|
4476
|
+
path: _path + ".tags[" + _index8 + "]",
|
|
4477
|
+
expected: "string",
|
|
4478
|
+
value: elem
|
|
4479
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4480
|
+
path: _path + ".tags",
|
|
4481
|
+
expected: "(Array<string> | undefined)",
|
|
4482
|
+
value: input.tags
|
|
4483
|
+
}), undefined === input.socials || ("object" === typeof input.socials && null !== input.socials && false === Array.isArray(input.socials) || $report(_exceptionable, {
|
|
4484
|
+
path: _path + ".socials",
|
|
4485
|
+
expected: "(__type.o2 | undefined)",
|
|
4486
|
+
value: input.socials
|
|
4487
|
+
})) && $vo12(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
4488
|
+
path: _path + ".socials",
|
|
4489
|
+
expected: "(__type.o2 | undefined)",
|
|
4490
|
+
value: input.socials
|
|
4491
|
+
}), undefined === input.offChainTransferabilityInfo || ("object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo || $report(_exceptionable, {
|
|
4492
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4493
|
+
expected: "(__type.o3 | undefined)",
|
|
4494
|
+
value: input.offChainTransferabilityInfo
|
|
4495
|
+
})) && $vo13(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
4496
|
+
path: _path + ".offChainTransferabilityInfo",
|
|
4497
|
+
expected: "(__type.o3 | undefined)",
|
|
4498
|
+
value: input.offChainTransferabilityInfo
|
|
4499
|
+
}), undefined === input.attributes || (Array.isArray(input.attributes) || $report(_exceptionable, {
|
|
4500
|
+
path: _path + ".attributes",
|
|
4501
|
+
expected: "(Array<__type> | undefined)",
|
|
4502
|
+
value: input.attributes
|
|
4503
|
+
})) && input.attributes.map((elem, _index9) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
4504
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
4505
|
+
expected: "__type.o4",
|
|
4506
|
+
value: elem
|
|
4507
|
+
})) && $vo14(elem, _path + ".attributes[" + _index9 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
4508
|
+
path: _path + ".attributes[" + _index9 + "]",
|
|
4509
|
+
expected: "__type.o4",
|
|
4510
|
+
value: elem
|
|
4511
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
4512
|
+
path: _path + ".attributes",
|
|
4513
|
+
expected: "(Array<__type> | undefined)",
|
|
4514
|
+
value: input.attributes
|
|
4515
|
+
}), undefined === input.fetchedAtBlock || "string" === typeof input.fetchedAtBlock || "number" === typeof input.fetchedAtBlock || "bigint" === typeof input.fetchedAtBlock || $report(_exceptionable, {
|
|
4516
|
+
path: _path + ".fetchedAtBlock",
|
|
4517
|
+
expected: "(bigint | number | string | undefined)",
|
|
4518
|
+
value: input.fetchedAtBlock
|
|
4519
|
+
}), undefined === input.fetchedAt || "string" === typeof input.fetchedAt || "number" === typeof input.fetchedAt || "bigint" === typeof input.fetchedAt || $report(_exceptionable, {
|
|
4520
|
+
path: _path + ".fetchedAt",
|
|
4521
|
+
expected: "(bigint | number | string | undefined)",
|
|
4522
|
+
value: input.fetchedAt
|
|
4523
|
+
}), undefined === input._isUpdating || "boolean" === typeof input._isUpdating || $report(_exceptionable, {
|
|
4524
|
+
path: _path + "._isUpdating",
|
|
4525
|
+
expected: "(boolean | undefined)",
|
|
4526
|
+
value: input._isUpdating
|
|
4527
|
+
})].every(flag => flag);
|
|
4528
|
+
const $vo12 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
4529
|
+
const value = input[key];
|
|
4530
|
+
if (undefined === value)
|
|
4531
|
+
return true;
|
|
4532
|
+
return "string" === typeof value || $report(_exceptionable, {
|
|
4533
|
+
path: _path + $join(key),
|
|
4534
|
+
expected: "string",
|
|
4535
|
+
value: value
|
|
4536
|
+
});
|
|
4537
|
+
}).every(flag => flag)].every(flag => flag);
|
|
4538
|
+
const $vo13 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
4539
|
+
path: _path + ".host",
|
|
4540
|
+
expected: "string",
|
|
4541
|
+
value: input.host
|
|
4542
|
+
}), "string" === typeof input.assignMethod || $report(_exceptionable, {
|
|
4543
|
+
path: _path + ".assignMethod",
|
|
4544
|
+
expected: "string",
|
|
4545
|
+
value: input.assignMethod
|
|
4546
|
+
})].every(flag => flag);
|
|
4547
|
+
const $vo14 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
4548
|
+
path: _path + ".type",
|
|
4549
|
+
expected: "(\"date\" | \"url\" | undefined)",
|
|
4550
|
+
value: input.type
|
|
4551
|
+
}), "string" === typeof input.name || $report(_exceptionable, {
|
|
4552
|
+
path: _path + ".name",
|
|
4553
|
+
expected: "string",
|
|
4554
|
+
value: input.name
|
|
4555
|
+
}), "string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value || $report(_exceptionable, {
|
|
4556
|
+
path: _path + ".value",
|
|
4557
|
+
expected: "(boolean | number | string)",
|
|
4558
|
+
value: input.value
|
|
4559
|
+
})].every(flag => flag);
|
|
4554
4560
|
return ("object" === typeof input && null !== input || $report(true, {
|
|
4555
4561
|
path: _path + "",
|
|
4556
4562
|
expected: "UpdateClaimPayload",
|
|
@@ -4572,8 +4578,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4572
4578
|
if (!validateRes.success) {
|
|
4573
4579
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4574
4580
|
}
|
|
4575
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
|
|
4576
|
-
return new UpdateClaimSuccessResponse(response.data);
|
|
4581
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
|
|
4582
|
+
return new requests_1.UpdateClaimSuccessResponse(response.data);
|
|
4577
4583
|
}
|
|
4578
4584
|
catch (error) {
|
|
4579
4585
|
await this.handleApiError(error);
|
|
@@ -4588,7 +4594,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4588
4594
|
return "object" === typeof input && null !== input && "string" === typeof input.token;
|
|
4589
4595
|
};
|
|
4590
4596
|
if (false === __is(input)) {
|
|
4591
|
-
const $report =
|
|
4597
|
+
const $report = typia_1.default.validate.report(errors);
|
|
4592
4598
|
((input, _path, _exceptionable = true) => {
|
|
4593
4599
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.token || $report(_exceptionable, {
|
|
4594
4600
|
path: _path + ".token",
|
|
@@ -4616,8 +4622,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4616
4622
|
if (!validateRes.success) {
|
|
4617
4623
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4618
4624
|
}
|
|
4619
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.OauthRevokeRoute()}`, payload);
|
|
4620
|
-
return new OauthRevokeSuccessResponse(response.data);
|
|
4625
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.OauthRevokeRoute()}`, payload);
|
|
4626
|
+
return new requests_1.OauthRevokeSuccessResponse(response.data);
|
|
4621
4627
|
}
|
|
4622
4628
|
catch (error) {
|
|
4623
4629
|
await this.handleApiError(error);
|
|
@@ -4648,9 +4654,9 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4648
4654
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4649
4655
|
};
|
|
4650
4656
|
if (false === __is(input)) {
|
|
4651
|
-
const $report =
|
|
4657
|
+
const $report = typia_1.default.validate.report(errors);
|
|
4652
4658
|
((input, _path, _exceptionable = true) => {
|
|
4653
|
-
const $join =
|
|
4659
|
+
const $join = typia_1.default.validate.join;
|
|
4654
4660
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4655
4661
|
path: _path + ".balances",
|
|
4656
4662
|
expected: "(iOffChainBalancesMap<NumberType> | undefined)",
|
|
@@ -4985,8 +4991,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4985
4991
|
if (!validateRes.success) {
|
|
4986
4992
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4987
4993
|
}
|
|
4988
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddBalancesToOffChainStorageRoute()}`, payload);
|
|
4989
|
-
return new AddBalancesToOffChainStorageSuccessResponse(response.data);
|
|
4994
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddBalancesToOffChainStorageRoute()}`, payload);
|
|
4995
|
+
return new requests_1.AddBalancesToOffChainStorageSuccessResponse(response.data);
|
|
4990
4996
|
}
|
|
4991
4997
|
catch (error) {
|
|
4992
4998
|
await this.handleApiError(error);
|
|
@@ -5001,7 +5007,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5001
5007
|
return "object" === typeof input && null !== input && "string" === typeof input.id;
|
|
5002
5008
|
};
|
|
5003
5009
|
if (false === __is(input)) {
|
|
5004
|
-
const $report =
|
|
5010
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5005
5011
|
((input, _path, _exceptionable = true) => {
|
|
5006
5012
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
|
|
5007
5013
|
path: _path + ".id",
|
|
@@ -5029,8 +5035,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5029
5035
|
if (!validateRes.success) {
|
|
5030
5036
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5031
5037
|
}
|
|
5032
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetAttestationProofsRoute()}`, payload);
|
|
5033
|
-
return new GetAttestationProofSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
5038
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetAttestationProofsRoute()}`, payload);
|
|
5039
|
+
return new requests_1.GetAttestationProofSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
5034
5040
|
}
|
|
5035
5041
|
catch (error) {
|
|
5036
5042
|
await this.handleApiError(error);
|
|
@@ -5050,7 +5056,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5050
5056
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5051
5057
|
};
|
|
5052
5058
|
if (false === __is(input)) {
|
|
5053
|
-
const $report =
|
|
5059
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5054
5060
|
((input, _path, _exceptionable = true) => {
|
|
5055
5061
|
const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.displayOnProfile || $report(_exceptionable, {
|
|
5056
5062
|
path: _path + ".displayOnProfile",
|
|
@@ -5234,8 +5240,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5234
5240
|
if (!validateRes.success) {
|
|
5235
5241
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5236
5242
|
}
|
|
5237
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, payload);
|
|
5238
|
-
return new CreateAttestationProofSuccessResponse(response.data);
|
|
5243
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, payload);
|
|
5244
|
+
return new requests_1.CreateAttestationProofSuccessResponse(response.data);
|
|
5239
5245
|
}
|
|
5240
5246
|
catch (error) {
|
|
5241
5247
|
await this.handleApiError(error);
|
|
@@ -5250,7 +5256,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5250
5256
|
return "object" === typeof input && null !== input && "string" === typeof input.id;
|
|
5251
5257
|
};
|
|
5252
5258
|
if (false === __is(input)) {
|
|
5253
|
-
const $report =
|
|
5259
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5254
5260
|
((input, _path, _exceptionable = true) => {
|
|
5255
5261
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
|
|
5256
5262
|
path: _path + ".id",
|
|
@@ -5278,10 +5284,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5278
5284
|
if (!validateRes.success) {
|
|
5279
5285
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5280
5286
|
}
|
|
5281
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, {
|
|
5287
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, {
|
|
5282
5288
|
data: payload
|
|
5283
5289
|
});
|
|
5284
|
-
return new DeleteAttestationProofSuccessResponse(response.data);
|
|
5290
|
+
return new requests_1.DeleteAttestationProofSuccessResponse(response.data);
|
|
5285
5291
|
}
|
|
5286
5292
|
catch (error) {
|
|
5287
5293
|
await this.handleApiError(error);
|
|
@@ -5292,7 +5298,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5292
5298
|
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
5293
5299
|
}
|
|
5294
5300
|
}
|
|
5295
|
-
|
|
5301
|
+
exports.BitBadgesAPI = BitBadgesAPI;
|
|
5302
|
+
class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
5296
5303
|
constructor(apiDetails) {
|
|
5297
5304
|
super(apiDetails);
|
|
5298
5305
|
}
|
|
@@ -5304,7 +5311,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5304
5311
|
return "object" === typeof input && null !== input && true;
|
|
5305
5312
|
};
|
|
5306
5313
|
if (false === __is(input)) {
|
|
5307
|
-
const $report =
|
|
5314
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5308
5315
|
((input, _path, _exceptionable = true) => {
|
|
5309
5316
|
const $vo0 = (input, _path, _exceptionable = true) => true;
|
|
5310
5317
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
@@ -5328,8 +5335,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5328
5335
|
if (!validateRes.success) {
|
|
5329
5336
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5330
5337
|
}
|
|
5331
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetActiveAuthorizationsRoute()}`, payload);
|
|
5332
|
-
return new GetActiveAuthorizationsSuccessResponse(response.data);
|
|
5338
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetActiveAuthorizationsRoute()}`, payload);
|
|
5339
|
+
return new requests_1.GetActiveAuthorizationsSuccessResponse(response.data);
|
|
5333
5340
|
}
|
|
5334
5341
|
catch (error) {
|
|
5335
5342
|
await this.handleApiError(error);
|
|
@@ -5344,13 +5351,13 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5344
5351
|
const $io0 = input => "string" === typeof input.pluginId && ("Stateless" === input.stateFunctionPreset || "Usernames" === input.stateFunctionPreset || "ClaimToken" === input.stateFunctionPreset || "CustomResponseHandler" === input.stateFunctionPreset || "CompletelyCustom" === input.stateFunctionPreset || "ClaimNumbers" === input.stateFunctionPreset || "StateTransitions" === input.stateFunctionPreset) && "boolean" === typeof input.duplicatesAllowed && "boolean" === typeof input.reuseForNonIndexed && "boolean" === typeof input.reuseForLists && "boolean" === typeof input.requiresUserInputs && ("object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io2(input.userInputRedirect)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io3(elem))) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && $io4(input.claimCreatorRedirect)) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io5(input.verificationCall)) && "boolean" === typeof input.toPublish && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem));
|
|
5345
5352
|
const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink) && "string" === typeof input.createdBy;
|
|
5346
5353
|
const $io2 = input => "string" === typeof input.baseUri;
|
|
5347
|
-
const $io3 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5354
|
+
const $io3 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type) && (undefined === input.helper || "string" === typeof input.helper);
|
|
5348
5355
|
const $io4 = input => "string" === typeof input.baseUri;
|
|
5349
5356
|
const $io5 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
|
|
5350
5357
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5351
5358
|
};
|
|
5352
5359
|
if (false === __is(input)) {
|
|
5353
|
-
const $report =
|
|
5360
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5354
5361
|
((input, _path, _exceptionable = true) => {
|
|
5355
5362
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
5356
5363
|
path: _path + ".pluginId",
|
|
@@ -5483,7 +5490,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5483
5490
|
path: _path + ".label",
|
|
5484
5491
|
expected: "string",
|
|
5485
5492
|
value: input.label
|
|
5486
|
-
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5493
|
+
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
5487
5494
|
path: _path + ".type",
|
|
5488
5495
|
expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
|
|
5489
5496
|
value: input.type
|
|
@@ -5555,8 +5562,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5555
5562
|
if (!validateRes.success) {
|
|
5556
5563
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5557
5564
|
}
|
|
5558
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
|
|
5559
|
-
return new CreatePluginSuccessResponse(response.data);
|
|
5565
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
|
|
5566
|
+
return new requests_1.CreatePluginSuccessResponse(response.data);
|
|
5560
5567
|
}
|
|
5561
5568
|
catch (error) {
|
|
5562
5569
|
await this.handleApiError(error);
|
|
@@ -5570,14 +5577,14 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5570
5577
|
const __is = input => {
|
|
5571
5578
|
const $io0 = input => "string" === typeof input.pluginId && (undefined === input.duplicatesAllowed || "boolean" === typeof input.duplicatesAllowed) && (undefined === input.reuseForNonIndexed || "boolean" === typeof input.reuseForNonIndexed) && (undefined === input.reuseForLists || "boolean" === typeof input.reuseForLists) && (undefined === input.requiresUserInputs || "boolean" === typeof input.requiresUserInputs) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && (undefined === input.userInputsSchema || Array.isArray(input.userInputsSchema) && input.userInputsSchema.every(elem => "object" === typeof elem && null !== elem && $io2(elem))) && (undefined === input.userInputRedirect || "object" === typeof input.userInputRedirect && null !== input.userInputRedirect && $io3(input.userInputRedirect)) && (undefined === input.claimCreatorRedirect || "object" === typeof input.claimCreatorRedirect && null !== input.claimCreatorRedirect && $io4(input.claimCreatorRedirect)) && (undefined === input.verificationCall || "object" === typeof input.verificationCall && null !== input.verificationCall && $io5(input.verificationCall)) && (undefined === input.toPublish || "boolean" === typeof input.toPublish) && (undefined === input.approvedUsers || Array.isArray(input.approvedUsers) && input.approvedUsers.every(elem => "string" === typeof elem)) && (undefined === input.rotatePluginSecret || "boolean" === typeof input.rotatePluginSecret);
|
|
5572
5579
|
const $io1 = input => "string" === typeof input.name && "string" === typeof input.description && "string" === typeof input.image && (undefined === input.documentation || "string" === typeof input.documentation) && (undefined === input.sourceCode || "string" === typeof input.sourceCode) && (undefined === input.supportLink || "string" === typeof input.supportLink);
|
|
5573
|
-
const $io2 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5580
|
+
const $io2 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type) && (undefined === input.helper || "string" === typeof input.helper);
|
|
5574
5581
|
const $io3 = input => "string" === typeof input.baseUri;
|
|
5575
5582
|
const $io4 = input => "string" === typeof input.baseUri;
|
|
5576
5583
|
const $io5 = input => "string" === typeof input.uri && ("POST" === input.method || "GET" === input.method || "PUT" === input.method || "DELETE" === input.method) && (undefined === input.passAddress || "boolean" === typeof input.passAddress) && (undefined === input.passDiscord || "boolean" === typeof input.passDiscord) && (undefined === input.passEmail || "boolean" === typeof input.passEmail) && (undefined === input.passTwitter || "boolean" === typeof input.passTwitter) && (undefined === input.passGoogle || "boolean" === typeof input.passGoogle) && (undefined === input.passGithub || "boolean" === typeof input.passGithub) && (undefined === input.passTwitch || "boolean" === typeof input.passTwitch);
|
|
5577
5584
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5578
5585
|
};
|
|
5579
5586
|
if (false === __is(input)) {
|
|
5580
|
-
const $report =
|
|
5587
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5581
5588
|
((input, _path, _exceptionable = true) => {
|
|
5582
5589
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
5583
5590
|
path: _path + ".pluginId",
|
|
@@ -5701,7 +5708,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5701
5708
|
path: _path + ".label",
|
|
5702
5709
|
expected: "string",
|
|
5703
5710
|
value: input.label
|
|
5704
|
-
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5711
|
+
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
5705
5712
|
path: _path + ".type",
|
|
5706
5713
|
expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
|
|
5707
5714
|
value: input.type
|
|
@@ -5778,8 +5785,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5778
5785
|
if (!validateRes.success) {
|
|
5779
5786
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5780
5787
|
}
|
|
5781
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
|
|
5782
|
-
return new UpdatePluginSuccessResponse(response.data);
|
|
5788
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
|
|
5789
|
+
return new requests_1.UpdatePluginSuccessResponse(response.data);
|
|
5783
5790
|
}
|
|
5784
5791
|
catch (error) {
|
|
5785
5792
|
await this.handleApiError(error);
|
|
@@ -5794,7 +5801,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5794
5801
|
return "object" === typeof input && null !== input && "string" === typeof input.pluginId;
|
|
5795
5802
|
};
|
|
5796
5803
|
if (false === __is(input)) {
|
|
5797
|
-
const $report =
|
|
5804
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5798
5805
|
((input, _path, _exceptionable = true) => {
|
|
5799
5806
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
5800
5807
|
path: _path + ".pluginId",
|
|
@@ -5822,10 +5829,10 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5822
5829
|
if (!validateRes.success) {
|
|
5823
5830
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5824
5831
|
}
|
|
5825
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDPluginRoute()}`, {
|
|
5832
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDPluginRoute()}`, {
|
|
5826
5833
|
data: payload
|
|
5827
5834
|
});
|
|
5828
|
-
return new DeletePluginSuccessResponse(response.data);
|
|
5835
|
+
return new requests_1.DeletePluginSuccessResponse(response.data);
|
|
5829
5836
|
}
|
|
5830
5837
|
catch (error) {
|
|
5831
5838
|
await this.handleApiError(error);
|
|
@@ -5841,7 +5848,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5841
5848
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5842
5849
|
};
|
|
5843
5850
|
if (false === __is(input)) {
|
|
5844
|
-
const $report =
|
|
5851
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5845
5852
|
((input, _path, _exceptionable = true) => {
|
|
5846
5853
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.clientId || "string" === typeof input.clientId || $report(_exceptionable, {
|
|
5847
5854
|
path: _path + ".clientId",
|
|
@@ -5869,8 +5876,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5869
5876
|
if (!validateRes.success) {
|
|
5870
5877
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5871
5878
|
}
|
|
5872
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetDeveloperAppsRoute()}`, payload);
|
|
5873
|
-
return new GetDeveloperAppSuccessResponse(response.data);
|
|
5879
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetDeveloperAppsRoute()}`, payload);
|
|
5880
|
+
return new requests_1.GetDeveloperAppSuccessResponse(response.data);
|
|
5874
5881
|
}
|
|
5875
5882
|
catch (error) {
|
|
5876
5883
|
await this.handleApiError(error);
|
|
@@ -5886,7 +5893,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5886
5893
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5887
5894
|
};
|
|
5888
5895
|
if (false === __is(input)) {
|
|
5889
|
-
const $report =
|
|
5896
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5890
5897
|
((input, _path, _exceptionable = true) => {
|
|
5891
5898
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
5892
5899
|
path: _path + ".name",
|
|
@@ -5934,8 +5941,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5934
5941
|
if (!validateRes.success) {
|
|
5935
5942
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5936
5943
|
}
|
|
5937
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
|
|
5938
|
-
return new CreateDeveloperAppSuccessResponse(response.data);
|
|
5944
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
|
|
5945
|
+
return new requests_1.CreateDeveloperAppSuccessResponse(response.data);
|
|
5939
5946
|
}
|
|
5940
5947
|
catch (error) {
|
|
5941
5948
|
await this.handleApiError(error);
|
|
@@ -5951,7 +5958,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5951
5958
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5952
5959
|
};
|
|
5953
5960
|
if (false === __is(input)) {
|
|
5954
|
-
const $report =
|
|
5961
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5955
5962
|
((input, _path, _exceptionable = true) => {
|
|
5956
5963
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.clientId || $report(_exceptionable, {
|
|
5957
5964
|
path: _path + ".clientId",
|
|
@@ -5983,8 +5990,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5983
5990
|
if (!validateRes.success) {
|
|
5984
5991
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5985
5992
|
}
|
|
5986
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, { data: payload });
|
|
5987
|
-
return new DeleteDeveloperAppSuccessResponse(response.data);
|
|
5993
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, { data: payload });
|
|
5994
|
+
return new requests_1.DeleteDeveloperAppSuccessResponse(response.data);
|
|
5988
5995
|
}
|
|
5989
5996
|
catch (error) {
|
|
5990
5997
|
await this.handleApiError(error);
|
|
@@ -6000,7 +6007,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6000
6007
|
return "object" === typeof input && null !== input && $io0(input);
|
|
6001
6008
|
};
|
|
6002
6009
|
if (false === __is(input)) {
|
|
6003
|
-
const $report =
|
|
6010
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6004
6011
|
((input, _path, _exceptionable = true) => {
|
|
6005
6012
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.clientId || $report(_exceptionable, {
|
|
6006
6013
|
path: _path + ".clientId",
|
|
@@ -6056,8 +6063,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6056
6063
|
if (!validateRes.success) {
|
|
6057
6064
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6058
6065
|
}
|
|
6059
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
|
|
6060
|
-
return new UpdateDeveloperAppSuccessResponse(response.data);
|
|
6066
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
|
|
6067
|
+
return new requests_1.UpdateDeveloperAppSuccessResponse(response.data);
|
|
6061
6068
|
}
|
|
6062
6069
|
catch (error) {
|
|
6063
6070
|
await this.handleApiError(error);
|
|
@@ -6073,7 +6080,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6073
6080
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
6074
6081
|
};
|
|
6075
6082
|
if (false === __is(input)) {
|
|
6076
|
-
const $report =
|
|
6083
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6077
6084
|
((input, _path, _exceptionable = true) => {
|
|
6078
6085
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.createdPluginsOnly || "boolean" === typeof input.createdPluginsOnly || $report(_exceptionable, {
|
|
6079
6086
|
path: _path + ".createdPluginsOnly",
|
|
@@ -6105,8 +6112,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6105
6112
|
if (!validateRes.success) {
|
|
6106
6113
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6107
6114
|
}
|
|
6108
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetPluginRoute()}`, payload);
|
|
6109
|
-
return new GetPluginSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6115
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetPluginRoute()}`, payload);
|
|
6116
|
+
return new requests_1.GetPluginSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6110
6117
|
}
|
|
6111
6118
|
catch (error) {
|
|
6112
6119
|
await this.handleApiError(error);
|
|
@@ -6121,7 +6128,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6121
6128
|
return "object" === typeof input && null !== input && "string" === typeof input.code;
|
|
6122
6129
|
};
|
|
6123
6130
|
if (false === __is(input)) {
|
|
6124
|
-
const $report =
|
|
6131
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6125
6132
|
((input, _path, _exceptionable = true) => {
|
|
6126
6133
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
|
|
6127
6134
|
path: _path + ".code",
|
|
@@ -6149,8 +6156,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6149
6156
|
if (!validateRes.success) {
|
|
6150
6157
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6151
6158
|
}
|
|
6152
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenerateGoogleWalletPassRoute()}`, payload);
|
|
6153
|
-
return new GenerateGoogleWalletSuccessResponse(response.data);
|
|
6159
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenerateGoogleWalletPassRoute()}`, payload);
|
|
6160
|
+
return new requests_1.GenerateGoogleWalletSuccessResponse(response.data);
|
|
6154
6161
|
}
|
|
6155
6162
|
catch (error) {
|
|
6156
6163
|
await this.handleApiError(error);
|
|
@@ -6165,7 +6172,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6165
6172
|
return "object" === typeof input && null !== input && "string" === typeof input.code;
|
|
6166
6173
|
};
|
|
6167
6174
|
if (false === __is(input)) {
|
|
6168
|
-
const $report =
|
|
6175
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6169
6176
|
((input, _path, _exceptionable = true) => {
|
|
6170
6177
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
|
|
6171
6178
|
path: _path + ".code",
|
|
@@ -6193,8 +6200,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6193
6200
|
if (!validateRes.success) {
|
|
6194
6201
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6195
6202
|
}
|
|
6196
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenerateAppleWalletPassRoute()}`, payload);
|
|
6197
|
-
return new GenerateAppleWalletPassSuccessResponse(response.data);
|
|
6203
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenerateAppleWalletPassRoute()}`, payload);
|
|
6204
|
+
return new requests_1.GenerateAppleWalletPassSuccessResponse(response.data);
|
|
6198
6205
|
}
|
|
6199
6206
|
catch (error) {
|
|
6200
6207
|
await this.handleApiError(error);
|
|
@@ -6210,7 +6217,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6210
6217
|
return "object" === typeof input && null !== input && $io0(input);
|
|
6211
6218
|
};
|
|
6212
6219
|
if (false === __is(input)) {
|
|
6213
|
-
const $report =
|
|
6220
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6214
6221
|
((input, _path, _exceptionable = true) => {
|
|
6215
6222
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.uris) || $report(_exceptionable, {
|
|
6216
6223
|
path: _path + ".uris",
|
|
@@ -6246,8 +6253,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6246
6253
|
if (!validateRes.success) {
|
|
6247
6254
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6248
6255
|
}
|
|
6249
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.FetchMetadataDirectlyRoute()}`, payload);
|
|
6250
|
-
return new FetchMetadataDirectlySuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6256
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.FetchMetadataDirectlyRoute()}`, payload);
|
|
6257
|
+
return new requests_1.FetchMetadataDirectlySuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6251
6258
|
}
|
|
6252
6259
|
catch (error) {
|
|
6253
6260
|
await this.handleApiError(error);
|
|
@@ -6262,7 +6269,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6262
6269
|
return "object" === typeof input && null !== input && true;
|
|
6263
6270
|
};
|
|
6264
6271
|
if (false === __is(input)) {
|
|
6265
|
-
const $report =
|
|
6272
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6266
6273
|
((input, _path, _exceptionable = true) => {
|
|
6267
6274
|
const $vo0 = (input, _path, _exceptionable = true) => true;
|
|
6268
6275
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
@@ -6286,8 +6293,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6286
6293
|
if (!validateRes.success) {
|
|
6287
6294
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6288
6295
|
}
|
|
6289
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetTokensFromFaucetRoute()}`, payload);
|
|
6290
|
-
return new GetTokensFromFaucetSuccessResponse(response.data);
|
|
6296
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetTokensFromFaucetRoute()}`, payload);
|
|
6297
|
+
return new requests_1.GetTokensFromFaucetSuccessResponse(response.data);
|
|
6291
6298
|
}
|
|
6292
6299
|
catch (error) {
|
|
6293
6300
|
await this.handleApiError(error);
|
|
@@ -6308,15 +6315,15 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6308
6315
|
return "string" === typeof value;
|
|
6309
6316
|
});
|
|
6310
6317
|
const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
6311
|
-
const $io4 = input => (undefined === input.type || "
|
|
6312
|
-
const $io5 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
|
|
6313
|
-
const $io6 = input =>
|
|
6314
|
-
const $io7 = input => (
|
|
6318
|
+
const $io4 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
6319
|
+
const $io5 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io6(elem)) && (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
|
|
6320
|
+
const $io6 = input => ("string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start) && ("string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end);
|
|
6321
|
+
const $io7 = input => (undefined === input.metadata || "object" === typeof input.metadata && null !== input.metadata && $io1(input.metadata)) && "string" === typeof input.uri && (undefined === input.fetchedUri || "string" === typeof input.fetchedUri) && "string" === typeof input.customData && (undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs);
|
|
6315
6322
|
const $io8 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io9(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io10(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
|
|
6316
6323
|
const $io9 = input => true;
|
|
6317
6324
|
const $io10 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io11(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
|
|
6318
|
-
const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
6319
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6325
|
+
const $io11 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@1309"] && Object.keys(input).every(key => {
|
|
6326
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@1309"].some(prop => key === prop))
|
|
6320
6327
|
return true;
|
|
6321
6328
|
const value = input[key];
|
|
6322
6329
|
if (undefined === value)
|
|
@@ -6329,21 +6336,21 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6329
6336
|
if (undefined !== input.name)
|
|
6330
6337
|
return $io1(input);
|
|
6331
6338
|
else if (undefined !== input.badgeIds)
|
|
6332
|
-
return $
|
|
6339
|
+
return $io5(input);
|
|
6333
6340
|
else if (undefined !== input.leaves)
|
|
6334
6341
|
return $io8(input);
|
|
6335
6342
|
else
|
|
6336
|
-
return $
|
|
6343
|
+
return $io7(input);
|
|
6337
6344
|
})();
|
|
6338
6345
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
6339
6346
|
};
|
|
6340
6347
|
if (false === __is(input)) {
|
|
6341
|
-
const $report =
|
|
6348
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6342
6349
|
((input, _path, _exceptionable = true) => {
|
|
6343
|
-
const $join =
|
|
6350
|
+
const $join = typia_1.default.validate.join;
|
|
6344
6351
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
|
|
6345
6352
|
path: _path + ".contents",
|
|
6346
|
-
expected: "(Array<iMetadata<NumberType> |
|
|
6353
|
+
expected: "(Array<iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
6347
6354
|
value: input.contents
|
|
6348
6355
|
})) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6349
6356
|
path: _path + ".contents[" + _index1 + "]",
|
|
@@ -6355,7 +6362,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6355
6362
|
value: elem
|
|
6356
6363
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6357
6364
|
path: _path + ".contents",
|
|
6358
|
-
expected: "(Array<iMetadata<NumberType> |
|
|
6365
|
+
expected: "(Array<iMetadata<NumberType> | iBadgeMetadataDetails<NumberType> | iCollectionMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
6359
6366
|
value: input.contents
|
|
6360
6367
|
})].every(flag => flag);
|
|
6361
6368
|
const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
@@ -6458,7 +6465,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6458
6465
|
expected: "string",
|
|
6459
6466
|
value: input.assignMethod
|
|
6460
6467
|
})].every(flag => flag);
|
|
6461
|
-
const $vo4 = (input, _path, _exceptionable = true) => [undefined === input.type || "
|
|
6468
|
+
const $vo4 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
6462
6469
|
path: _path + ".type",
|
|
6463
6470
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
6464
6471
|
value: input.type
|
|
@@ -6471,7 +6478,23 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6471
6478
|
expected: "(boolean | number | string)",
|
|
6472
6479
|
value: input.value
|
|
6473
6480
|
})].every(flag => flag);
|
|
6474
|
-
const $vo5 = (input, _path, _exceptionable = true) => [
|
|
6481
|
+
const $vo5 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
|
|
6482
|
+
path: _path + ".badgeIds",
|
|
6483
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
6484
|
+
value: input.badgeIds
|
|
6485
|
+
})) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6486
|
+
path: _path + ".badgeIds[" + _index4 + "]",
|
|
6487
|
+
expected: "iUintRange<NumberType>",
|
|
6488
|
+
value: elem
|
|
6489
|
+
})) && $vo6(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6490
|
+
path: _path + ".badgeIds[" + _index4 + "]",
|
|
6491
|
+
expected: "iUintRange<NumberType>",
|
|
6492
|
+
value: elem
|
|
6493
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6494
|
+
path: _path + ".badgeIds",
|
|
6495
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
6496
|
+
value: input.badgeIds
|
|
6497
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6475
6498
|
path: _path + ".metadata",
|
|
6476
6499
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
6477
6500
|
value: input.metadata
|
|
@@ -6496,23 +6519,16 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6496
6519
|
expected: "(boolean | undefined)",
|
|
6497
6520
|
value: input.toUploadToIpfs
|
|
6498
6521
|
})].every(flag => flag);
|
|
6499
|
-
const $vo6 = (input, _path, _exceptionable = true) => [
|
|
6500
|
-
path: _path + ".
|
|
6501
|
-
expected: "
|
|
6502
|
-
value: input.
|
|
6503
|
-
})
|
|
6504
|
-
path: _path + ".
|
|
6505
|
-
expected: "
|
|
6506
|
-
value:
|
|
6507
|
-
})
|
|
6508
|
-
|
|
6509
|
-
expected: "iUintRange<NumberType>",
|
|
6510
|
-
value: elem
|
|
6511
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6512
|
-
path: _path + ".badgeIds",
|
|
6513
|
-
expected: "Array<iUintRange<NumberType>>",
|
|
6514
|
-
value: input.badgeIds
|
|
6515
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6522
|
+
const $vo6 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6523
|
+
path: _path + ".start",
|
|
6524
|
+
expected: "(bigint | number | string)",
|
|
6525
|
+
value: input.start
|
|
6526
|
+
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
6527
|
+
path: _path + ".end",
|
|
6528
|
+
expected: "(bigint | number | string)",
|
|
6529
|
+
value: input.end
|
|
6530
|
+
})].every(flag => flag);
|
|
6531
|
+
const $vo7 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6516
6532
|
path: _path + ".metadata",
|
|
6517
6533
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
6518
6534
|
value: input.metadata
|
|
@@ -6537,15 +6553,6 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6537
6553
|
expected: "(boolean | undefined)",
|
|
6538
6554
|
value: input.toUploadToIpfs
|
|
6539
6555
|
})].every(flag => flag);
|
|
6540
|
-
const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6541
|
-
path: _path + ".start",
|
|
6542
|
-
expected: "(bigint | number | string)",
|
|
6543
|
-
value: input.start
|
|
6544
|
-
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
6545
|
-
path: _path + ".end",
|
|
6546
|
-
expected: "(bigint | number | string)",
|
|
6547
|
-
value: input.end
|
|
6548
|
-
})].every(flag => flag);
|
|
6549
6556
|
const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
|
|
6550
6557
|
path: _path + ".leaves",
|
|
6551
6558
|
expected: "Array<string>",
|
|
@@ -6669,12 +6676,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6669
6676
|
path: _path + ".length",
|
|
6670
6677
|
expected: "number",
|
|
6671
6678
|
value: input.length
|
|
6672
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6673
|
-
path: _path + "[\"__@toStringTag@
|
|
6679
|
+
}), "Uint8Array" === input["__@toStringTag@1309"] || $report(_exceptionable, {
|
|
6680
|
+
path: _path + "[\"__@toStringTag@1309\"]",
|
|
6674
6681
|
expected: "\"Uint8Array\"",
|
|
6675
|
-
value: input["__@toStringTag@
|
|
6682
|
+
value: input["__@toStringTag@1309"]
|
|
6676
6683
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6677
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6684
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@1309"].some(prop => key === prop))
|
|
6678
6685
|
return true;
|
|
6679
6686
|
const value = input[key];
|
|
6680
6687
|
if (undefined === value)
|
|
@@ -6691,11 +6698,11 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6691
6698
|
if (undefined !== input.name)
|
|
6692
6699
|
return $vo1(input, _path, true && _exceptionable);
|
|
6693
6700
|
else if (undefined !== input.badgeIds)
|
|
6694
|
-
return $
|
|
6701
|
+
return $vo5(input, _path, true && _exceptionable);
|
|
6695
6702
|
else if (undefined !== input.leaves)
|
|
6696
6703
|
return $vo8(input, _path, true && _exceptionable);
|
|
6697
6704
|
else
|
|
6698
|
-
return $
|
|
6705
|
+
return $vo7(input, _path, true && _exceptionable);
|
|
6699
6706
|
})();
|
|
6700
6707
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
6701
6708
|
path: _path + "",
|
|
@@ -6718,8 +6725,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6718
6725
|
if (!validateRes.success) {
|
|
6719
6726
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6720
6727
|
}
|
|
6721
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddToIpfsRoute()}`, payload);
|
|
6722
|
-
return new AddToIpfsSuccessResponse(response.data);
|
|
6728
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddToIpfsRoute()}`, payload);
|
|
6729
|
+
return new requests_1.AddToIpfsSuccessResponse(response.data);
|
|
6723
6730
|
}
|
|
6724
6731
|
catch (error) {
|
|
6725
6732
|
await this.handleApiError(error);
|
|
@@ -6737,8 +6744,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6737
6744
|
const $io3 = input => Array.isArray(input.leaves) && input.leaves.every(elem => "string" === typeof elem) && "boolean" === typeof input.isHashed && (undefined === input.preimages || Array.isArray(input.preimages) && input.preimages.every(elem => "string" === typeof elem)) && (undefined === input.seedCode || "string" === typeof input.seedCode) && (undefined === input.tree || "object" === typeof input.tree && null !== input.tree && $io4(input.tree)) && (undefined === input.treeOptions || "object" === typeof input.treeOptions && null !== input.treeOptions && false === Array.isArray(input.treeOptions) && $io5(input.treeOptions)) && (undefined === input.numLeaves || "string" === typeof input.numLeaves || "number" === typeof input.numLeaves || "bigint" === typeof input.numLeaves) && (undefined === input.currCode || "string" === typeof input.currCode || "number" === typeof input.currCode || "bigint" === typeof input.currCode);
|
|
6738
6745
|
const $io4 = input => true;
|
|
6739
6746
|
const $io5 = input => (undefined === input.duplicateOdd || "boolean" === typeof input.duplicateOdd) && (undefined === input.hashLeaves || "boolean" === typeof input.hashLeaves) && (undefined === input.isBitcoinTree || "boolean" === typeof input.isBitcoinTree) && (undefined === input.sortLeaves || "boolean" === typeof input.sortLeaves) && (undefined === input.sortPairs || "boolean" === typeof input.sortPairs) && (undefined === input.sort || "boolean" === typeof input.sort) && (null !== input.fillDefaultHash && (undefined === input.fillDefaultHash || "function" === typeof input.fillDefaultHash || "string" === typeof input.fillDefaultHash || "object" === typeof input.fillDefaultHash && null !== input.fillDefaultHash && $io6(input.fillDefaultHash))) && (undefined === input.complete || "boolean" === typeof input.complete) && (undefined === input.concatenator || true);
|
|
6740
|
-
const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@
|
|
6741
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6747
|
+
const $io6 = input => "number" === typeof input.BYTES_PER_ELEMENT && (input.buffer instanceof ArrayBuffer || input.buffer instanceof SharedArrayBuffer) && "number" === typeof input.byteLength && "number" === typeof input.byteOffset && "number" === typeof input.length && "Uint8Array" === input["__@toStringTag@1309"] && Object.keys(input).every(key => {
|
|
6748
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@1309"].some(prop => key === prop))
|
|
6742
6749
|
return true;
|
|
6743
6750
|
const value = input[key];
|
|
6744
6751
|
if (undefined === value)
|
|
@@ -6764,13 +6771,13 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6764
6771
|
return "string" === typeof value;
|
|
6765
6772
|
});
|
|
6766
6773
|
const $io19 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
6767
|
-
const $io20 = input => (undefined === input.type || "
|
|
6774
|
+
const $io20 = input => (undefined === input.type || "date" === input.type || "url" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
6768
6775
|
return "object" === typeof input && null !== input && $io0(input);
|
|
6769
6776
|
};
|
|
6770
6777
|
if (false === __is(input)) {
|
|
6771
|
-
const $report =
|
|
6778
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6772
6779
|
((input, _path, _exceptionable = true) => {
|
|
6773
|
-
const $join =
|
|
6780
|
+
const $join = typia_1.default.validate.join;
|
|
6774
6781
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
|
|
6775
6782
|
path: _path + ".approvalDetails",
|
|
6776
6783
|
expected: "Array<__type>",
|
|
@@ -6953,12 +6960,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6953
6960
|
path: _path + ".length",
|
|
6954
6961
|
expected: "number",
|
|
6955
6962
|
value: input.length
|
|
6956
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6957
|
-
path: _path + "[\"__@toStringTag@
|
|
6963
|
+
}), "Uint8Array" === input["__@toStringTag@1309"] || $report(_exceptionable, {
|
|
6964
|
+
path: _path + "[\"__@toStringTag@1309\"]",
|
|
6958
6965
|
expected: "\"Uint8Array\"",
|
|
6959
|
-
value: input["__@toStringTag@
|
|
6966
|
+
value: input["__@toStringTag@1309"]
|
|
6960
6967
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6961
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6968
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@1309"].some(prop => key === prop))
|
|
6962
6969
|
return true;
|
|
6963
6970
|
const value = input[key];
|
|
6964
6971
|
if (undefined === value)
|
|
@@ -7345,7 +7352,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7345
7352
|
expected: "string",
|
|
7346
7353
|
value: input.assignMethod
|
|
7347
7354
|
})].every(flag => flag);
|
|
7348
|
-
const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.type || "
|
|
7355
|
+
const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.type || "date" === input.type || "url" === input.type || $report(_exceptionable, {
|
|
7349
7356
|
path: _path + ".type",
|
|
7350
7357
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
7351
7358
|
value: input.type
|
|
@@ -7379,8 +7386,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7379
7386
|
if (!validateRes.success) {
|
|
7380
7387
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7381
7388
|
}
|
|
7382
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddApprovalDetailsToOffChainStorageRoute()}`, payload);
|
|
7383
|
-
return new AddApprovalDetailsToOffChainStorageSuccessResponse(response.data);
|
|
7389
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddApprovalDetailsToOffChainStorageRoute()}`, payload);
|
|
7390
|
+
return new requests_1.AddApprovalDetailsToOffChainStorageSuccessResponse(response.data);
|
|
7384
7391
|
}
|
|
7385
7392
|
catch (error) {
|
|
7386
7393
|
await this.handleApiError(error);
|
|
@@ -7396,7 +7403,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7396
7403
|
return "object" === typeof input && null !== input && $io0(input);
|
|
7397
7404
|
};
|
|
7398
7405
|
if (false === __is(input)) {
|
|
7399
|
-
const $report =
|
|
7406
|
+
const $report = typia_1.default.validate.report(errors);
|
|
7400
7407
|
((input, _path, _exceptionable = true) => {
|
|
7401
7408
|
const $vo0 = (input, _path, _exceptionable = true) => ["Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain || $report(_exceptionable, {
|
|
7402
7409
|
path: _path + ".chain",
|
|
@@ -7428,8 +7435,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7428
7435
|
if (!validateRes.success) {
|
|
7429
7436
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7430
7437
|
}
|
|
7431
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
|
|
7432
|
-
return new GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
7438
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
|
|
7439
|
+
return new requests_1.GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
7433
7440
|
}
|
|
7434
7441
|
catch (error) {
|
|
7435
7442
|
await this.handleApiError(error);
|
|
@@ -7445,7 +7452,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7445
7452
|
return "object" === typeof input && null !== input && $io0(input);
|
|
7446
7453
|
};
|
|
7447
7454
|
if (false === __is(input)) {
|
|
7448
|
-
const $report =
|
|
7455
|
+
const $report = typia_1.default.validate.report(errors);
|
|
7449
7456
|
((input, _path, _exceptionable = true) => {
|
|
7450
7457
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
|
|
7451
7458
|
path: _path + ".message",
|
|
@@ -7481,8 +7488,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7481
7488
|
if (!validateRes.success) {
|
|
7482
7489
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7483
7490
|
}
|
|
7484
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
|
|
7485
|
-
return new VerifySignInSuccessResponse(response.data);
|
|
7491
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
|
|
7492
|
+
return new requests_1.VerifySignInSuccessResponse(response.data);
|
|
7486
7493
|
}
|
|
7487
7494
|
catch (error) {
|
|
7488
7495
|
await this.handleApiError(error);
|
|
@@ -7498,7 +7505,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7498
7505
|
return "object" === typeof input && null !== input && $io0(input);
|
|
7499
7506
|
};
|
|
7500
7507
|
if (false === __is(input)) {
|
|
7501
|
-
const $report =
|
|
7508
|
+
const $report = typia_1.default.validate.report(errors);
|
|
7502
7509
|
((input, _path, _exceptionable = true) => {
|
|
7503
7510
|
const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
|
|
7504
7511
|
path: _path + ".signOutBlockin",
|
|
@@ -7546,8 +7553,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7546
7553
|
if (!validateRes.success) {
|
|
7547
7554
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7548
7555
|
}
|
|
7549
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SignOutRoute()}`, payload);
|
|
7550
|
-
return new SignOutSuccessResponse(response.data);
|
|
7556
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SignOutRoute()}`, payload);
|
|
7557
|
+
return new requests_1.SignOutSuccessResponse(response.data);
|
|
7551
7558
|
}
|
|
7552
7559
|
catch (error) {
|
|
7553
7560
|
await this.handleApiError(error);
|
|
@@ -7555,5 +7562,6 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7555
7562
|
}
|
|
7556
7563
|
}
|
|
7557
7564
|
}
|
|
7558
|
-
|
|
7565
|
+
exports.BitBadgesAdminAPI = BitBadgesAdminAPI;
|
|
7566
|
+
exports.default = BitBadgesAPI;
|
|
7559
7567
|
//# sourceMappingURL=BitBadgesApi.js.map
|