bitbadgesjs-sdk 0.3.85 → 0.3.86
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.js +54 -39
- 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 +308 -300
- package/dist/api-indexer/BitBadgesApi.js.map +1 -1
- package/dist/api-indexer/BitBadgesCollection.js +138 -130
- package/dist/api-indexer/BitBadgesCollection.js.map +1 -1
- package/dist/api-indexer/BitBadgesUserInfo.js +47 -38
- 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/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.js +30 -24
- 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 +32 -16
- 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.d.ts +1 -1
- package/dist/core/permissions.d.ts.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.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +23 -8
- 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 +1 -1
|
@@ -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",
|
|
@@ -2610,8 +2616,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2610
2616
|
if (!validateRes.success) {
|
|
2611
2617
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2612
2618
|
}
|
|
2613
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenericVerifyRoute()}`, payload);
|
|
2614
|
-
return new GenericBlockinVerifySuccessResponse(response.data);
|
|
2619
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenericVerifyRoute()}`, payload);
|
|
2620
|
+
return new requests_1.GenericBlockinVerifySuccessResponse(response.data);
|
|
2615
2621
|
}
|
|
2616
2622
|
catch (error) {
|
|
2617
2623
|
await this.handleApiError(error);
|
|
@@ -2643,7 +2649,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2643
2649
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2644
2650
|
};
|
|
2645
2651
|
if (false === __is(input)) {
|
|
2646
|
-
const $report =
|
|
2652
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2647
2653
|
((input, _path, _exceptionable = true) => {
|
|
2648
2654
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.address || $report(_exceptionable, {
|
|
2649
2655
|
path: _path + ".address",
|
|
@@ -2827,8 +2833,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2827
2833
|
if (!validateRes.success) {
|
|
2828
2834
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2829
2835
|
}
|
|
2830
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenericVerifyAssetsRoute()}`, payload);
|
|
2831
|
-
return new GenericVerifyAssetsSuccessResponse(response.data);
|
|
2836
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenericVerifyAssetsRoute()}`, payload);
|
|
2837
|
+
return new requests_1.GenericVerifyAssetsSuccessResponse(response.data);
|
|
2832
2838
|
}
|
|
2833
2839
|
catch (error) {
|
|
2834
2840
|
await this.handleApiError(error);
|
|
@@ -2845,7 +2851,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2845
2851
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2846
2852
|
};
|
|
2847
2853
|
if (false === __is(input)) {
|
|
2848
|
-
const $report =
|
|
2854
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2849
2855
|
((input, _path, _exceptionable = true) => {
|
|
2850
2856
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimAlerts) || $report(_exceptionable, {
|
|
2851
2857
|
path: _path + ".claimAlerts",
|
|
@@ -2906,8 +2912,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2906
2912
|
if (!validateRes.success) {
|
|
2907
2913
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2908
2914
|
}
|
|
2909
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SendClaimAlertRoute()}`, payload);
|
|
2910
|
-
return new SendClaimAlertsSuccessResponse(response.data);
|
|
2915
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SendClaimAlertRoute()}`, payload);
|
|
2916
|
+
return new requests_1.SendClaimAlertsSuccessResponse(response.data);
|
|
2911
2917
|
}
|
|
2912
2918
|
catch (error) {
|
|
2913
2919
|
await this.handleApiError(error);
|
|
@@ -2923,7 +2929,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2923
2929
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2924
2930
|
};
|
|
2925
2931
|
if (false === __is(input)) {
|
|
2926
|
-
const $report =
|
|
2932
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2927
2933
|
((input, _path, _exceptionable = true) => {
|
|
2928
2934
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.collectionId || "number" === typeof input.collectionId || "bigint" === typeof input.collectionId || $report(_exceptionable, {
|
|
2929
2935
|
path: _path + ".collectionId",
|
|
@@ -2955,8 +2961,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2955
2961
|
if (!validateRes.success) {
|
|
2956
2962
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
2957
2963
|
}
|
|
2958
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetClaimAlertsRoute()}`, payload);
|
|
2959
|
-
return new GetClaimAlertsForCollectionSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
2964
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetClaimAlertsRoute()}`, payload);
|
|
2965
|
+
return new requests_1.GetClaimAlertsForCollectionSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
2960
2966
|
}
|
|
2961
2967
|
catch (error) {
|
|
2962
2968
|
await this.handleApiError(error);
|
|
@@ -2964,7 +2970,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2964
2970
|
}
|
|
2965
2971
|
}
|
|
2966
2972
|
async getRefreshStatus(collectionId) {
|
|
2967
|
-
return await BitBadgesCollection.GetRefreshStatus(this, collectionId);
|
|
2973
|
+
return await BitBadgesCollection_1.BitBadgesCollection.GetRefreshStatus(this, collectionId);
|
|
2968
2974
|
}
|
|
2969
2975
|
async getMaps(payload) {
|
|
2970
2976
|
try {
|
|
@@ -2975,7 +2981,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
2975
2981
|
return "object" === typeof input && null !== input && $io0(input);
|
|
2976
2982
|
};
|
|
2977
2983
|
if (false === __is(input)) {
|
|
2978
|
-
const $report =
|
|
2984
|
+
const $report = typia_1.default.validate.report(errors);
|
|
2979
2985
|
((input, _path, _exceptionable = true) => {
|
|
2980
2986
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.mapIds) || $report(_exceptionable, {
|
|
2981
2987
|
path: _path + ".mapIds",
|
|
@@ -3011,8 +3017,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3011
3017
|
if (!validateRes.success) {
|
|
3012
3018
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3013
3019
|
}
|
|
3014
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetMapsRoute()}`, payload);
|
|
3015
|
-
return new GetMapsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3020
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetMapsRoute()}`, payload);
|
|
3021
|
+
return new maps_1.GetMapsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3016
3022
|
}
|
|
3017
3023
|
catch (error) {
|
|
3018
3024
|
await this.handleApiError(error);
|
|
@@ -3029,7 +3035,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3029
3035
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3030
3036
|
};
|
|
3031
3037
|
if (false === __is(input)) {
|
|
3032
|
-
const $report =
|
|
3038
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3033
3039
|
((input, _path, _exceptionable = true) => {
|
|
3034
3040
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.valuesToFetch) || $report(_exceptionable, {
|
|
3035
3041
|
path: _path + ".valuesToFetch",
|
|
@@ -3086,8 +3092,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3086
3092
|
if (!validateRes.success) {
|
|
3087
3093
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3088
3094
|
}
|
|
3089
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetMapValuesRoute()}`, payload);
|
|
3090
|
-
return new GetMapValuesSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3095
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetMapValuesRoute()}`, payload);
|
|
3096
|
+
return new maps_1.GetMapValuesSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3091
3097
|
}
|
|
3092
3098
|
catch (error) {
|
|
3093
3099
|
await this.handleApiError(error);
|
|
@@ -3095,7 +3101,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3095
3101
|
}
|
|
3096
3102
|
}
|
|
3097
3103
|
async filterBadgesInCollection(collectionId, payload) {
|
|
3098
|
-
return await BitBadgesCollection.FilterBadgesInCollection(this, collectionId, payload);
|
|
3104
|
+
return await BitBadgesCollection_1.BitBadgesCollection.FilterBadgesInCollection(this, collectionId, payload);
|
|
3099
3105
|
}
|
|
3100
3106
|
async filterSuggestions(collectionId, payload) {
|
|
3101
3107
|
try {
|
|
@@ -3105,7 +3111,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3105
3111
|
return "object" === typeof input && null !== input && true;
|
|
3106
3112
|
};
|
|
3107
3113
|
if (false === __is(input)) {
|
|
3108
|
-
const $report =
|
|
3114
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3109
3115
|
((input, _path, _exceptionable = true) => {
|
|
3110
3116
|
const $vo0 = (input, _path, _exceptionable = true) => true;
|
|
3111
3117
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
@@ -3129,8 +3135,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3129
3135
|
if (!validateRes.success) {
|
|
3130
3136
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3131
3137
|
}
|
|
3132
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.FilterSuggestionsRoute(collectionId)}`, payload);
|
|
3133
|
-
return new FilterSuggestionsSuccessResponse(response.data);
|
|
3138
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.FilterSuggestionsRoute(collectionId)}`, payload);
|
|
3139
|
+
return new collections_1.FilterSuggestionsSuccessResponse(response.data);
|
|
3134
3140
|
}
|
|
3135
3141
|
catch (error) {
|
|
3136
3142
|
await this.handleApiError(error);
|
|
@@ -3146,7 +3152,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3146
3152
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3147
3153
|
};
|
|
3148
3154
|
if (false === __is(input)) {
|
|
3149
|
-
const $report =
|
|
3155
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3150
3156
|
((input, _path, _exceptionable = true) => {
|
|
3151
3157
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
3152
3158
|
path: _path + ".claimIds",
|
|
@@ -3186,8 +3192,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3186
3192
|
if (!validateRes.success) {
|
|
3187
3193
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3188
3194
|
}
|
|
3189
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetClaimsRoute()}`, payload);
|
|
3190
|
-
return new GetClaimsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3195
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetClaimsRoute()}`, payload);
|
|
3196
|
+
return new requests_1.GetClaimsSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3191
3197
|
}
|
|
3192
3198
|
catch (error) {
|
|
3193
3199
|
await this.handleApiError(error);
|
|
@@ -3203,7 +3209,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3203
3209
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
3204
3210
|
};
|
|
3205
3211
|
if (false === __is(input)) {
|
|
3206
|
-
const $report =
|
|
3212
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3207
3213
|
((input, _path, _exceptionable = true) => {
|
|
3208
3214
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.addKey || "string" === typeof input.addKey || $report(_exceptionable, {
|
|
3209
3215
|
path: _path + ".addKey",
|
|
@@ -3235,8 +3241,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3235
3241
|
if (!validateRes.success) {
|
|
3236
3242
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3237
3243
|
}
|
|
3238
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetAttestationsRoute()}`, payload);
|
|
3239
|
-
return new GetAttestationSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3244
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetAttestationsRoute()}`, payload);
|
|
3245
|
+
return new requests_1.GetAttestationSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
3240
3246
|
}
|
|
3241
3247
|
catch (error) {
|
|
3242
3248
|
await this.handleApiError(error);
|
|
@@ -3254,7 +3260,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3254
3260
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3255
3261
|
};
|
|
3256
3262
|
if (false === __is(input)) {
|
|
3257
|
-
const $report =
|
|
3263
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3258
3264
|
((input, _path, _exceptionable = true) => {
|
|
3259
3265
|
const $vo0 = (input, _path, _exceptionable = true) => [("object" === typeof input.proofOfIssuance && null !== input.proofOfIssuance || $report(_exceptionable, {
|
|
3260
3266
|
path: _path + ".proofOfIssuance",
|
|
@@ -3360,8 +3366,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3360
3366
|
if (!validateRes.success) {
|
|
3361
3367
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3362
3368
|
}
|
|
3363
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
|
|
3364
|
-
return new CreateAttestationSuccessResponse(response.data);
|
|
3369
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
|
|
3370
|
+
return new requests_1.CreateAttestationSuccessResponse(response.data);
|
|
3365
3371
|
}
|
|
3366
3372
|
catch (error) {
|
|
3367
3373
|
await this.handleApiError(error);
|
|
@@ -3376,7 +3382,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3376
3382
|
return "object" === typeof input && null !== input && "string" === typeof input.attestationId;
|
|
3377
3383
|
};
|
|
3378
3384
|
if (false === __is(input)) {
|
|
3379
|
-
const $report =
|
|
3385
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3380
3386
|
((input, _path, _exceptionable = true) => {
|
|
3381
3387
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.attestationId || $report(_exceptionable, {
|
|
3382
3388
|
path: _path + ".attestationId",
|
|
@@ -3404,10 +3410,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3404
3410
|
if (!validateRes.success) {
|
|
3405
3411
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3406
3412
|
}
|
|
3407
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationRoute()}`, {
|
|
3413
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationRoute()}`, {
|
|
3408
3414
|
data: payload
|
|
3409
3415
|
});
|
|
3410
|
-
return new DeleteAttestationSuccessResponse(response.data);
|
|
3416
|
+
return new requests_1.DeleteAttestationSuccessResponse(response.data);
|
|
3411
3417
|
}
|
|
3412
3418
|
catch (error) {
|
|
3413
3419
|
await this.handleApiError(error);
|
|
@@ -3427,7 +3433,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3427
3433
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
3428
3434
|
};
|
|
3429
3435
|
if (false === __is(input)) {
|
|
3430
|
-
const $report =
|
|
3436
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3431
3437
|
((input, _path, _exceptionable = true) => {
|
|
3432
3438
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.attestationId || "string" === typeof input.attestationId || $report(_exceptionable, {
|
|
3433
3439
|
path: _path + ".attestationId",
|
|
@@ -3595,8 +3601,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3595
3601
|
if (!validateRes.success) {
|
|
3596
3602
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
3597
3603
|
}
|
|
3598
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
|
|
3599
|
-
return new UpdateAttestationSuccessResponse(response.data);
|
|
3604
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationRoute()}`, payload);
|
|
3605
|
+
return new requests_1.UpdateAttestationSuccessResponse(response.data);
|
|
3600
3606
|
}
|
|
3601
3607
|
catch (error) {
|
|
3602
3608
|
await this.handleApiError(error);
|
|
@@ -3618,7 +3624,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3618
3624
|
return "string" === typeof value;
|
|
3619
3625
|
});
|
|
3620
3626
|
const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
3621
|
-
const $io5 = input => (undefined === input.type || "
|
|
3627
|
+
const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
3622
3628
|
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));
|
|
3623
3629
|
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
3624
3630
|
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)));
|
|
@@ -3630,9 +3636,9 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3630
3636
|
return "object" === typeof input && null !== input && $io0(input);
|
|
3631
3637
|
};
|
|
3632
3638
|
if (false === __is(input)) {
|
|
3633
|
-
const $report =
|
|
3639
|
+
const $report = typia_1.default.validate.report(errors);
|
|
3634
3640
|
((input, _path, _exceptionable = true) => {
|
|
3635
|
-
const $join =
|
|
3641
|
+
const $join = typia_1.default.validate.join;
|
|
3636
3642
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
|
|
3637
3643
|
path: _path + ".claims",
|
|
3638
3644
|
expected: "Array<CreateClaimRequest<NumberType>>",
|
|
@@ -3815,7 +3821,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
3815
3821
|
expected: "string",
|
|
3816
3822
|
value: input.assignMethod
|
|
3817
3823
|
})].every(flag => flag);
|
|
3818
|
-
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "
|
|
3824
|
+
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
3819
3825
|
path: _path + ".type",
|
|
3820
3826
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
3821
3827
|
value: input.type
|
|
@@ -4054,8 +4060,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4054
4060
|
if (!validateRes.success) {
|
|
4055
4061
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4056
4062
|
}
|
|
4057
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
|
|
4058
|
-
return new CreateClaimSuccessResponse(response.data);
|
|
4063
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
|
|
4064
|
+
return new requests_1.CreateClaimSuccessResponse(response.data);
|
|
4059
4065
|
}
|
|
4060
4066
|
catch (error) {
|
|
4061
4067
|
await this.handleApiError(error);
|
|
@@ -4071,7 +4077,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4071
4077
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4072
4078
|
};
|
|
4073
4079
|
if (false === __is(input)) {
|
|
4074
|
-
const $report =
|
|
4080
|
+
const $report = typia_1.default.validate.report(errors);
|
|
4075
4081
|
((input, _path, _exceptionable = true) => {
|
|
4076
4082
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claimIds) || $report(_exceptionable, {
|
|
4077
4083
|
path: _path + ".claimIds",
|
|
@@ -4107,10 +4113,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4107
4113
|
if (!validateRes.success) {
|
|
4108
4114
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4109
4115
|
}
|
|
4110
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDClaimsRoute()}`, {
|
|
4116
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDClaimsRoute()}`, {
|
|
4111
4117
|
data: payload
|
|
4112
4118
|
});
|
|
4113
|
-
return new DeleteClaimSuccessResponse(response.data);
|
|
4119
|
+
return new requests_1.DeleteClaimSuccessResponse(response.data);
|
|
4114
4120
|
}
|
|
4115
4121
|
catch (error) {
|
|
4116
4122
|
await this.handleApiError(error);
|
|
@@ -4132,7 +4138,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4132
4138
|
return "string" === typeof value;
|
|
4133
4139
|
});
|
|
4134
4140
|
const $io4 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
4135
|
-
const $io5 = input => (undefined === input.type || "
|
|
4141
|
+
const $io5 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
4136
4142
|
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));
|
|
4137
4143
|
const $io7 = input => Array.isArray(input.balances) && input.balances.every(elem => "object" === typeof elem && null !== elem && $io8(elem));
|
|
4138
4144
|
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)));
|
|
@@ -4144,9 +4150,9 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4144
4150
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4145
4151
|
};
|
|
4146
4152
|
if (false === __is(input)) {
|
|
4147
|
-
const $report =
|
|
4153
|
+
const $report = typia_1.default.validate.report(errors);
|
|
4148
4154
|
((input, _path, _exceptionable = true) => {
|
|
4149
|
-
const $join =
|
|
4155
|
+
const $join = typia_1.default.validate.join;
|
|
4150
4156
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.claims) || $report(_exceptionable, {
|
|
4151
4157
|
path: _path + ".claims",
|
|
4152
4158
|
expected: "Array<Omit<iClaimDetails<NumberType>, \"seedCode\">>",
|
|
@@ -4313,7 +4319,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4313
4319
|
expected: "string",
|
|
4314
4320
|
value: input.assignMethod
|
|
4315
4321
|
})].every(flag => flag);
|
|
4316
|
-
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "
|
|
4322
|
+
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
4317
4323
|
path: _path + ".type",
|
|
4318
4324
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
4319
4325
|
value: input.type
|
|
@@ -4568,8 +4574,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4568
4574
|
if (!validateRes.success) {
|
|
4569
4575
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4570
4576
|
}
|
|
4571
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
|
|
4572
|
-
return new UpdateClaimSuccessResponse(response.data);
|
|
4577
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDClaimsRoute()}`, payload);
|
|
4578
|
+
return new requests_1.UpdateClaimSuccessResponse(response.data);
|
|
4573
4579
|
}
|
|
4574
4580
|
catch (error) {
|
|
4575
4581
|
await this.handleApiError(error);
|
|
@@ -4584,7 +4590,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4584
4590
|
return "object" === typeof input && null !== input && "string" === typeof input.token;
|
|
4585
4591
|
};
|
|
4586
4592
|
if (false === __is(input)) {
|
|
4587
|
-
const $report =
|
|
4593
|
+
const $report = typia_1.default.validate.report(errors);
|
|
4588
4594
|
((input, _path, _exceptionable = true) => {
|
|
4589
4595
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.token || $report(_exceptionable, {
|
|
4590
4596
|
path: _path + ".token",
|
|
@@ -4612,8 +4618,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4612
4618
|
if (!validateRes.success) {
|
|
4613
4619
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4614
4620
|
}
|
|
4615
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.OauthRevokeRoute()}`, payload);
|
|
4616
|
-
return new OauthRevokeSuccessResponse(response.data);
|
|
4621
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.OauthRevokeRoute()}`, payload);
|
|
4622
|
+
return new requests_1.OauthRevokeSuccessResponse(response.data);
|
|
4617
4623
|
}
|
|
4618
4624
|
catch (error) {
|
|
4619
4625
|
await this.handleApiError(error);
|
|
@@ -4644,9 +4650,9 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4644
4650
|
return "object" === typeof input && null !== input && $io0(input);
|
|
4645
4651
|
};
|
|
4646
4652
|
if (false === __is(input)) {
|
|
4647
|
-
const $report =
|
|
4653
|
+
const $report = typia_1.default.validate.report(errors);
|
|
4648
4654
|
((input, _path, _exceptionable = true) => {
|
|
4649
|
-
const $join =
|
|
4655
|
+
const $join = typia_1.default.validate.join;
|
|
4650
4656
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.balances || ("object" === typeof input.balances && null !== input.balances && false === Array.isArray(input.balances) || $report(_exceptionable, {
|
|
4651
4657
|
path: _path + ".balances",
|
|
4652
4658
|
expected: "(iOffChainBalancesMap<NumberType> | undefined)",
|
|
@@ -4981,8 +4987,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4981
4987
|
if (!validateRes.success) {
|
|
4982
4988
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
4983
4989
|
}
|
|
4984
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddBalancesToOffChainStorageRoute()}`, payload);
|
|
4985
|
-
return new AddBalancesToOffChainStorageSuccessResponse(response.data);
|
|
4990
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddBalancesToOffChainStorageRoute()}`, payload);
|
|
4991
|
+
return new requests_1.AddBalancesToOffChainStorageSuccessResponse(response.data);
|
|
4986
4992
|
}
|
|
4987
4993
|
catch (error) {
|
|
4988
4994
|
await this.handleApiError(error);
|
|
@@ -4997,7 +5003,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
4997
5003
|
return "object" === typeof input && null !== input && "string" === typeof input.id;
|
|
4998
5004
|
};
|
|
4999
5005
|
if (false === __is(input)) {
|
|
5000
|
-
const $report =
|
|
5006
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5001
5007
|
((input, _path, _exceptionable = true) => {
|
|
5002
5008
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
|
|
5003
5009
|
path: _path + ".id",
|
|
@@ -5025,8 +5031,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5025
5031
|
if (!validateRes.success) {
|
|
5026
5032
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5027
5033
|
}
|
|
5028
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetAttestationProofsRoute()}`, payload);
|
|
5029
|
-
return new GetAttestationProofSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
5034
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetAttestationProofsRoute()}`, payload);
|
|
5035
|
+
return new requests_1.GetAttestationProofSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
5030
5036
|
}
|
|
5031
5037
|
catch (error) {
|
|
5032
5038
|
await this.handleApiError(error);
|
|
@@ -5046,7 +5052,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5046
5052
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5047
5053
|
};
|
|
5048
5054
|
if (false === __is(input)) {
|
|
5049
|
-
const $report =
|
|
5055
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5050
5056
|
((input, _path, _exceptionable = true) => {
|
|
5051
5057
|
const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.displayOnProfile || $report(_exceptionable, {
|
|
5052
5058
|
path: _path + ".displayOnProfile",
|
|
@@ -5230,8 +5236,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5230
5236
|
if (!validateRes.success) {
|
|
5231
5237
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5232
5238
|
}
|
|
5233
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, payload);
|
|
5234
|
-
return new CreateAttestationProofSuccessResponse(response.data);
|
|
5239
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, payload);
|
|
5240
|
+
return new requests_1.CreateAttestationProofSuccessResponse(response.data);
|
|
5235
5241
|
}
|
|
5236
5242
|
catch (error) {
|
|
5237
5243
|
await this.handleApiError(error);
|
|
@@ -5246,7 +5252,7 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5246
5252
|
return "object" === typeof input && null !== input && "string" === typeof input.id;
|
|
5247
5253
|
};
|
|
5248
5254
|
if (false === __is(input)) {
|
|
5249
|
-
const $report =
|
|
5255
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5250
5256
|
((input, _path, _exceptionable = true) => {
|
|
5251
5257
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.id || $report(_exceptionable, {
|
|
5252
5258
|
path: _path + ".id",
|
|
@@ -5274,10 +5280,10 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5274
5280
|
if (!validateRes.success) {
|
|
5275
5281
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5276
5282
|
}
|
|
5277
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, {
|
|
5283
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDAttestationProofRoute()}`, {
|
|
5278
5284
|
data: payload
|
|
5279
5285
|
});
|
|
5280
|
-
return new DeleteAttestationProofSuccessResponse(response.data);
|
|
5286
|
+
return new requests_1.DeleteAttestationProofSuccessResponse(response.data);
|
|
5281
5287
|
}
|
|
5282
5288
|
catch (error) {
|
|
5283
5289
|
await this.handleApiError(error);
|
|
@@ -5288,7 +5294,8 @@ export class BitBadgesAPI extends BaseBitBadgesApi {
|
|
|
5288
5294
|
return await this.updateAccountInfo({ seenActivity: Date.now() });
|
|
5289
5295
|
}
|
|
5290
5296
|
}
|
|
5291
|
-
|
|
5297
|
+
exports.BitBadgesAPI = BitBadgesAPI;
|
|
5298
|
+
class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
5292
5299
|
constructor(apiDetails) {
|
|
5293
5300
|
super(apiDetails);
|
|
5294
5301
|
}
|
|
@@ -5300,7 +5307,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5300
5307
|
return "object" === typeof input && null !== input && true;
|
|
5301
5308
|
};
|
|
5302
5309
|
if (false === __is(input)) {
|
|
5303
|
-
const $report =
|
|
5310
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5304
5311
|
((input, _path, _exceptionable = true) => {
|
|
5305
5312
|
const $vo0 = (input, _path, _exceptionable = true) => true;
|
|
5306
5313
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
@@ -5324,8 +5331,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5324
5331
|
if (!validateRes.success) {
|
|
5325
5332
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5326
5333
|
}
|
|
5327
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetActiveAuthorizationsRoute()}`, payload);
|
|
5328
|
-
return new GetActiveAuthorizationsSuccessResponse(response.data);
|
|
5334
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetActiveAuthorizationsRoute()}`, payload);
|
|
5335
|
+
return new requests_1.GetActiveAuthorizationsSuccessResponse(response.data);
|
|
5329
5336
|
}
|
|
5330
5337
|
catch (error) {
|
|
5331
5338
|
await this.handleApiError(error);
|
|
@@ -5340,13 +5347,13 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5340
5347
|
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));
|
|
5341
5348
|
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;
|
|
5342
5349
|
const $io2 = input => "string" === typeof input.baseUri;
|
|
5343
|
-
const $io3 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5350
|
+
const $io3 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.helper || "string" === typeof input.helper);
|
|
5344
5351
|
const $io4 = input => "string" === typeof input.baseUri;
|
|
5345
5352
|
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);
|
|
5346
5353
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5347
5354
|
};
|
|
5348
5355
|
if (false === __is(input)) {
|
|
5349
|
-
const $report =
|
|
5356
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5350
5357
|
((input, _path, _exceptionable = true) => {
|
|
5351
5358
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
5352
5359
|
path: _path + ".pluginId",
|
|
@@ -5479,7 +5486,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5479
5486
|
path: _path + ".label",
|
|
5480
5487
|
expected: "string",
|
|
5481
5488
|
value: input.label
|
|
5482
|
-
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5489
|
+
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
5483
5490
|
path: _path + ".type",
|
|
5484
5491
|
expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
|
|
5485
5492
|
value: input.type
|
|
@@ -5551,8 +5558,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5551
5558
|
if (!validateRes.success) {
|
|
5552
5559
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5553
5560
|
}
|
|
5554
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
|
|
5555
|
-
return new CreatePluginSuccessResponse(response.data);
|
|
5561
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
|
|
5562
|
+
return new requests_1.CreatePluginSuccessResponse(response.data);
|
|
5556
5563
|
}
|
|
5557
5564
|
catch (error) {
|
|
5558
5565
|
await this.handleApiError(error);
|
|
@@ -5566,14 +5573,14 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5566
5573
|
const __is = input => {
|
|
5567
5574
|
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);
|
|
5568
5575
|
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);
|
|
5569
|
-
const $io2 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5576
|
+
const $io2 = input => "string" === typeof input.key && "string" === typeof input.label && ("string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type) && (undefined === input.helper || "string" === typeof input.helper);
|
|
5570
5577
|
const $io3 = input => "string" === typeof input.baseUri;
|
|
5571
5578
|
const $io4 = input => "string" === typeof input.baseUri;
|
|
5572
5579
|
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);
|
|
5573
5580
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5574
5581
|
};
|
|
5575
5582
|
if (false === __is(input)) {
|
|
5576
|
-
const $report =
|
|
5583
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5577
5584
|
((input, _path, _exceptionable = true) => {
|
|
5578
5585
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
5579
5586
|
path: _path + ".pluginId",
|
|
@@ -5697,7 +5704,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5697
5704
|
path: _path + ".label",
|
|
5698
5705
|
expected: "string",
|
|
5699
5706
|
value: input.label
|
|
5700
|
-
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "
|
|
5707
|
+
}), "string" === input.type || "number" === input.type || "boolean" === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
5701
5708
|
path: _path + ".type",
|
|
5702
5709
|
expected: "(\"boolean\" | \"date\" | \"number\" | \"string\" | \"url\")",
|
|
5703
5710
|
value: input.type
|
|
@@ -5774,8 +5781,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5774
5781
|
if (!validateRes.success) {
|
|
5775
5782
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5776
5783
|
}
|
|
5777
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
|
|
5778
|
-
return new UpdatePluginSuccessResponse(response.data);
|
|
5784
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDPluginRoute()}`, payload);
|
|
5785
|
+
return new requests_1.UpdatePluginSuccessResponse(response.data);
|
|
5779
5786
|
}
|
|
5780
5787
|
catch (error) {
|
|
5781
5788
|
await this.handleApiError(error);
|
|
@@ -5790,7 +5797,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5790
5797
|
return "object" === typeof input && null !== input && "string" === typeof input.pluginId;
|
|
5791
5798
|
};
|
|
5792
5799
|
if (false === __is(input)) {
|
|
5793
|
-
const $report =
|
|
5800
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5794
5801
|
((input, _path, _exceptionable = true) => {
|
|
5795
5802
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.pluginId || $report(_exceptionable, {
|
|
5796
5803
|
path: _path + ".pluginId",
|
|
@@ -5818,10 +5825,10 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5818
5825
|
if (!validateRes.success) {
|
|
5819
5826
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5820
5827
|
}
|
|
5821
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDPluginRoute()}`, {
|
|
5828
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDPluginRoute()}`, {
|
|
5822
5829
|
data: payload
|
|
5823
5830
|
});
|
|
5824
|
-
return new DeletePluginSuccessResponse(response.data);
|
|
5831
|
+
return new requests_1.DeletePluginSuccessResponse(response.data);
|
|
5825
5832
|
}
|
|
5826
5833
|
catch (error) {
|
|
5827
5834
|
await this.handleApiError(error);
|
|
@@ -5837,7 +5844,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5837
5844
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
5838
5845
|
};
|
|
5839
5846
|
if (false === __is(input)) {
|
|
5840
|
-
const $report =
|
|
5847
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5841
5848
|
((input, _path, _exceptionable = true) => {
|
|
5842
5849
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.clientId || "string" === typeof input.clientId || $report(_exceptionable, {
|
|
5843
5850
|
path: _path + ".clientId",
|
|
@@ -5865,8 +5872,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5865
5872
|
if (!validateRes.success) {
|
|
5866
5873
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5867
5874
|
}
|
|
5868
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetDeveloperAppsRoute()}`, payload);
|
|
5869
|
-
return new GetDeveloperAppSuccessResponse(response.data);
|
|
5875
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetDeveloperAppsRoute()}`, payload);
|
|
5876
|
+
return new requests_1.GetDeveloperAppSuccessResponse(response.data);
|
|
5870
5877
|
}
|
|
5871
5878
|
catch (error) {
|
|
5872
5879
|
await this.handleApiError(error);
|
|
@@ -5882,7 +5889,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5882
5889
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5883
5890
|
};
|
|
5884
5891
|
if (false === __is(input)) {
|
|
5885
|
-
const $report =
|
|
5892
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5886
5893
|
((input, _path, _exceptionable = true) => {
|
|
5887
5894
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
5888
5895
|
path: _path + ".name",
|
|
@@ -5930,8 +5937,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5930
5937
|
if (!validateRes.success) {
|
|
5931
5938
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5932
5939
|
}
|
|
5933
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
|
|
5934
|
-
return new CreateDeveloperAppSuccessResponse(response.data);
|
|
5940
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
|
|
5941
|
+
return new requests_1.CreateDeveloperAppSuccessResponse(response.data);
|
|
5935
5942
|
}
|
|
5936
5943
|
catch (error) {
|
|
5937
5944
|
await this.handleApiError(error);
|
|
@@ -5947,7 +5954,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5947
5954
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5948
5955
|
};
|
|
5949
5956
|
if (false === __is(input)) {
|
|
5950
|
-
const $report =
|
|
5957
|
+
const $report = typia_1.default.validate.report(errors);
|
|
5951
5958
|
((input, _path, _exceptionable = true) => {
|
|
5952
5959
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.clientId || $report(_exceptionable, {
|
|
5953
5960
|
path: _path + ".clientId",
|
|
@@ -5979,8 +5986,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5979
5986
|
if (!validateRes.success) {
|
|
5980
5987
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
5981
5988
|
}
|
|
5982
|
-
const response = await this.axios.delete(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, { data: payload });
|
|
5983
|
-
return new DeleteDeveloperAppSuccessResponse(response.data);
|
|
5989
|
+
const response = await this.axios.delete(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, { data: payload });
|
|
5990
|
+
return new requests_1.DeleteDeveloperAppSuccessResponse(response.data);
|
|
5984
5991
|
}
|
|
5985
5992
|
catch (error) {
|
|
5986
5993
|
await this.handleApiError(error);
|
|
@@ -5996,7 +6003,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
5996
6003
|
return "object" === typeof input && null !== input && $io0(input);
|
|
5997
6004
|
};
|
|
5998
6005
|
if (false === __is(input)) {
|
|
5999
|
-
const $report =
|
|
6006
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6000
6007
|
((input, _path, _exceptionable = true) => {
|
|
6001
6008
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.clientId || $report(_exceptionable, {
|
|
6002
6009
|
path: _path + ".clientId",
|
|
@@ -6052,8 +6059,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6052
6059
|
if (!validateRes.success) {
|
|
6053
6060
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6054
6061
|
}
|
|
6055
|
-
const response = await this.axios.put(`${this.BACKEND_URL}${BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
|
|
6056
|
-
return new UpdateDeveloperAppSuccessResponse(response.data);
|
|
6062
|
+
const response = await this.axios.put(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.CRUDDeveloperAppRoute()}`, payload);
|
|
6063
|
+
return new requests_1.UpdateDeveloperAppSuccessResponse(response.data);
|
|
6057
6064
|
}
|
|
6058
6065
|
catch (error) {
|
|
6059
6066
|
await this.handleApiError(error);
|
|
@@ -6069,7 +6076,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6069
6076
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
6070
6077
|
};
|
|
6071
6078
|
if (false === __is(input)) {
|
|
6072
|
-
const $report =
|
|
6079
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6073
6080
|
((input, _path, _exceptionable = true) => {
|
|
6074
6081
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.createdPluginsOnly || "boolean" === typeof input.createdPluginsOnly || $report(_exceptionable, {
|
|
6075
6082
|
path: _path + ".createdPluginsOnly",
|
|
@@ -6101,8 +6108,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6101
6108
|
if (!validateRes.success) {
|
|
6102
6109
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6103
6110
|
}
|
|
6104
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetPluginRoute()}`, payload);
|
|
6105
|
-
return new GetPluginSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6111
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetPluginRoute()}`, payload);
|
|
6112
|
+
return new requests_1.GetPluginSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6106
6113
|
}
|
|
6107
6114
|
catch (error) {
|
|
6108
6115
|
await this.handleApiError(error);
|
|
@@ -6117,7 +6124,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6117
6124
|
return "object" === typeof input && null !== input && "string" === typeof input.code;
|
|
6118
6125
|
};
|
|
6119
6126
|
if (false === __is(input)) {
|
|
6120
|
-
const $report =
|
|
6127
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6121
6128
|
((input, _path, _exceptionable = true) => {
|
|
6122
6129
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
|
|
6123
6130
|
path: _path + ".code",
|
|
@@ -6145,8 +6152,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6145
6152
|
if (!validateRes.success) {
|
|
6146
6153
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6147
6154
|
}
|
|
6148
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenerateGoogleWalletPassRoute()}`, payload);
|
|
6149
|
-
return new GenerateGoogleWalletSuccessResponse(response.data);
|
|
6155
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenerateGoogleWalletPassRoute()}`, payload);
|
|
6156
|
+
return new requests_1.GenerateGoogleWalletSuccessResponse(response.data);
|
|
6150
6157
|
}
|
|
6151
6158
|
catch (error) {
|
|
6152
6159
|
await this.handleApiError(error);
|
|
@@ -6161,7 +6168,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6161
6168
|
return "object" === typeof input && null !== input && "string" === typeof input.code;
|
|
6162
6169
|
};
|
|
6163
6170
|
if (false === __is(input)) {
|
|
6164
|
-
const $report =
|
|
6171
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6165
6172
|
((input, _path, _exceptionable = true) => {
|
|
6166
6173
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.code || $report(_exceptionable, {
|
|
6167
6174
|
path: _path + ".code",
|
|
@@ -6189,8 +6196,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6189
6196
|
if (!validateRes.success) {
|
|
6190
6197
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6191
6198
|
}
|
|
6192
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GenerateAppleWalletPassRoute()}`, payload);
|
|
6193
|
-
return new GenerateAppleWalletPassSuccessResponse(response.data);
|
|
6199
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GenerateAppleWalletPassRoute()}`, payload);
|
|
6200
|
+
return new requests_1.GenerateAppleWalletPassSuccessResponse(response.data);
|
|
6194
6201
|
}
|
|
6195
6202
|
catch (error) {
|
|
6196
6203
|
await this.handleApiError(error);
|
|
@@ -6206,7 +6213,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6206
6213
|
return "object" === typeof input && null !== input && $io0(input);
|
|
6207
6214
|
};
|
|
6208
6215
|
if (false === __is(input)) {
|
|
6209
|
-
const $report =
|
|
6216
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6210
6217
|
((input, _path, _exceptionable = true) => {
|
|
6211
6218
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.uris) || $report(_exceptionable, {
|
|
6212
6219
|
path: _path + ".uris",
|
|
@@ -6242,8 +6249,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6242
6249
|
if (!validateRes.success) {
|
|
6243
6250
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6244
6251
|
}
|
|
6245
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.FetchMetadataDirectlyRoute()}`, payload);
|
|
6246
|
-
return new FetchMetadataDirectlySuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6252
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.FetchMetadataDirectlyRoute()}`, payload);
|
|
6253
|
+
return new requests_1.FetchMetadataDirectlySuccessResponse(response.data).convert(this.ConvertFunction);
|
|
6247
6254
|
}
|
|
6248
6255
|
catch (error) {
|
|
6249
6256
|
await this.handleApiError(error);
|
|
@@ -6258,7 +6265,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6258
6265
|
return "object" === typeof input && null !== input && true;
|
|
6259
6266
|
};
|
|
6260
6267
|
if (false === __is(input)) {
|
|
6261
|
-
const $report =
|
|
6268
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6262
6269
|
((input, _path, _exceptionable = true) => {
|
|
6263
6270
|
const $vo0 = (input, _path, _exceptionable = true) => true;
|
|
6264
6271
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
@@ -6282,8 +6289,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6282
6289
|
if (!validateRes.success) {
|
|
6283
6290
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6284
6291
|
}
|
|
6285
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetTokensFromFaucetRoute()}`, payload);
|
|
6286
|
-
return new GetTokensFromFaucetSuccessResponse(response.data);
|
|
6292
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetTokensFromFaucetRoute()}`, payload);
|
|
6293
|
+
return new requests_1.GetTokensFromFaucetSuccessResponse(response.data);
|
|
6287
6294
|
}
|
|
6288
6295
|
catch (error) {
|
|
6289
6296
|
await this.handleApiError(error);
|
|
@@ -6296,23 +6303,23 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6296
6303
|
const errors = [];
|
|
6297
6304
|
const __is = input => {
|
|
6298
6305
|
const $io0 = input => undefined === input.contents || Array.isArray(input.contents) && input.contents.every(elem => "object" === typeof elem && null !== elem && $iu0(elem));
|
|
6299
|
-
const $io1 = input => Array.isArray(input.
|
|
6300
|
-
const $io2 = input => (
|
|
6301
|
-
const $io3 = 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) && $io4(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io5(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io6(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);
|
|
6302
|
-
const $io4 = input => Object.keys(input).every(key => {
|
|
6306
|
+
const $io1 = 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) && $io2(input.socials)) && (undefined === input.offChainTransferabilityInfo || "object" === typeof input.offChainTransferabilityInfo && null !== input.offChainTransferabilityInfo && $io3(input.offChainTransferabilityInfo)) && (undefined === input.attributes || Array.isArray(input.attributes) && input.attributes.every(elem => "object" === typeof elem && null !== elem && $io4(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);
|
|
6307
|
+
const $io2 = input => Object.keys(input).every(key => {
|
|
6303
6308
|
const value = input[key];
|
|
6304
6309
|
if (undefined === value)
|
|
6305
6310
|
return true;
|
|
6306
6311
|
return "string" === typeof value;
|
|
6307
6312
|
});
|
|
6308
|
-
const $
|
|
6309
|
-
const $
|
|
6310
|
-
const $
|
|
6313
|
+
const $io3 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
6314
|
+
const $io4 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
6315
|
+
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);
|
|
6316
|
+
const $io6 = input => Array.isArray(input.badgeIds) && input.badgeIds.every(elem => "object" === typeof elem && null !== elem && $io7(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);
|
|
6317
|
+
const $io7 = 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);
|
|
6311
6318
|
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);
|
|
6312
6319
|
const $io9 = input => true;
|
|
6313
6320
|
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);
|
|
6314
|
-
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@
|
|
6315
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6321
|
+
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@82"] && Object.keys(input).every(key => {
|
|
6322
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@82"].some(prop => key === prop))
|
|
6316
6323
|
return true;
|
|
6317
6324
|
const value = input[key];
|
|
6318
6325
|
if (undefined === value)
|
|
@@ -6322,24 +6329,24 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6322
6329
|
return true;
|
|
6323
6330
|
});
|
|
6324
6331
|
const $iu0 = input => (() => {
|
|
6325
|
-
if (undefined !== input.
|
|
6332
|
+
if (undefined !== input.name)
|
|
6326
6333
|
return $io1(input);
|
|
6327
|
-
else if (undefined !== input.
|
|
6328
|
-
return $
|
|
6334
|
+
else if (undefined !== input.badgeIds)
|
|
6335
|
+
return $io6(input);
|
|
6329
6336
|
else if (undefined !== input.leaves)
|
|
6330
6337
|
return $io8(input);
|
|
6331
6338
|
else
|
|
6332
|
-
return $
|
|
6339
|
+
return $io5(input);
|
|
6333
6340
|
})();
|
|
6334
6341
|
return "object" === typeof input && null !== input && false === Array.isArray(input) && $io0(input);
|
|
6335
6342
|
};
|
|
6336
6343
|
if (false === __is(input)) {
|
|
6337
|
-
const $report =
|
|
6344
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6338
6345
|
((input, _path, _exceptionable = true) => {
|
|
6339
|
-
const $join =
|
|
6346
|
+
const $join = typia_1.default.validate.join;
|
|
6340
6347
|
const $vo0 = (input, _path, _exceptionable = true) => [undefined === input.contents || (Array.isArray(input.contents) || $report(_exceptionable, {
|
|
6341
6348
|
path: _path + ".contents",
|
|
6342
|
-
expected: "(Array<
|
|
6349
|
+
expected: "(Array<iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
6343
6350
|
value: input.contents
|
|
6344
6351
|
})) && input.contents.map((elem, _index1) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6345
6352
|
path: _path + ".contents[" + _index1 + "]",
|
|
@@ -6351,60 +6358,10 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6351
6358
|
value: elem
|
|
6352
6359
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
6353
6360
|
path: _path + ".contents",
|
|
6354
|
-
expected: "(Array<
|
|
6361
|
+
expected: "(Array<iMetadata<NumberType> | iCollectionMetadataDetails<NumberType> | iBadgeMetadataDetails<NumberType> | iChallengeDetails<...>> | undefined)",
|
|
6355
6362
|
value: input.contents
|
|
6356
6363
|
})].every(flag => flag);
|
|
6357
|
-
const $vo1 = (input, _path, _exceptionable = true) => [
|
|
6358
|
-
path: _path + ".badgeIds",
|
|
6359
|
-
expected: "Array<iUintRange<NumberType>>",
|
|
6360
|
-
value: input.badgeIds
|
|
6361
|
-
})) && input.badgeIds.map((elem, _index2) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6362
|
-
path: _path + ".badgeIds[" + _index2 + "]",
|
|
6363
|
-
expected: "iUintRange<NumberType>",
|
|
6364
|
-
value: elem
|
|
6365
|
-
})) && $vo2(elem, _path + ".badgeIds[" + _index2 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6366
|
-
path: _path + ".badgeIds[" + _index2 + "]",
|
|
6367
|
-
expected: "iUintRange<NumberType>",
|
|
6368
|
-
value: elem
|
|
6369
|
-
})).every(flag => flag) || $report(_exceptionable, {
|
|
6370
|
-
path: _path + ".badgeIds",
|
|
6371
|
-
expected: "Array<iUintRange<NumberType>>",
|
|
6372
|
-
value: input.badgeIds
|
|
6373
|
-
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6374
|
-
path: _path + ".metadata",
|
|
6375
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
6376
|
-
value: input.metadata
|
|
6377
|
-
})) && $vo3(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6378
|
-
path: _path + ".metadata",
|
|
6379
|
-
expected: "(iMetadata<NumberType> | undefined)",
|
|
6380
|
-
value: input.metadata
|
|
6381
|
-
}), "string" === typeof input.uri || $report(_exceptionable, {
|
|
6382
|
-
path: _path + ".uri",
|
|
6383
|
-
expected: "string",
|
|
6384
|
-
value: input.uri
|
|
6385
|
-
}), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
|
|
6386
|
-
path: _path + ".fetchedUri",
|
|
6387
|
-
expected: "(string | undefined)",
|
|
6388
|
-
value: input.fetchedUri
|
|
6389
|
-
}), "string" === typeof input.customData || $report(_exceptionable, {
|
|
6390
|
-
path: _path + ".customData",
|
|
6391
|
-
expected: "string",
|
|
6392
|
-
value: input.customData
|
|
6393
|
-
}), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
|
|
6394
|
-
path: _path + ".toUploadToIpfs",
|
|
6395
|
-
expected: "(boolean | undefined)",
|
|
6396
|
-
value: input.toUploadToIpfs
|
|
6397
|
-
})].every(flag => flag);
|
|
6398
|
-
const $vo2 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6399
|
-
path: _path + ".start",
|
|
6400
|
-
expected: "(bigint | number | string)",
|
|
6401
|
-
value: input.start
|
|
6402
|
-
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
6403
|
-
path: _path + ".end",
|
|
6404
|
-
expected: "(bigint | number | string)",
|
|
6405
|
-
value: input.end
|
|
6406
|
-
})].every(flag => flag);
|
|
6407
|
-
const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
6364
|
+
const $vo1 = (input, _path, _exceptionable = true) => ["string" === typeof input.name || $report(_exceptionable, {
|
|
6408
6365
|
path: _path + ".name",
|
|
6409
6366
|
expected: "string",
|
|
6410
6367
|
value: input.name
|
|
@@ -6432,8 +6389,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6432
6389
|
path: _path + ".tags",
|
|
6433
6390
|
expected: "(Array<string> | undefined)",
|
|
6434
6391
|
value: input.tags
|
|
6435
|
-
})) && input.tags.map((elem,
|
|
6436
|
-
path: _path + ".tags[" +
|
|
6392
|
+
})) && input.tags.map((elem, _index2) => "string" === typeof elem || $report(_exceptionable, {
|
|
6393
|
+
path: _path + ".tags[" + _index2 + "]",
|
|
6437
6394
|
expected: "string",
|
|
6438
6395
|
value: elem
|
|
6439
6396
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6444,7 +6401,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6444
6401
|
path: _path + ".socials",
|
|
6445
6402
|
expected: "(__type | undefined)",
|
|
6446
6403
|
value: input.socials
|
|
6447
|
-
})) && $
|
|
6404
|
+
})) && $vo2(input.socials, _path + ".socials", true && _exceptionable) || $report(_exceptionable, {
|
|
6448
6405
|
path: _path + ".socials",
|
|
6449
6406
|
expected: "(__type | undefined)",
|
|
6450
6407
|
value: input.socials
|
|
@@ -6452,7 +6409,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6452
6409
|
path: _path + ".offChainTransferabilityInfo",
|
|
6453
6410
|
expected: "(__type.o1 | undefined)",
|
|
6454
6411
|
value: input.offChainTransferabilityInfo
|
|
6455
|
-
})) && $
|
|
6412
|
+
})) && $vo3(input.offChainTransferabilityInfo, _path + ".offChainTransferabilityInfo", true && _exceptionable) || $report(_exceptionable, {
|
|
6456
6413
|
path: _path + ".offChainTransferabilityInfo",
|
|
6457
6414
|
expected: "(__type.o1 | undefined)",
|
|
6458
6415
|
value: input.offChainTransferabilityInfo
|
|
@@ -6460,12 +6417,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6460
6417
|
path: _path + ".attributes",
|
|
6461
6418
|
expected: "(Array<__type> | undefined)",
|
|
6462
6419
|
value: input.attributes
|
|
6463
|
-
})) && input.attributes.map((elem,
|
|
6464
|
-
path: _path + ".attributes[" +
|
|
6420
|
+
})) && input.attributes.map((elem, _index3) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6421
|
+
path: _path + ".attributes[" + _index3 + "]",
|
|
6465
6422
|
expected: "__type.o2",
|
|
6466
6423
|
value: elem
|
|
6467
|
-
})) && $
|
|
6468
|
-
path: _path + ".attributes[" +
|
|
6424
|
+
})) && $vo4(elem, _path + ".attributes[" + _index3 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6425
|
+
path: _path + ".attributes[" + _index3 + "]",
|
|
6469
6426
|
expected: "__type.o2",
|
|
6470
6427
|
value: elem
|
|
6471
6428
|
})).every(flag => flag) || $report(_exceptionable, {
|
|
@@ -6485,7 +6442,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6485
6442
|
expected: "(boolean | undefined)",
|
|
6486
6443
|
value: input._isUpdating
|
|
6487
6444
|
})].every(flag => flag);
|
|
6488
|
-
const $
|
|
6445
|
+
const $vo2 = (input, _path, _exceptionable = true) => [false === _exceptionable || Object.keys(input).map(key => {
|
|
6489
6446
|
const value = input[key];
|
|
6490
6447
|
if (undefined === value)
|
|
6491
6448
|
return true;
|
|
@@ -6495,7 +6452,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6495
6452
|
value: value
|
|
6496
6453
|
});
|
|
6497
6454
|
}).every(flag => flag)].every(flag => flag);
|
|
6498
|
-
const $
|
|
6455
|
+
const $vo3 = (input, _path, _exceptionable = true) => ["string" === typeof input.host || $report(_exceptionable, {
|
|
6499
6456
|
path: _path + ".host",
|
|
6500
6457
|
expected: "string",
|
|
6501
6458
|
value: input.host
|
|
@@ -6504,7 +6461,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6504
6461
|
expected: "string",
|
|
6505
6462
|
value: input.assignMethod
|
|
6506
6463
|
})].every(flag => flag);
|
|
6507
|
-
const $
|
|
6464
|
+
const $vo4 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
6508
6465
|
path: _path + ".type",
|
|
6509
6466
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
6510
6467
|
value: input.type
|
|
@@ -6517,11 +6474,52 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6517
6474
|
expected: "(boolean | number | string)",
|
|
6518
6475
|
value: input.value
|
|
6519
6476
|
})].every(flag => flag);
|
|
6520
|
-
const $
|
|
6477
|
+
const $vo5 = (input, _path, _exceptionable = true) => [undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6478
|
+
path: _path + ".metadata",
|
|
6479
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
6480
|
+
value: input.metadata
|
|
6481
|
+
})) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6482
|
+
path: _path + ".metadata",
|
|
6483
|
+
expected: "(iMetadata<NumberType> | undefined)",
|
|
6484
|
+
value: input.metadata
|
|
6485
|
+
}), "string" === typeof input.uri || $report(_exceptionable, {
|
|
6486
|
+
path: _path + ".uri",
|
|
6487
|
+
expected: "string",
|
|
6488
|
+
value: input.uri
|
|
6489
|
+
}), undefined === input.fetchedUri || "string" === typeof input.fetchedUri || $report(_exceptionable, {
|
|
6490
|
+
path: _path + ".fetchedUri",
|
|
6491
|
+
expected: "(string | undefined)",
|
|
6492
|
+
value: input.fetchedUri
|
|
6493
|
+
}), "string" === typeof input.customData || $report(_exceptionable, {
|
|
6494
|
+
path: _path + ".customData",
|
|
6495
|
+
expected: "string",
|
|
6496
|
+
value: input.customData
|
|
6497
|
+
}), undefined === input.toUploadToIpfs || "boolean" === typeof input.toUploadToIpfs || $report(_exceptionable, {
|
|
6498
|
+
path: _path + ".toUploadToIpfs",
|
|
6499
|
+
expected: "(boolean | undefined)",
|
|
6500
|
+
value: input.toUploadToIpfs
|
|
6501
|
+
})].every(flag => flag);
|
|
6502
|
+
const $vo6 = (input, _path, _exceptionable = true) => [(Array.isArray(input.badgeIds) || $report(_exceptionable, {
|
|
6503
|
+
path: _path + ".badgeIds",
|
|
6504
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
6505
|
+
value: input.badgeIds
|
|
6506
|
+
})) && input.badgeIds.map((elem, _index4) => ("object" === typeof elem && null !== elem || $report(_exceptionable, {
|
|
6507
|
+
path: _path + ".badgeIds[" + _index4 + "]",
|
|
6508
|
+
expected: "iUintRange<NumberType>",
|
|
6509
|
+
value: elem
|
|
6510
|
+
})) && $vo7(elem, _path + ".badgeIds[" + _index4 + "]", true && _exceptionable) || $report(_exceptionable, {
|
|
6511
|
+
path: _path + ".badgeIds[" + _index4 + "]",
|
|
6512
|
+
expected: "iUintRange<NumberType>",
|
|
6513
|
+
value: elem
|
|
6514
|
+
})).every(flag => flag) || $report(_exceptionable, {
|
|
6515
|
+
path: _path + ".badgeIds",
|
|
6516
|
+
expected: "Array<iUintRange<NumberType>>",
|
|
6517
|
+
value: input.badgeIds
|
|
6518
|
+
}), undefined === input.metadata || ("object" === typeof input.metadata && null !== input.metadata || $report(_exceptionable, {
|
|
6521
6519
|
path: _path + ".metadata",
|
|
6522
6520
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
6523
6521
|
value: input.metadata
|
|
6524
|
-
})) && $
|
|
6522
|
+
})) && $vo1(input.metadata, _path + ".metadata", true && _exceptionable) || $report(_exceptionable, {
|
|
6525
6523
|
path: _path + ".metadata",
|
|
6526
6524
|
expected: "(iMetadata<NumberType> | undefined)",
|
|
6527
6525
|
value: input.metadata
|
|
@@ -6542,6 +6540,15 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6542
6540
|
expected: "(boolean | undefined)",
|
|
6543
6541
|
value: input.toUploadToIpfs
|
|
6544
6542
|
})].every(flag => flag);
|
|
6543
|
+
const $vo7 = (input, _path, _exceptionable = true) => ["string" === typeof input.start || "number" === typeof input.start || "bigint" === typeof input.start || $report(_exceptionable, {
|
|
6544
|
+
path: _path + ".start",
|
|
6545
|
+
expected: "(bigint | number | string)",
|
|
6546
|
+
value: input.start
|
|
6547
|
+
}), "string" === typeof input.end || "number" === typeof input.end || "bigint" === typeof input.end || $report(_exceptionable, {
|
|
6548
|
+
path: _path + ".end",
|
|
6549
|
+
expected: "(bigint | number | string)",
|
|
6550
|
+
value: input.end
|
|
6551
|
+
})].every(flag => flag);
|
|
6545
6552
|
const $vo8 = (input, _path, _exceptionable = true) => [(Array.isArray(input.leaves) || $report(_exceptionable, {
|
|
6546
6553
|
path: _path + ".leaves",
|
|
6547
6554
|
expected: "Array<string>",
|
|
@@ -6665,12 +6672,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6665
6672
|
path: _path + ".length",
|
|
6666
6673
|
expected: "number",
|
|
6667
6674
|
value: input.length
|
|
6668
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6669
|
-
path: _path + "[\"__@toStringTag@
|
|
6675
|
+
}), "Uint8Array" === input["__@toStringTag@82"] || $report(_exceptionable, {
|
|
6676
|
+
path: _path + "[\"__@toStringTag@82\"]",
|
|
6670
6677
|
expected: "\"Uint8Array\"",
|
|
6671
|
-
value: input["__@toStringTag@
|
|
6678
|
+
value: input["__@toStringTag@82"]
|
|
6672
6679
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6673
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6680
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@82"].some(prop => key === prop))
|
|
6674
6681
|
return true;
|
|
6675
6682
|
const value = input[key];
|
|
6676
6683
|
if (undefined === value)
|
|
@@ -6684,14 +6691,14 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6684
6691
|
return true;
|
|
6685
6692
|
}).every(flag => flag)].every(flag => flag);
|
|
6686
6693
|
const $vu0 = (input, _path, _exceptionable = true) => (() => {
|
|
6687
|
-
if (undefined !== input.
|
|
6694
|
+
if (undefined !== input.name)
|
|
6688
6695
|
return $vo1(input, _path, true && _exceptionable);
|
|
6689
|
-
else if (undefined !== input.
|
|
6690
|
-
return $
|
|
6696
|
+
else if (undefined !== input.badgeIds)
|
|
6697
|
+
return $vo6(input, _path, true && _exceptionable);
|
|
6691
6698
|
else if (undefined !== input.leaves)
|
|
6692
6699
|
return $vo8(input, _path, true && _exceptionable);
|
|
6693
6700
|
else
|
|
6694
|
-
return $
|
|
6701
|
+
return $vo5(input, _path, true && _exceptionable);
|
|
6695
6702
|
})();
|
|
6696
6703
|
return ("object" === typeof input && null !== input && false === Array.isArray(input) || $report(true, {
|
|
6697
6704
|
path: _path + "",
|
|
@@ -6714,8 +6721,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6714
6721
|
if (!validateRes.success) {
|
|
6715
6722
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
6716
6723
|
}
|
|
6717
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddToIpfsRoute()}`, payload);
|
|
6718
|
-
return new AddToIpfsSuccessResponse(response.data);
|
|
6724
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddToIpfsRoute()}`, payload);
|
|
6725
|
+
return new requests_1.AddToIpfsSuccessResponse(response.data);
|
|
6719
6726
|
}
|
|
6720
6727
|
catch (error) {
|
|
6721
6728
|
await this.handleApiError(error);
|
|
@@ -6733,8 +6740,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6733
6740
|
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);
|
|
6734
6741
|
const $io4 = input => true;
|
|
6735
6742
|
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);
|
|
6736
|
-
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@
|
|
6737
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6743
|
+
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@82"] && Object.keys(input).every(key => {
|
|
6744
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@82"].some(prop => key === prop))
|
|
6738
6745
|
return true;
|
|
6739
6746
|
const value = input[key];
|
|
6740
6747
|
if (undefined === value)
|
|
@@ -6760,13 +6767,13 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6760
6767
|
return "string" === typeof value;
|
|
6761
6768
|
});
|
|
6762
6769
|
const $io19 = input => "string" === typeof input.host && "string" === typeof input.assignMethod;
|
|
6763
|
-
const $io20 = input => (undefined === input.type || "
|
|
6770
|
+
const $io20 = input => (undefined === input.type || "url" === input.type || "date" === input.type) && "string" === typeof input.name && ("string" === typeof input.value || "number" === typeof input.value || "boolean" === typeof input.value);
|
|
6764
6771
|
return "object" === typeof input && null !== input && $io0(input);
|
|
6765
6772
|
};
|
|
6766
6773
|
if (false === __is(input)) {
|
|
6767
|
-
const $report =
|
|
6774
|
+
const $report = typia_1.default.validate.report(errors);
|
|
6768
6775
|
((input, _path, _exceptionable = true) => {
|
|
6769
|
-
const $join =
|
|
6776
|
+
const $join = typia_1.default.validate.join;
|
|
6770
6777
|
const $vo0 = (input, _path, _exceptionable = true) => [(Array.isArray(input.approvalDetails) || $report(_exceptionable, {
|
|
6771
6778
|
path: _path + ".approvalDetails",
|
|
6772
6779
|
expected: "Array<__type>",
|
|
@@ -6949,12 +6956,12 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
6949
6956
|
path: _path + ".length",
|
|
6950
6957
|
expected: "number",
|
|
6951
6958
|
value: input.length
|
|
6952
|
-
}), "Uint8Array" === input["__@toStringTag@
|
|
6953
|
-
path: _path + "[\"__@toStringTag@
|
|
6959
|
+
}), "Uint8Array" === input["__@toStringTag@82"] || $report(_exceptionable, {
|
|
6960
|
+
path: _path + "[\"__@toStringTag@82\"]",
|
|
6954
6961
|
expected: "\"Uint8Array\"",
|
|
6955
|
-
value: input["__@toStringTag@
|
|
6962
|
+
value: input["__@toStringTag@82"]
|
|
6956
6963
|
}), false === _exceptionable || Object.keys(input).map(key => {
|
|
6957
|
-
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@
|
|
6964
|
+
if (["BYTES_PER_ELEMENT", "buffer", "byteLength", "byteOffset", "length", "__@toStringTag@82"].some(prop => key === prop))
|
|
6958
6965
|
return true;
|
|
6959
6966
|
const value = input[key];
|
|
6960
6967
|
if (undefined === value)
|
|
@@ -7341,7 +7348,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7341
7348
|
expected: "string",
|
|
7342
7349
|
value: input.assignMethod
|
|
7343
7350
|
})].every(flag => flag);
|
|
7344
|
-
const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.type || "
|
|
7351
|
+
const $vo20 = (input, _path, _exceptionable = true) => [undefined === input.type || "url" === input.type || "date" === input.type || $report(_exceptionable, {
|
|
7345
7352
|
path: _path + ".type",
|
|
7346
7353
|
expected: "(\"date\" | \"url\" | undefined)",
|
|
7347
7354
|
value: input.type
|
|
@@ -7375,8 +7382,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7375
7382
|
if (!validateRes.success) {
|
|
7376
7383
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7377
7384
|
}
|
|
7378
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.AddApprovalDetailsToOffChainStorageRoute()}`, payload);
|
|
7379
|
-
return new AddApprovalDetailsToOffChainStorageSuccessResponse(response.data);
|
|
7385
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.AddApprovalDetailsToOffChainStorageRoute()}`, payload);
|
|
7386
|
+
return new requests_1.AddApprovalDetailsToOffChainStorageSuccessResponse(response.data);
|
|
7380
7387
|
}
|
|
7381
7388
|
catch (error) {
|
|
7382
7389
|
await this.handleApiError(error);
|
|
@@ -7392,7 +7399,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7392
7399
|
return "object" === typeof input && null !== input && $io0(input);
|
|
7393
7400
|
};
|
|
7394
7401
|
if (false === __is(input)) {
|
|
7395
|
-
const $report =
|
|
7402
|
+
const $report = typia_1.default.validate.report(errors);
|
|
7396
7403
|
((input, _path, _exceptionable = true) => {
|
|
7397
7404
|
const $vo0 = (input, _path, _exceptionable = true) => ["Bitcoin" === input.chain || "Ethereum" === input.chain || "Cosmos" === input.chain || "Solana" === input.chain || "Unknown" === input.chain || $report(_exceptionable, {
|
|
7398
7405
|
path: _path + ".chain",
|
|
@@ -7424,8 +7431,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7424
7431
|
if (!validateRes.success) {
|
|
7425
7432
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7426
7433
|
}
|
|
7427
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
|
|
7428
|
-
return new GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
7434
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.GetSignInChallengeRoute()}`, payload);
|
|
7435
|
+
return new requests_1.GetSignInChallengeSuccessResponse(response.data).convert(this.ConvertFunction);
|
|
7429
7436
|
}
|
|
7430
7437
|
catch (error) {
|
|
7431
7438
|
await this.handleApiError(error);
|
|
@@ -7441,7 +7448,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7441
7448
|
return "object" === typeof input && null !== input && $io0(input);
|
|
7442
7449
|
};
|
|
7443
7450
|
if (false === __is(input)) {
|
|
7444
|
-
const $report =
|
|
7451
|
+
const $report = typia_1.default.validate.report(errors);
|
|
7445
7452
|
((input, _path, _exceptionable = true) => {
|
|
7446
7453
|
const $vo0 = (input, _path, _exceptionable = true) => ["string" === typeof input.message || $report(_exceptionable, {
|
|
7447
7454
|
path: _path + ".message",
|
|
@@ -7477,8 +7484,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7477
7484
|
if (!validateRes.success) {
|
|
7478
7485
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7479
7486
|
}
|
|
7480
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
|
|
7481
|
-
return new VerifySignInSuccessResponse(response.data);
|
|
7487
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.VerifySignInRoute()}`, payload);
|
|
7488
|
+
return new requests_1.VerifySignInSuccessResponse(response.data);
|
|
7482
7489
|
}
|
|
7483
7490
|
catch (error) {
|
|
7484
7491
|
await this.handleApiError(error);
|
|
@@ -7494,7 +7501,7 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7494
7501
|
return "object" === typeof input && null !== input && $io0(input);
|
|
7495
7502
|
};
|
|
7496
7503
|
if (false === __is(input)) {
|
|
7497
|
-
const $report =
|
|
7504
|
+
const $report = typia_1.default.validate.report(errors);
|
|
7498
7505
|
((input, _path, _exceptionable = true) => {
|
|
7499
7506
|
const $vo0 = (input, _path, _exceptionable = true) => ["boolean" === typeof input.signOutBlockin || $report(_exceptionable, {
|
|
7500
7507
|
path: _path + ".signOutBlockin",
|
|
@@ -7542,8 +7549,8 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7542
7549
|
if (!validateRes.success) {
|
|
7543
7550
|
throw new Error('Invalid payload: ' + JSON.stringify(validateRes.errors));
|
|
7544
7551
|
}
|
|
7545
|
-
const response = await this.axios.post(`${this.BACKEND_URL}${BitBadgesApiRoutes.SignOutRoute()}`, payload);
|
|
7546
|
-
return new SignOutSuccessResponse(response.data);
|
|
7552
|
+
const response = await this.axios.post(`${this.BACKEND_URL}${routes_1.BitBadgesApiRoutes.SignOutRoute()}`, payload);
|
|
7553
|
+
return new requests_1.SignOutSuccessResponse(response.data);
|
|
7547
7554
|
}
|
|
7548
7555
|
catch (error) {
|
|
7549
7556
|
await this.handleApiError(error);
|
|
@@ -7551,5 +7558,6 @@ export class BitBadgesAdminAPI extends BitBadgesAPI {
|
|
|
7551
7558
|
}
|
|
7552
7559
|
}
|
|
7553
7560
|
}
|
|
7554
|
-
|
|
7561
|
+
exports.BitBadgesAdminAPI = BitBadgesAdminAPI;
|
|
7562
|
+
exports.default = BitBadgesAPI;
|
|
7555
7563
|
//# sourceMappingURL=BitBadgesApi.js.map
|