@nemtus/symbol-rest-api-client-fetch 1.0.1 → 1.0.2
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/cjs/api/apis/AccountRoutesApi.d.ts +94 -1
- package/cjs/api/apis/AccountRoutesApi.js +67 -28
- package/cjs/api/apis/BlockRoutesApi.d.ts +94 -1
- package/cjs/api/apis/BlockRoutesApi.js +68 -30
- package/cjs/api/apis/ChainRoutesApi.d.ts +5 -1
- package/cjs/api/apis/ChainRoutesApi.js +16 -7
- package/cjs/api/apis/FinalizationRoutesApi.d.ts +17 -1
- package/cjs/api/apis/FinalizationRoutesApi.js +33 -15
- package/cjs/api/apis/HashLockRoutesApi.d.ts +126 -1
- package/cjs/api/apis/HashLockRoutesApi.js +83 -35
- package/cjs/api/apis/MetadataRoutesApi.d.ts +107 -3
- package/cjs/api/apis/MetadataRoutesApi.js +82 -34
- package/cjs/api/apis/MosaicRoutesApi.d.ts +71 -1
- package/cjs/api/apis/MosaicRoutesApi.js +67 -28
- package/cjs/api/apis/MultisigRoutesApi.d.ts +24 -1
- package/cjs/api/apis/MultisigRoutesApi.js +51 -22
- package/cjs/api/apis/NamespaceRoutesApi.d.ts +108 -1
- package/cjs/api/apis/NamespaceRoutesApi.js +104 -42
- package/cjs/api/apis/NetworkRoutesApi.d.ts +44 -1
- package/cjs/api/apis/NetworkRoutesApi.js +138 -53
- package/cjs/api/apis/NodeRoutesApi.d.ts +38 -1
- package/cjs/api/apis/NodeRoutesApi.js +125 -48
- package/cjs/api/apis/ReceiptRoutesApi.d.ts +171 -1
- package/cjs/api/apis/ReceiptRoutesApi.js +47 -19
- package/cjs/api/apis/RestrictionAccountRoutesApi.d.ts +81 -1
- package/cjs/api/apis/RestrictionAccountRoutesApi.js +67 -28
- package/cjs/api/apis/RestrictionMosaicRoutesApi.d.ts +78 -1
- package/cjs/api/apis/RestrictionMosaicRoutesApi.js +67 -28
- package/cjs/api/apis/SecretLockRoutesApi.d.ts +132 -1
- package/cjs/api/apis/SecretLockRoutesApi.js +83 -35
- package/cjs/api/apis/TransactionRoutesApi.d.ts +416 -1
- package/cjs/api/apis/TransactionRoutesApi.js +195 -82
- package/cjs/api/apis/TransactionStatusRoutesApi.d.ts +16 -1
- package/cjs/api/apis/TransactionStatusRoutesApi.js +34 -15
- package/cjs/api/models/AccountAddressRestrictionTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AccountAddressRestrictionTransactionDTO.d.ts +7 -41
- package/cjs/api/models/AccountDTO.d.ts +4 -32
- package/cjs/api/models/AccountIds.d.ts +1 -5
- package/cjs/api/models/AccountInfoDTO.d.ts +1 -5
- package/cjs/api/models/AccountKeyLinkNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/AccountKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/AccountKeyLinkTransactionDTO.d.ts +7 -39
- package/cjs/api/models/AccountLinkPublicKeyDTO.d.ts +1 -3
- package/cjs/api/models/AccountLinkVotingKeyDTO.d.ts +3 -15
- package/cjs/api/models/AccountLinkVotingKeysDTO.d.ts +1 -3
- package/cjs/api/models/AccountMetadataTransactionBodyDTO.d.ts +1 -11
- package/cjs/api/models/AccountMetadataTransactionDTO.d.ts +7 -45
- package/cjs/api/models/AccountMosaicRestrictionTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AccountMosaicRestrictionTransactionDTO.d.ts +7 -41
- package/cjs/api/models/AccountNamesDTO.d.ts +2 -8
- package/cjs/api/models/AccountOperationRestrictionTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AccountOperationRestrictionTransactionDTO.d.ts +7 -41
- package/cjs/api/models/AccountOrderByEnum.js +1 -1
- package/cjs/api/models/AccountPage.d.ts +1 -5
- package/cjs/api/models/AccountRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/AccountRestrictionDTOValuesInner.d.ts +1 -1
- package/cjs/api/models/AccountRestrictionFlagsEnum.js +1 -1
- package/cjs/api/models/AccountRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/AccountRestrictionsDTO.d.ts +1 -7
- package/cjs/api/models/AccountRestrictionsInfoDTO.d.ts +1 -3
- package/cjs/api/models/AccountRestrictionsPage.d.ts +1 -5
- package/cjs/api/models/AccountTypeEnum.js +1 -1
- package/cjs/api/models/AccountsNamesDTO.d.ts +1 -3
- package/cjs/api/models/ActivityBucketDTO.d.ts +13 -25
- package/cjs/api/models/AddressAliasTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/AddressAliasTransactionDTO.d.ts +7 -41
- package/cjs/api/models/Addresses.d.ts +1 -3
- package/cjs/api/models/AggregateNetworkPropertiesDTO.d.ts +1 -11
- package/cjs/api/models/AggregateTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/AggregateTransactionBodyExtendedDTO.d.ts +1 -7
- package/cjs/api/models/AggregateTransactionDTO.d.ts +7 -39
- package/cjs/api/models/AggregateTransactionExtendedDTO.d.ts +7 -41
- package/cjs/api/models/AliasActionEnum.js +1 -1
- package/cjs/api/models/AliasDTO.d.ts +3 -14
- package/cjs/api/models/AliasTypeEnum.js +1 -1
- package/cjs/api/models/AnnounceTransactionInfoDTO.d.ts +1 -3
- package/cjs/api/models/BalanceChangeReceiptDTO.d.ts +4 -23
- package/cjs/api/models/BalanceTransferReceiptDTO.d.ts +5 -28
- package/cjs/api/models/BlockDTO.d.ts +8 -45
- package/cjs/api/models/BlockInfoDTO.d.ts +1 -7
- package/cjs/api/models/BlockInfoDTOBlock.d.ts +12 -64
- package/cjs/api/models/BlockMetaDTO.d.ts +2 -20
- package/cjs/api/models/BlockOrderByEnum.js +1 -1
- package/cjs/api/models/BlockPage.d.ts +1 -5
- package/cjs/api/models/BmTreeSignature.d.ts +1 -5
- package/cjs/api/models/BsonLongDTO.d.ts +1 -7
- package/cjs/api/models/ChainInfoDTO.d.ts +5 -16
- package/cjs/api/models/ChainPropertiesDTO.d.ts +3 -71
- package/cjs/api/models/CommunicationTimestampsDTO.d.ts +4 -26
- package/cjs/api/models/CompositeHashes.d.ts +1 -3
- package/cjs/api/models/Cosignature.d.ts +3 -11
- package/cjs/api/models/CosignatureDTO.d.ts +1 -7
- package/cjs/api/models/DeploymentDTO.d.ts +1 -7
- package/cjs/api/models/EmbeddedAccountAddressRestrictionTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedAccountKeyLinkTransactionDTO.d.ts +2 -14
- package/cjs/api/models/EmbeddedAccountMetadataTransactionDTO.d.ts +2 -20
- package/cjs/api/models/EmbeddedAccountMosaicRestrictionTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedAccountOperationRestrictionTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedAddressAliasTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedHashLockTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedMosaicAddressRestrictionTransactionDTO.d.ts +2 -20
- package/cjs/api/models/EmbeddedMosaicAliasTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedMosaicDefinitionTransactionDTO.d.ts +3 -23
- package/cjs/api/models/EmbeddedMosaicGlobalRestrictionTransactionDTO.d.ts +2 -24
- package/cjs/api/models/EmbeddedMosaicMetadataTransactionDTO.d.ts +2 -22
- package/cjs/api/models/EmbeddedMosaicSupplyChangeTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedMosaicSupplyRevocationTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedMultisigAccountModificationTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedNamespaceMetadataTransactionDTO.d.ts +2 -22
- package/cjs/api/models/EmbeddedNamespaceRegistrationTransactionDTO.d.ts +2 -20
- package/cjs/api/models/EmbeddedNodeKeyLinkTransactionDTO.d.ts +2 -14
- package/cjs/api/models/EmbeddedSecretLockTransactionDTO.d.ts +2 -22
- package/cjs/api/models/EmbeddedSecretProofTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedTransactionBodyDTO.d.ts +1 -3
- package/cjs/api/models/EmbeddedTransactionDTO.d.ts +2 -10
- package/cjs/api/models/EmbeddedTransactionInfoDTO.d.ts +1 -7
- package/cjs/api/models/EmbeddedTransactionInfoDTOTransaction.d.ts +3 -107
- package/cjs/api/models/EmbeddedTransactionMetaDTO.d.ts +8 -43
- package/cjs/api/models/EmbeddedTransferTransactionDTO.d.ts +2 -16
- package/cjs/api/models/EmbeddedVotingKeyLinkTransactionDTO.d.ts +2 -18
- package/cjs/api/models/EmbeddedVrfKeyLinkTransactionDTO.d.ts +2 -14
- package/cjs/api/models/EntityDTO.d.ts +2 -10
- package/cjs/api/models/FinalizationProofDTO.d.ts +1 -13
- package/cjs/api/models/FinalizedBlockDTO.d.ts +1 -9
- package/cjs/api/models/ForkHeightsDTO.d.ts +1 -15
- package/cjs/api/models/HashLockEntryDTO.d.ts +6 -31
- package/cjs/api/models/HashLockInfoDTO.d.ts +1 -5
- package/cjs/api/models/HashLockNetworkPropertiesDTO.d.ts +1 -5
- package/cjs/api/models/HashLockPage.d.ts +1 -5
- package/cjs/api/models/HashLockTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/HashLockTransactionDTO.d.ts +7 -43
- package/cjs/api/models/ImportanceBlockDTO.d.ts +12 -64
- package/cjs/api/models/InflationReceiptDTO.d.ts +3 -18
- package/cjs/api/models/LinkActionEnum.js +1 -1
- package/cjs/api/models/LockHashAlgorithmEnum.js +1 -1
- package/cjs/api/models/LockStatus.js +1 -1
- package/cjs/api/models/MerklePathItemDTO.d.ts +2 -6
- package/cjs/api/models/MerkleProofInfoDTO.d.ts +1 -3
- package/cjs/api/models/MerkleStateInfoDTO.d.ts +1 -5
- package/cjs/api/models/MerkleStateInfoDTOTreeInner.d.ts +3 -21
- package/cjs/api/models/MerkleTreeBranchDTO.d.ts +2 -16
- package/cjs/api/models/MerkleTreeBranchLinkDTO.d.ts +2 -6
- package/cjs/api/models/MerkleTreeLeafDTO.d.ts +2 -14
- package/cjs/api/models/MerkleTreeNodeTypeEnum.js +1 -1
- package/cjs/api/models/MessageGroup.d.ts +2 -12
- package/cjs/api/models/MetadataEntryDTO.d.ts +7 -25
- package/cjs/api/models/MetadataEntryDTOTargetId.d.ts +1 -1
- package/cjs/api/models/MetadataInfoDTO.d.ts +1 -5
- package/cjs/api/models/MetadataNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/MetadataPage.d.ts +1 -5
- package/cjs/api/models/MetadataTypeEnum.js +1 -1
- package/cjs/api/models/ModelError.d.ts +1 -5
- package/cjs/api/models/Mosaic.d.ts +1 -5
- package/cjs/api/models/MosaicAddressRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/MosaicAddressRestrictionEntryDTO.d.ts +1 -5
- package/cjs/api/models/MosaicAddressRestrictionEntryWrapperDTO.d.ts +4 -21
- package/cjs/api/models/MosaicAddressRestrictionTransactionBodyDTO.d.ts +1 -11
- package/cjs/api/models/MosaicAddressRestrictionTransactionDTO.d.ts +7 -45
- package/cjs/api/models/MosaicAliasTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/MosaicAliasTransactionDTO.d.ts +7 -41
- package/cjs/api/models/MosaicDTO.d.ts +7 -33
- package/cjs/api/models/MosaicDefinitionTransactionBodyDTO.d.ts +2 -14
- package/cjs/api/models/MosaicDefinitionTransactionDTO.d.ts +8 -48
- package/cjs/api/models/MosaicExpiryReceiptDTO.d.ts +2 -11
- package/cjs/api/models/MosaicGlobalRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/MosaicGlobalRestrictionEntryDTO.d.ts +1 -5
- package/cjs/api/models/MosaicGlobalRestrictionEntryRestrictionDTO.d.ts +4 -10
- package/cjs/api/models/MosaicGlobalRestrictionEntryWrapperDTO.d.ts +3 -16
- package/cjs/api/models/MosaicGlobalRestrictionTransactionBodyDTO.d.ts +1 -15
- package/cjs/api/models/MosaicGlobalRestrictionTransactionDTO.d.ts +7 -49
- package/cjs/api/models/MosaicIds.d.ts +1 -3
- package/cjs/api/models/MosaicInfoDTO.d.ts +1 -5
- package/cjs/api/models/MosaicMetadataTransactionBodyDTO.d.ts +1 -13
- package/cjs/api/models/MosaicMetadataTransactionDTO.d.ts +7 -47
- package/cjs/api/models/MosaicNamesDTO.d.ts +2 -9
- package/cjs/api/models/MosaicNetworkPropertiesDTO.d.ts +5 -27
- package/cjs/api/models/MosaicPage.d.ts +1 -5
- package/cjs/api/models/MosaicRestrictionDTO.d.ts +1 -5
- package/cjs/api/models/MosaicRestrictionEntryTypeEnum.js +1 -1
- package/cjs/api/models/MosaicRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/MosaicRestrictionTypeEnum.js +1 -1
- package/cjs/api/models/MosaicRestrictionsPage.d.ts +1 -5
- package/cjs/api/models/MosaicRestrictionsPageDataInner.d.ts +1 -5
- package/cjs/api/models/MosaicSupplyChangeActionEnum.js +1 -1
- package/cjs/api/models/MosaicSupplyChangeTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/MosaicSupplyChangeTransactionDTO.d.ts +7 -41
- package/cjs/api/models/MosaicSupplyRevocationTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/MosaicSupplyRevocationTransactionDTO.d.ts +7 -41
- package/cjs/api/models/MosaicsNamesDTO.d.ts +1 -3
- package/cjs/api/models/MultisigAccountGraphInfoDTO.d.ts +1 -5
- package/cjs/api/models/MultisigAccountInfoDTO.d.ts +1 -3
- package/cjs/api/models/MultisigAccountModificationTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/MultisigAccountModificationTransactionDTO.d.ts +7 -43
- package/cjs/api/models/MultisigDTO.d.ts +3 -19
- package/cjs/api/models/MultisigNetworkPropertiesDTO.d.ts +1 -7
- package/cjs/api/models/NamespaceDTO.d.ts +8 -48
- package/cjs/api/models/NamespaceExpiryReceiptDTO.d.ts +2 -11
- package/cjs/api/models/NamespaceIds.d.ts +1 -3
- package/cjs/api/models/NamespaceInfoDTO.d.ts +1 -7
- package/cjs/api/models/NamespaceMetaDTO.d.ts +1 -5
- package/cjs/api/models/NamespaceMetadataTransactionBodyDTO.d.ts +1 -13
- package/cjs/api/models/NamespaceMetadataTransactionDTO.d.ts +7 -47
- package/cjs/api/models/NamespaceNameDTO.d.ts +3 -15
- package/cjs/api/models/NamespaceNetworkPropertiesDTO.d.ts +5 -43
- package/cjs/api/models/NamespacePage.d.ts +1 -5
- package/cjs/api/models/NamespaceRegistrationTransactionBodyDTO.d.ts +1 -11
- package/cjs/api/models/NamespaceRegistrationTransactionDTO.d.ts +7 -45
- package/cjs/api/models/NamespaceRegistrationTypeEnum.js +1 -1
- package/cjs/api/models/NetworkConfigurationDTO.d.ts +1 -13
- package/cjs/api/models/NetworkInflationDTO.d.ts +3 -13
- package/cjs/api/models/NetworkPropertiesDTO.d.ts +1 -11
- package/cjs/api/models/NetworkTypeDTO.d.ts +1 -5
- package/cjs/api/models/NetworkTypeDTO.js +1 -1
- package/cjs/api/models/NetworkTypeEnum.js +1 -1
- package/cjs/api/models/NodeHealthDTO.d.ts +1 -5
- package/cjs/api/models/NodeHealthInfoDTO.d.ts +1 -3
- package/cjs/api/models/NodeIdentityEqualityStrategy.js +1 -1
- package/cjs/api/models/NodeInfoDTO.d.ts +1 -19
- package/cjs/api/models/NodeKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/NodeKeyLinkTransactionDTO.d.ts +7 -39
- package/cjs/api/models/NodeStatusEnum.js +1 -1
- package/cjs/api/models/NodeTimeDTO.d.ts +1 -3
- package/cjs/api/models/Order.js +1 -1
- package/cjs/api/models/Pagination.d.ts +1 -5
- package/cjs/api/models/ParentPublicKeySignaturePair.d.ts +1 -5
- package/cjs/api/models/PluginsPropertiesDTO.d.ts +1 -23
- package/cjs/api/models/PositionEnum.js +1 -1
- package/cjs/api/models/ReceiptDTO.d.ts +1 -5
- package/cjs/api/models/ReceiptTypeEnum.js +1 -1
- package/cjs/api/models/RentalFeesDTO.d.ts +4 -22
- package/cjs/api/models/ResolutionEntryDTO.d.ts +1 -5
- package/cjs/api/models/ResolutionEntryDTOResolved.d.ts +1 -1
- package/cjs/api/models/ResolutionStatementDTO.d.ts +2 -10
- package/cjs/api/models/ResolutionStatementDTOUnresolved.d.ts +1 -1
- package/cjs/api/models/ResolutionStatementInfoDTO.d.ts +1 -7
- package/cjs/api/models/ResolutionStatementPage.d.ts +1 -5
- package/cjs/api/models/SecretLockEntryDTO.d.ts +10 -40
- package/cjs/api/models/SecretLockInfoDTO.d.ts +1 -5
- package/cjs/api/models/SecretLockNetworkPropertiesDTO.d.ts +1 -7
- package/cjs/api/models/SecretLockPage.d.ts +1 -5
- package/cjs/api/models/SecretLockTransactionBodyDTO.d.ts +1 -13
- package/cjs/api/models/SecretLockTransactionDTO.d.ts +7 -47
- package/cjs/api/models/SecretProofTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/SecretProofTransactionDTO.d.ts +7 -43
- package/cjs/api/models/ServerDTO.d.ts +1 -5
- package/cjs/api/models/ServerInfoDTO.d.ts +1 -3
- package/cjs/api/models/SizePrefixedEntityDTO.d.ts +3 -5
- package/cjs/api/models/SourceDTO.d.ts +11 -9
- package/cjs/api/models/StageEnum.js +1 -1
- package/cjs/api/models/StatementMetaDTO.d.ts +2 -14
- package/cjs/api/models/StorageInfoDTO.d.ts +1 -9
- package/cjs/api/models/StorageInfoDatabaseDTO.d.ts +1 -11
- package/cjs/api/models/SupplementalPublicKeysDTO.d.ts +1 -9
- package/cjs/api/models/TransactionBodyDTO.d.ts +4 -20
- package/cjs/api/models/TransactionDTO.d.ts +7 -35
- package/cjs/api/models/TransactionFeesDTO.d.ts +6 -76
- package/cjs/api/models/TransactionGroupEnum.js +1 -1
- package/cjs/api/models/TransactionHashes.d.ts +1 -3
- package/cjs/api/models/TransactionIds.d.ts +1 -3
- package/cjs/api/models/TransactionInfoDTO.d.ts +1 -7
- package/cjs/api/models/TransactionInfoDTOMeta.d.ts +12 -49
- package/cjs/api/models/TransactionInfoDTOTransaction.d.ts +8 -138
- package/cjs/api/models/TransactionMetaDTO.d.ts +10 -41
- package/cjs/api/models/TransactionPage.d.ts +1 -5
- package/cjs/api/models/TransactionPayload.d.ts +1 -3
- package/cjs/api/models/TransactionStatementDTO.d.ts +2 -10
- package/cjs/api/models/TransactionStatementDTOReceiptsInner.d.ts +7 -39
- package/cjs/api/models/TransactionStatementInfoDTO.d.ts +1 -7
- package/cjs/api/models/TransactionStatementPage.d.ts +1 -5
- package/cjs/api/models/TransactionStatusDTO.d.ts +4 -26
- package/cjs/api/models/TransactionStatusEnum.js +1 -1
- package/cjs/api/models/TransactionTypeEnum.js +1 -1
- package/cjs/api/models/TransferNetworkPropertiesDTO.d.ts +1 -3
- package/cjs/api/models/TransferTransactionBodyDTO.d.ts +1 -7
- package/cjs/api/models/TransferTransactionDTO.d.ts +7 -41
- package/cjs/api/models/UnlockedAccountDTO.d.ts +1 -3
- package/cjs/api/models/UnresolvedMosaic.d.ts +1 -5
- package/cjs/api/models/VerifiableEntityDTO.d.ts +1 -3
- package/cjs/api/models/VotingKeyLinkTransactionBodyDTO.d.ts +1 -9
- package/cjs/api/models/VotingKeyLinkTransactionDTO.d.ts +7 -43
- package/cjs/api/models/VrfKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/cjs/api/models/VrfKeyLinkTransactionDTO.d.ts +7 -39
- package/cjs/api/runtime.d.ts +34 -1
- package/cjs/api/runtime.js +136 -4
- package/esm/api/apis/AccountRoutesApi.d.ts +94 -1
- package/esm/api/apis/AccountRoutesApi.js +54 -23
- package/esm/api/apis/BlockRoutesApi.d.ts +94 -1
- package/esm/api/apis/BlockRoutesApi.js +56 -26
- package/esm/api/apis/ChainRoutesApi.d.ts +5 -1
- package/esm/api/apis/ChainRoutesApi.js +13 -6
- package/esm/api/apis/FinalizationRoutesApi.d.ts +17 -1
- package/esm/api/apis/FinalizationRoutesApi.js +27 -13
- package/esm/api/apis/HashLockRoutesApi.d.ts +126 -1
- package/esm/api/apis/HashLockRoutesApi.js +67 -29
- package/esm/api/apis/MetadataRoutesApi.d.ts +107 -3
- package/esm/api/apis/MetadataRoutesApi.js +67 -29
- package/esm/api/apis/MosaicRoutesApi.d.ts +71 -1
- package/esm/api/apis/MosaicRoutesApi.js +54 -23
- package/esm/api/apis/MultisigRoutesApi.d.ts +24 -1
- package/esm/api/apis/MultisigRoutesApi.js +42 -19
- package/esm/api/apis/NamespaceRoutesApi.d.ts +108 -1
- package/esm/api/apis/NamespaceRoutesApi.js +83 -33
- package/esm/api/apis/NetworkRoutesApi.d.ts +44 -1
- package/esm/api/apis/NetworkRoutesApi.js +114 -47
- package/esm/api/apis/NodeRoutesApi.d.ts +38 -1
- package/esm/api/apis/NodeRoutesApi.js +102 -41
- package/esm/api/apis/ReceiptRoutesApi.d.ts +171 -1
- package/esm/api/apis/ReceiptRoutesApi.js +38 -16
- package/esm/api/apis/RestrictionAccountRoutesApi.d.ts +81 -1
- package/esm/api/apis/RestrictionAccountRoutesApi.js +54 -23
- package/esm/api/apis/RestrictionMosaicRoutesApi.d.ts +78 -1
- package/esm/api/apis/RestrictionMosaicRoutesApi.js +54 -23
- package/esm/api/apis/SecretLockRoutesApi.d.ts +132 -1
- package/esm/api/apis/SecretLockRoutesApi.js +67 -29
- package/esm/api/apis/TransactionRoutesApi.d.ts +416 -1
- package/esm/api/apis/TransactionRoutesApi.js +153 -64
- package/esm/api/apis/TransactionStatusRoutesApi.d.ts +16 -1
- package/esm/api/apis/TransactionStatusRoutesApi.js +27 -12
- package/esm/api/models/AccountAddressRestrictionTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AccountAddressRestrictionTransactionDTO.d.ts +7 -41
- package/esm/api/models/AccountDTO.d.ts +4 -32
- package/esm/api/models/AccountIds.d.ts +1 -5
- package/esm/api/models/AccountInfoDTO.d.ts +1 -5
- package/esm/api/models/AccountKeyLinkNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/AccountKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/AccountKeyLinkTransactionDTO.d.ts +7 -39
- package/esm/api/models/AccountLinkPublicKeyDTO.d.ts +1 -3
- package/esm/api/models/AccountLinkVotingKeyDTO.d.ts +3 -15
- package/esm/api/models/AccountLinkVotingKeysDTO.d.ts +1 -3
- package/esm/api/models/AccountMetadataTransactionBodyDTO.d.ts +1 -11
- package/esm/api/models/AccountMetadataTransactionDTO.d.ts +7 -45
- package/esm/api/models/AccountMosaicRestrictionTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AccountMosaicRestrictionTransactionDTO.d.ts +7 -41
- package/esm/api/models/AccountNamesDTO.d.ts +2 -8
- package/esm/api/models/AccountOperationRestrictionTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AccountOperationRestrictionTransactionDTO.d.ts +7 -41
- package/esm/api/models/AccountOrderByEnum.js +1 -1
- package/esm/api/models/AccountPage.d.ts +1 -5
- package/esm/api/models/AccountRestrictionDTO.d.ts +1 -5
- package/esm/api/models/AccountRestrictionDTOValuesInner.d.ts +1 -1
- package/esm/api/models/AccountRestrictionFlagsEnum.js +1 -1
- package/esm/api/models/AccountRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/AccountRestrictionsDTO.d.ts +1 -7
- package/esm/api/models/AccountRestrictionsInfoDTO.d.ts +1 -3
- package/esm/api/models/AccountRestrictionsPage.d.ts +1 -5
- package/esm/api/models/AccountTypeEnum.js +1 -1
- package/esm/api/models/AccountsNamesDTO.d.ts +1 -3
- package/esm/api/models/ActivityBucketDTO.d.ts +13 -25
- package/esm/api/models/AddressAliasTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/AddressAliasTransactionDTO.d.ts +7 -41
- package/esm/api/models/Addresses.d.ts +1 -3
- package/esm/api/models/AggregateNetworkPropertiesDTO.d.ts +1 -11
- package/esm/api/models/AggregateTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/AggregateTransactionBodyExtendedDTO.d.ts +1 -7
- package/esm/api/models/AggregateTransactionDTO.d.ts +7 -39
- package/esm/api/models/AggregateTransactionExtendedDTO.d.ts +7 -41
- package/esm/api/models/AliasActionEnum.js +1 -1
- package/esm/api/models/AliasDTO.d.ts +3 -14
- package/esm/api/models/AliasTypeEnum.js +1 -1
- package/esm/api/models/AnnounceTransactionInfoDTO.d.ts +1 -3
- package/esm/api/models/BalanceChangeReceiptDTO.d.ts +4 -23
- package/esm/api/models/BalanceTransferReceiptDTO.d.ts +5 -28
- package/esm/api/models/BlockDTO.d.ts +8 -45
- package/esm/api/models/BlockInfoDTO.d.ts +1 -7
- package/esm/api/models/BlockInfoDTOBlock.d.ts +12 -64
- package/esm/api/models/BlockMetaDTO.d.ts +2 -20
- package/esm/api/models/BlockOrderByEnum.js +1 -1
- package/esm/api/models/BlockPage.d.ts +1 -5
- package/esm/api/models/BmTreeSignature.d.ts +1 -5
- package/esm/api/models/BsonLongDTO.d.ts +1 -7
- package/esm/api/models/ChainInfoDTO.d.ts +5 -16
- package/esm/api/models/ChainPropertiesDTO.d.ts +3 -71
- package/esm/api/models/CommunicationTimestampsDTO.d.ts +4 -26
- package/esm/api/models/CompositeHashes.d.ts +1 -3
- package/esm/api/models/Cosignature.d.ts +3 -11
- package/esm/api/models/CosignatureDTO.d.ts +1 -7
- package/esm/api/models/DeploymentDTO.d.ts +1 -7
- package/esm/api/models/EmbeddedAccountAddressRestrictionTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedAccountKeyLinkTransactionDTO.d.ts +2 -14
- package/esm/api/models/EmbeddedAccountMetadataTransactionDTO.d.ts +2 -20
- package/esm/api/models/EmbeddedAccountMosaicRestrictionTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedAccountOperationRestrictionTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedAddressAliasTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedHashLockTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedMosaicAddressRestrictionTransactionDTO.d.ts +2 -20
- package/esm/api/models/EmbeddedMosaicAliasTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedMosaicDefinitionTransactionDTO.d.ts +3 -23
- package/esm/api/models/EmbeddedMosaicGlobalRestrictionTransactionDTO.d.ts +2 -24
- package/esm/api/models/EmbeddedMosaicMetadataTransactionDTO.d.ts +2 -22
- package/esm/api/models/EmbeddedMosaicSupplyChangeTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedMosaicSupplyRevocationTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedMultisigAccountModificationTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedNamespaceMetadataTransactionDTO.d.ts +2 -22
- package/esm/api/models/EmbeddedNamespaceRegistrationTransactionDTO.d.ts +2 -20
- package/esm/api/models/EmbeddedNodeKeyLinkTransactionDTO.d.ts +2 -14
- package/esm/api/models/EmbeddedSecretLockTransactionDTO.d.ts +2 -22
- package/esm/api/models/EmbeddedSecretProofTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedTransactionBodyDTO.d.ts +1 -3
- package/esm/api/models/EmbeddedTransactionDTO.d.ts +2 -10
- package/esm/api/models/EmbeddedTransactionInfoDTO.d.ts +1 -7
- package/esm/api/models/EmbeddedTransactionInfoDTOTransaction.d.ts +3 -107
- package/esm/api/models/EmbeddedTransactionMetaDTO.d.ts +8 -43
- package/esm/api/models/EmbeddedTransferTransactionDTO.d.ts +2 -16
- package/esm/api/models/EmbeddedVotingKeyLinkTransactionDTO.d.ts +2 -18
- package/esm/api/models/EmbeddedVrfKeyLinkTransactionDTO.d.ts +2 -14
- package/esm/api/models/EntityDTO.d.ts +2 -10
- package/esm/api/models/FinalizationProofDTO.d.ts +1 -13
- package/esm/api/models/FinalizedBlockDTO.d.ts +1 -9
- package/esm/api/models/ForkHeightsDTO.d.ts +1 -15
- package/esm/api/models/HashLockEntryDTO.d.ts +6 -31
- package/esm/api/models/HashLockInfoDTO.d.ts +1 -5
- package/esm/api/models/HashLockNetworkPropertiesDTO.d.ts +1 -5
- package/esm/api/models/HashLockPage.d.ts +1 -5
- package/esm/api/models/HashLockTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/HashLockTransactionDTO.d.ts +7 -43
- package/esm/api/models/ImportanceBlockDTO.d.ts +12 -64
- package/esm/api/models/InflationReceiptDTO.d.ts +3 -18
- package/esm/api/models/LinkActionEnum.js +1 -1
- package/esm/api/models/LockHashAlgorithmEnum.js +1 -1
- package/esm/api/models/LockStatus.js +1 -1
- package/esm/api/models/MerklePathItemDTO.d.ts +2 -6
- package/esm/api/models/MerkleProofInfoDTO.d.ts +1 -3
- package/esm/api/models/MerkleStateInfoDTO.d.ts +1 -5
- package/esm/api/models/MerkleStateInfoDTOTreeInner.d.ts +3 -21
- package/esm/api/models/MerkleTreeBranchDTO.d.ts +2 -16
- package/esm/api/models/MerkleTreeBranchLinkDTO.d.ts +2 -6
- package/esm/api/models/MerkleTreeLeafDTO.d.ts +2 -14
- package/esm/api/models/MerkleTreeNodeTypeEnum.js +1 -1
- package/esm/api/models/MessageGroup.d.ts +2 -12
- package/esm/api/models/MetadataEntryDTO.d.ts +7 -25
- package/esm/api/models/MetadataEntryDTOTargetId.d.ts +1 -1
- package/esm/api/models/MetadataInfoDTO.d.ts +1 -5
- package/esm/api/models/MetadataNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/MetadataPage.d.ts +1 -5
- package/esm/api/models/MetadataTypeEnum.js +1 -1
- package/esm/api/models/ModelError.d.ts +1 -5
- package/esm/api/models/Mosaic.d.ts +1 -5
- package/esm/api/models/MosaicAddressRestrictionDTO.d.ts +1 -5
- package/esm/api/models/MosaicAddressRestrictionEntryDTO.d.ts +1 -5
- package/esm/api/models/MosaicAddressRestrictionEntryWrapperDTO.d.ts +4 -21
- package/esm/api/models/MosaicAddressRestrictionTransactionBodyDTO.d.ts +1 -11
- package/esm/api/models/MosaicAddressRestrictionTransactionDTO.d.ts +7 -45
- package/esm/api/models/MosaicAliasTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/MosaicAliasTransactionDTO.d.ts +7 -41
- package/esm/api/models/MosaicDTO.d.ts +7 -33
- package/esm/api/models/MosaicDefinitionTransactionBodyDTO.d.ts +2 -14
- package/esm/api/models/MosaicDefinitionTransactionDTO.d.ts +8 -48
- package/esm/api/models/MosaicExpiryReceiptDTO.d.ts +2 -11
- package/esm/api/models/MosaicGlobalRestrictionDTO.d.ts +1 -5
- package/esm/api/models/MosaicGlobalRestrictionEntryDTO.d.ts +1 -5
- package/esm/api/models/MosaicGlobalRestrictionEntryRestrictionDTO.d.ts +4 -10
- package/esm/api/models/MosaicGlobalRestrictionEntryWrapperDTO.d.ts +3 -16
- package/esm/api/models/MosaicGlobalRestrictionTransactionBodyDTO.d.ts +1 -15
- package/esm/api/models/MosaicGlobalRestrictionTransactionDTO.d.ts +7 -49
- package/esm/api/models/MosaicIds.d.ts +1 -3
- package/esm/api/models/MosaicInfoDTO.d.ts +1 -5
- package/esm/api/models/MosaicMetadataTransactionBodyDTO.d.ts +1 -13
- package/esm/api/models/MosaicMetadataTransactionDTO.d.ts +7 -47
- package/esm/api/models/MosaicNamesDTO.d.ts +2 -9
- package/esm/api/models/MosaicNetworkPropertiesDTO.d.ts +5 -27
- package/esm/api/models/MosaicPage.d.ts +1 -5
- package/esm/api/models/MosaicRestrictionDTO.d.ts +1 -5
- package/esm/api/models/MosaicRestrictionEntryTypeEnum.js +1 -1
- package/esm/api/models/MosaicRestrictionNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/MosaicRestrictionTypeEnum.js +1 -1
- package/esm/api/models/MosaicRestrictionsPage.d.ts +1 -5
- package/esm/api/models/MosaicRestrictionsPageDataInner.d.ts +1 -5
- package/esm/api/models/MosaicSupplyChangeActionEnum.js +1 -1
- package/esm/api/models/MosaicSupplyChangeTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/MosaicSupplyChangeTransactionDTO.d.ts +7 -41
- package/esm/api/models/MosaicSupplyRevocationTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/MosaicSupplyRevocationTransactionDTO.d.ts +7 -41
- package/esm/api/models/MosaicsNamesDTO.d.ts +1 -3
- package/esm/api/models/MultisigAccountGraphInfoDTO.d.ts +1 -5
- package/esm/api/models/MultisigAccountInfoDTO.d.ts +1 -3
- package/esm/api/models/MultisigAccountModificationTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/MultisigAccountModificationTransactionDTO.d.ts +7 -43
- package/esm/api/models/MultisigDTO.d.ts +3 -19
- package/esm/api/models/MultisigNetworkPropertiesDTO.d.ts +1 -7
- package/esm/api/models/NamespaceDTO.d.ts +8 -48
- package/esm/api/models/NamespaceExpiryReceiptDTO.d.ts +2 -11
- package/esm/api/models/NamespaceIds.d.ts +1 -3
- package/esm/api/models/NamespaceInfoDTO.d.ts +1 -7
- package/esm/api/models/NamespaceMetaDTO.d.ts +1 -5
- package/esm/api/models/NamespaceMetadataTransactionBodyDTO.d.ts +1 -13
- package/esm/api/models/NamespaceMetadataTransactionDTO.d.ts +7 -47
- package/esm/api/models/NamespaceNameDTO.d.ts +3 -15
- package/esm/api/models/NamespaceNetworkPropertiesDTO.d.ts +5 -43
- package/esm/api/models/NamespacePage.d.ts +1 -5
- package/esm/api/models/NamespaceRegistrationTransactionBodyDTO.d.ts +1 -11
- package/esm/api/models/NamespaceRegistrationTransactionDTO.d.ts +7 -45
- package/esm/api/models/NamespaceRegistrationTypeEnum.js +1 -1
- package/esm/api/models/NetworkConfigurationDTO.d.ts +1 -13
- package/esm/api/models/NetworkInflationDTO.d.ts +3 -13
- package/esm/api/models/NetworkPropertiesDTO.d.ts +1 -11
- package/esm/api/models/NetworkTypeDTO.d.ts +1 -5
- package/esm/api/models/NetworkTypeDTO.js +1 -1
- package/esm/api/models/NetworkTypeEnum.js +1 -1
- package/esm/api/models/NodeHealthDTO.d.ts +1 -5
- package/esm/api/models/NodeHealthInfoDTO.d.ts +1 -3
- package/esm/api/models/NodeIdentityEqualityStrategy.js +1 -1
- package/esm/api/models/NodeInfoDTO.d.ts +1 -19
- package/esm/api/models/NodeKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/NodeKeyLinkTransactionDTO.d.ts +7 -39
- package/esm/api/models/NodeStatusEnum.js +1 -1
- package/esm/api/models/NodeTimeDTO.d.ts +1 -3
- package/esm/api/models/Order.js +1 -1
- package/esm/api/models/Pagination.d.ts +1 -5
- package/esm/api/models/ParentPublicKeySignaturePair.d.ts +1 -5
- package/esm/api/models/PluginsPropertiesDTO.d.ts +1 -23
- package/esm/api/models/PositionEnum.js +1 -1
- package/esm/api/models/ReceiptDTO.d.ts +1 -5
- package/esm/api/models/ReceiptTypeEnum.js +1 -1
- package/esm/api/models/RentalFeesDTO.d.ts +4 -22
- package/esm/api/models/ResolutionEntryDTO.d.ts +1 -5
- package/esm/api/models/ResolutionEntryDTOResolved.d.ts +1 -1
- package/esm/api/models/ResolutionStatementDTO.d.ts +2 -10
- package/esm/api/models/ResolutionStatementDTOUnresolved.d.ts +1 -1
- package/esm/api/models/ResolutionStatementInfoDTO.d.ts +1 -7
- package/esm/api/models/ResolutionStatementPage.d.ts +1 -5
- package/esm/api/models/SecretLockEntryDTO.d.ts +10 -40
- package/esm/api/models/SecretLockInfoDTO.d.ts +1 -5
- package/esm/api/models/SecretLockNetworkPropertiesDTO.d.ts +1 -7
- package/esm/api/models/SecretLockPage.d.ts +1 -5
- package/esm/api/models/SecretLockTransactionBodyDTO.d.ts +1 -13
- package/esm/api/models/SecretLockTransactionDTO.d.ts +7 -47
- package/esm/api/models/SecretProofTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/SecretProofTransactionDTO.d.ts +7 -43
- package/esm/api/models/ServerDTO.d.ts +1 -5
- package/esm/api/models/ServerInfoDTO.d.ts +1 -3
- package/esm/api/models/SizePrefixedEntityDTO.d.ts +3 -5
- package/esm/api/models/SourceDTO.d.ts +11 -9
- package/esm/api/models/StageEnum.js +1 -1
- package/esm/api/models/StatementMetaDTO.d.ts +2 -14
- package/esm/api/models/StorageInfoDTO.d.ts +1 -9
- package/esm/api/models/StorageInfoDatabaseDTO.d.ts +1 -11
- package/esm/api/models/SupplementalPublicKeysDTO.d.ts +1 -9
- package/esm/api/models/TransactionBodyDTO.d.ts +4 -20
- package/esm/api/models/TransactionDTO.d.ts +7 -35
- package/esm/api/models/TransactionFeesDTO.d.ts +6 -76
- package/esm/api/models/TransactionGroupEnum.js +1 -1
- package/esm/api/models/TransactionHashes.d.ts +1 -3
- package/esm/api/models/TransactionIds.d.ts +1 -3
- package/esm/api/models/TransactionInfoDTO.d.ts +1 -7
- package/esm/api/models/TransactionInfoDTOMeta.d.ts +12 -49
- package/esm/api/models/TransactionInfoDTOTransaction.d.ts +8 -138
- package/esm/api/models/TransactionMetaDTO.d.ts +10 -41
- package/esm/api/models/TransactionPage.d.ts +1 -5
- package/esm/api/models/TransactionPayload.d.ts +1 -3
- package/esm/api/models/TransactionStatementDTO.d.ts +2 -10
- package/esm/api/models/TransactionStatementDTOReceiptsInner.d.ts +7 -39
- package/esm/api/models/TransactionStatementInfoDTO.d.ts +1 -7
- package/esm/api/models/TransactionStatementPage.d.ts +1 -5
- package/esm/api/models/TransactionStatusDTO.d.ts +4 -26
- package/esm/api/models/TransactionStatusEnum.js +1 -1
- package/esm/api/models/TransactionTypeEnum.js +1 -1
- package/esm/api/models/TransferNetworkPropertiesDTO.d.ts +1 -3
- package/esm/api/models/TransferTransactionBodyDTO.d.ts +1 -7
- package/esm/api/models/TransferTransactionDTO.d.ts +7 -41
- package/esm/api/models/UnlockedAccountDTO.d.ts +1 -3
- package/esm/api/models/UnresolvedMosaic.d.ts +1 -5
- package/esm/api/models/VerifiableEntityDTO.d.ts +1 -3
- package/esm/api/models/VotingKeyLinkTransactionBodyDTO.d.ts +1 -9
- package/esm/api/models/VotingKeyLinkTransactionDTO.d.ts +7 -43
- package/esm/api/models/VrfKeyLinkTransactionBodyDTO.d.ts +1 -5
- package/esm/api/models/VrfKeyLinkTransactionDTO.d.ts +7 -39
- package/esm/api/runtime.d.ts +34 -1
- package/esm/api/runtime.js +127 -4
- package/index.min.js +1 -1
- package/package.json +23 -7
|
@@ -10,27 +10,95 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type AccountRestrictionsInfoDTO } from '../models/AccountRestrictionsInfoDTO';
|
|
14
|
+
import { type AccountRestrictionsPage } from '../models/AccountRestrictionsPage';
|
|
15
|
+
import { type Addresses } from '../models/Addresses';
|
|
16
|
+
import { type MerkleStateInfoDTO } from '../models/MerkleStateInfoDTO';
|
|
17
|
+
import { type Order } from '../models/Order';
|
|
14
18
|
export interface GetAccountRestrictionsRequest {
|
|
19
|
+
/**
|
|
20
|
+
* Account address in Base32-encoded format.
|
|
21
|
+
*/
|
|
15
22
|
address: string;
|
|
16
23
|
}
|
|
17
24
|
export interface GetAccountRestrictionsBatchRequest {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
*/
|
|
18
28
|
addresses: Addresses;
|
|
19
29
|
}
|
|
20
30
|
export interface GetAccountRestrictionsMerkleRequest {
|
|
31
|
+
/**
|
|
32
|
+
* Account address in Base32-encoded format.
|
|
33
|
+
*/
|
|
21
34
|
address: string;
|
|
22
35
|
}
|
|
23
36
|
export interface SearchAccountRestrictionsRequest {
|
|
37
|
+
/**
|
|
38
|
+
* Filter by address (include), in Base32 format.
|
|
39
|
+
*
|
|
40
|
+
* The exact meaning depends on the endpoint:
|
|
41
|
+
* - transaction search: returns transactions where the address appears as the sender, recipient, or cosigner
|
|
42
|
+
* - account search: matches the account address
|
|
43
|
+
* - account restriction search: matches the restricted account address
|
|
44
|
+
* - hash lock and secret lock search: matches the lock owner address
|
|
45
|
+
*
|
|
46
|
+
* On transaction search endpoints, this filter cannot be combined with `recipientAddress` and
|
|
47
|
+
* `signerPublicKey`.
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
24
50
|
address?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Select the number of entries to return per page.
|
|
53
|
+
* Values outside the allowed range are clamped to the schema minimum or maximum.
|
|
54
|
+
*
|
|
55
|
+
*/
|
|
25
56
|
pageSize?: number;
|
|
57
|
+
/**
|
|
58
|
+
* Page number for numbered pagination (1-based).
|
|
59
|
+
*
|
|
60
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
61
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
62
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
63
|
+
* incrementing `pageNumber`.
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
26
66
|
pageNumber?: number;
|
|
67
|
+
/**
|
|
68
|
+
* Cursor for pagination. Provide the value of the sort field (`orderBy`) from the
|
|
69
|
+
* last entry of the previous page. **The offset type must match `orderBy`:**
|
|
70
|
+
* - `orderBy=id`: use the entry's `id` (ObjectId, 24-char hex).
|
|
71
|
+
* - `orderBy=height`: use the block height (string, e.g. `"17592"`).
|
|
72
|
+
* - `orderBy=balance`: use the mosaic balance amount (string, e.g. `"1000000"`).
|
|
73
|
+
*
|
|
74
|
+
* Allowed `orderBy` values depend on the endpoint. If `orderBy` is omitted, `id` is used by default.
|
|
75
|
+
*
|
|
76
|
+
* Set `offset` to the sort-field value of the last entry from the previous page. Across pages,
|
|
77
|
+
* this value decreases with `order=desc` and increases with `order=asc`.
|
|
78
|
+
*
|
|
79
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
80
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
81
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
82
|
+
* incrementing `pageNumber`.
|
|
83
|
+
*
|
|
84
|
+
*/
|
|
27
85
|
offset?: string;
|
|
86
|
+
/**
|
|
87
|
+
* Sort responses in ascending or descending order based on the collection property set on the param `orderBy`.
|
|
88
|
+
* If the request does not specify `orderBy`, REST returns the collection ordered by id.
|
|
89
|
+
* The default sort direction depends on the endpoint implementation.
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
28
92
|
order?: Order;
|
|
29
93
|
}
|
|
30
94
|
/**
|
|
31
95
|
*
|
|
32
96
|
*/
|
|
33
97
|
export declare class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
98
|
+
/**
|
|
99
|
+
* Creates request options for getAccountRestrictions without sending the request
|
|
100
|
+
*/
|
|
101
|
+
getAccountRestrictionsRequestOpts(requestParameters: GetAccountRestrictionsRequest): Promise<runtime.RequestOpts>;
|
|
34
102
|
/**
|
|
35
103
|
* Returns the account restriction entry associated with the given account address.
|
|
36
104
|
* Get account restrictions
|
|
@@ -41,6 +109,10 @@ export declare class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
41
109
|
* Get account restrictions
|
|
42
110
|
*/
|
|
43
111
|
getAccountRestrictions(requestParameters: GetAccountRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AccountRestrictionsInfoDTO>;
|
|
112
|
+
/**
|
|
113
|
+
* Creates request options for getAccountRestrictionsBatch without sending the request
|
|
114
|
+
*/
|
|
115
|
+
getAccountRestrictionsBatchRequestOpts(requestParameters: GetAccountRestrictionsBatchRequest): Promise<runtime.RequestOpts>;
|
|
44
116
|
/**
|
|
45
117
|
* Returns account restriction entries for the given account addresses.
|
|
46
118
|
* Get account restrictions for an array of addresses
|
|
@@ -51,6 +123,10 @@ export declare class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
51
123
|
* Get account restrictions for an array of addresses
|
|
52
124
|
*/
|
|
53
125
|
getAccountRestrictionsBatch(requestParameters: GetAccountRestrictionsBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AccountRestrictionsInfoDTO>>;
|
|
126
|
+
/**
|
|
127
|
+
* Creates request options for getAccountRestrictionsMerkle without sending the request
|
|
128
|
+
*/
|
|
129
|
+
getAccountRestrictionsMerkleRequestOpts(requestParameters: GetAccountRestrictionsMerkleRequest): Promise<runtime.RequestOpts>;
|
|
54
130
|
/**
|
|
55
131
|
* Returns the Merkle state proof for the account restriction entry associated with the given account address. If no account restriction entry exists for the supplied address, the endpoint still returns a Merkle proof response, but it is a negative proof showing that no account restriction state entry exists for the requested address.
|
|
56
132
|
* Get account restrictions Merkle information
|
|
@@ -61,6 +137,10 @@ export declare class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
61
137
|
* Get account restrictions Merkle information
|
|
62
138
|
*/
|
|
63
139
|
getAccountRestrictionsMerkle(requestParameters: GetAccountRestrictionsMerkleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MerkleStateInfoDTO>;
|
|
140
|
+
/**
|
|
141
|
+
* Creates request options for searchAccountRestrictions without sending the request
|
|
142
|
+
*/
|
|
143
|
+
searchAccountRestrictionsRequestOpts(requestParameters: SearchAccountRestrictionsRequest): Promise<runtime.RequestOpts>;
|
|
64
144
|
/**
|
|
65
145
|
* Returns a paginated list of account restriction entries, optionally filtered by account address.
|
|
66
146
|
* Search account restrictions
|
|
@@ -57,16 +57,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
57
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
58
|
exports.RestrictionAccountRoutesApi = void 0;
|
|
59
59
|
const runtime = __importStar(require("../runtime"));
|
|
60
|
-
const
|
|
60
|
+
const AccountRestrictionsInfoDTO_1 = require("../models/AccountRestrictionsInfoDTO");
|
|
61
|
+
const AccountRestrictionsPage_1 = require("../models/AccountRestrictionsPage");
|
|
62
|
+
const Addresses_1 = require("../models/Addresses");
|
|
63
|
+
const MerkleStateInfoDTO_1 = require("../models/MerkleStateInfoDTO");
|
|
61
64
|
/**
|
|
62
65
|
*
|
|
63
66
|
*/
|
|
64
67
|
class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
65
68
|
/**
|
|
66
|
-
*
|
|
67
|
-
* Get account restrictions
|
|
69
|
+
* Creates request options for getAccountRestrictions without sending the request
|
|
68
70
|
*/
|
|
69
|
-
|
|
71
|
+
getAccountRestrictionsRequestOpts(requestParameters) {
|
|
70
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
73
|
if (requestParameters['address'] == null) {
|
|
72
74
|
throw new runtime.RequiredError('address', 'Required parameter "address" was null or undefined when calling getAccountRestrictions().');
|
|
@@ -74,14 +76,24 @@ class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
74
76
|
const queryParameters = {};
|
|
75
77
|
const headerParameters = {};
|
|
76
78
|
let urlPath = `/restrictions/account/{address}`;
|
|
77
|
-
urlPath = urlPath.replace(
|
|
78
|
-
|
|
79
|
+
urlPath = urlPath.replace('{address}', encodeURIComponent(String(requestParameters['address'])));
|
|
80
|
+
return {
|
|
79
81
|
path: urlPath,
|
|
80
82
|
method: 'GET',
|
|
81
83
|
headers: headerParameters,
|
|
82
84
|
query: queryParameters,
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns the account restriction entry associated with the given account address.
|
|
90
|
+
* Get account restrictions
|
|
91
|
+
*/
|
|
92
|
+
getAccountRestrictionsRaw(requestParameters, initOverrides) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const requestOptions = yield this.getAccountRestrictionsRequestOpts(requestParameters);
|
|
95
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
96
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AccountRestrictionsInfoDTO_1.AccountRestrictionsInfoDTOFromJSON)(jsonValue));
|
|
85
97
|
});
|
|
86
98
|
}
|
|
87
99
|
/**
|
|
@@ -95,10 +107,9 @@ class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
95
107
|
});
|
|
96
108
|
}
|
|
97
109
|
/**
|
|
98
|
-
*
|
|
99
|
-
* Get account restrictions for an array of addresses
|
|
110
|
+
* Creates request options for getAccountRestrictionsBatch without sending the request
|
|
100
111
|
*/
|
|
101
|
-
|
|
112
|
+
getAccountRestrictionsBatchRequestOpts(requestParameters) {
|
|
102
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
103
114
|
if (requestParameters['addresses'] == null) {
|
|
104
115
|
throw new runtime.RequiredError('addresses', 'Required parameter "addresses" was null or undefined when calling getAccountRestrictionsBatch().');
|
|
@@ -107,14 +118,24 @@ class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
107
118
|
const headerParameters = {};
|
|
108
119
|
headerParameters['Content-Type'] = 'application/json';
|
|
109
120
|
let urlPath = `/restrictions/account`;
|
|
110
|
-
|
|
121
|
+
return {
|
|
111
122
|
path: urlPath,
|
|
112
123
|
method: 'POST',
|
|
113
124
|
headers: headerParameters,
|
|
114
125
|
query: queryParameters,
|
|
115
|
-
body: (0,
|
|
116
|
-
}
|
|
117
|
-
|
|
126
|
+
body: (0, Addresses_1.AddressesToJSON)(requestParameters['addresses']),
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Returns account restriction entries for the given account addresses.
|
|
132
|
+
* Get account restrictions for an array of addresses
|
|
133
|
+
*/
|
|
134
|
+
getAccountRestrictionsBatchRaw(requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const requestOptions = yield this.getAccountRestrictionsBatchRequestOpts(requestParameters);
|
|
137
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AccountRestrictionsInfoDTO_1.AccountRestrictionsInfoDTOFromJSON));
|
|
118
139
|
});
|
|
119
140
|
}
|
|
120
141
|
/**
|
|
@@ -128,10 +149,9 @@ class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
128
149
|
});
|
|
129
150
|
}
|
|
130
151
|
/**
|
|
131
|
-
*
|
|
132
|
-
* Get account restrictions Merkle information
|
|
152
|
+
* Creates request options for getAccountRestrictionsMerkle without sending the request
|
|
133
153
|
*/
|
|
134
|
-
|
|
154
|
+
getAccountRestrictionsMerkleRequestOpts(requestParameters) {
|
|
135
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
156
|
if (requestParameters['address'] == null) {
|
|
137
157
|
throw new runtime.RequiredError('address', 'Required parameter "address" was null or undefined when calling getAccountRestrictionsMerkle().');
|
|
@@ -139,14 +159,24 @@ class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
139
159
|
const queryParameters = {};
|
|
140
160
|
const headerParameters = {};
|
|
141
161
|
let urlPath = `/restrictions/account/{address}/merkle`;
|
|
142
|
-
urlPath = urlPath.replace(
|
|
143
|
-
|
|
162
|
+
urlPath = urlPath.replace('{address}', encodeURIComponent(String(requestParameters['address'])));
|
|
163
|
+
return {
|
|
144
164
|
path: urlPath,
|
|
145
165
|
method: 'GET',
|
|
146
166
|
headers: headerParameters,
|
|
147
167
|
query: queryParameters,
|
|
148
|
-
}
|
|
149
|
-
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Returns the Merkle state proof for the account restriction entry associated with the given account address. If no account restriction entry exists for the supplied address, the endpoint still returns a Merkle proof response, but it is a negative proof showing that no account restriction state entry exists for the requested address.
|
|
173
|
+
* Get account restrictions Merkle information
|
|
174
|
+
*/
|
|
175
|
+
getAccountRestrictionsMerkleRaw(requestParameters, initOverrides) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
+
const requestOptions = yield this.getAccountRestrictionsMerkleRequestOpts(requestParameters);
|
|
178
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
179
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, MerkleStateInfoDTO_1.MerkleStateInfoDTOFromJSON)(jsonValue));
|
|
150
180
|
});
|
|
151
181
|
}
|
|
152
182
|
/**
|
|
@@ -160,10 +190,9 @@ class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
160
190
|
});
|
|
161
191
|
}
|
|
162
192
|
/**
|
|
163
|
-
*
|
|
164
|
-
* Search account restrictions
|
|
193
|
+
* Creates request options for searchAccountRestrictions without sending the request
|
|
165
194
|
*/
|
|
166
|
-
|
|
195
|
+
searchAccountRestrictionsRequestOpts(requestParameters) {
|
|
167
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
197
|
const queryParameters = {};
|
|
169
198
|
if (requestParameters['address'] != null) {
|
|
@@ -183,13 +212,23 @@ class RestrictionAccountRoutesApi extends runtime.BaseAPI {
|
|
|
183
212
|
}
|
|
184
213
|
const headerParameters = {};
|
|
185
214
|
let urlPath = `/restrictions/account`;
|
|
186
|
-
|
|
215
|
+
return {
|
|
187
216
|
path: urlPath,
|
|
188
217
|
method: 'GET',
|
|
189
218
|
headers: headerParameters,
|
|
190
219
|
query: queryParameters,
|
|
191
|
-
}
|
|
192
|
-
|
|
220
|
+
};
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
* Returns a paginated list of account restriction entries, optionally filtered by account address.
|
|
225
|
+
* Search account restrictions
|
|
226
|
+
*/
|
|
227
|
+
searchAccountRestrictionsRaw(requestParameters, initOverrides) {
|
|
228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
229
|
+
const requestOptions = yield this.searchAccountRestrictionsRequestOpts(requestParameters);
|
|
230
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
231
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AccountRestrictionsPage_1.AccountRestrictionsPageFromJSON)(jsonValue));
|
|
193
232
|
});
|
|
194
233
|
}
|
|
195
234
|
/**
|
|
@@ -10,29 +10,94 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import type
|
|
13
|
+
import { type CompositeHashes } from '../models/CompositeHashes';
|
|
14
|
+
import { type MerkleStateInfoDTO } from '../models/MerkleStateInfoDTO';
|
|
15
|
+
import { type MosaicRestrictionDTO } from '../models/MosaicRestrictionDTO';
|
|
16
|
+
import { type MosaicRestrictionEntryTypeEnum } from '../models/MosaicRestrictionEntryTypeEnum';
|
|
17
|
+
import { type MosaicRestrictionsPage } from '../models/MosaicRestrictionsPage';
|
|
18
|
+
import { type Order } from '../models/Order';
|
|
14
19
|
export interface GetMosaicRestrictionsRequest {
|
|
20
|
+
/**
|
|
21
|
+
* Composite hash encoded as a 64-character hexadecimal string.
|
|
22
|
+
*/
|
|
15
23
|
compositeHash: string;
|
|
16
24
|
}
|
|
17
25
|
export interface GetMosaicRestrictionsBatchRequest {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
*/
|
|
18
29
|
compositeHashes: CompositeHashes;
|
|
19
30
|
}
|
|
20
31
|
export interface GetMosaicRestrictionsMerkleRequest {
|
|
32
|
+
/**
|
|
33
|
+
* Composite hash encoded as a 64-character hexadecimal string.
|
|
34
|
+
*/
|
|
21
35
|
compositeHash: string;
|
|
22
36
|
}
|
|
23
37
|
export interface SearchMosaicRestrictionsRequest {
|
|
38
|
+
/**
|
|
39
|
+
* Filter by mosaic identifier (include).
|
|
40
|
+
*/
|
|
24
41
|
mosaicId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* Filter by entry type (include).
|
|
44
|
+
*/
|
|
25
45
|
entryType?: MosaicRestrictionEntryTypeEnum;
|
|
46
|
+
/**
|
|
47
|
+
* Filter by target address in Base32 (include).
|
|
48
|
+
*/
|
|
26
49
|
targetAddress?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Select the number of entries to return per page.
|
|
52
|
+
* Values outside the allowed range are clamped to the schema minimum or maximum.
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
27
55
|
pageSize?: number;
|
|
56
|
+
/**
|
|
57
|
+
* Page number for numbered pagination (1-based).
|
|
58
|
+
*
|
|
59
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
60
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
61
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
62
|
+
* incrementing `pageNumber`.
|
|
63
|
+
*
|
|
64
|
+
*/
|
|
28
65
|
pageNumber?: number;
|
|
66
|
+
/**
|
|
67
|
+
* Cursor for pagination. Provide the value of the sort field (`orderBy`) from the
|
|
68
|
+
* last entry of the previous page. **The offset type must match `orderBy`:**
|
|
69
|
+
* - `orderBy=id`: use the entry's `id` (ObjectId, 24-char hex).
|
|
70
|
+
* - `orderBy=height`: use the block height (string, e.g. `"17592"`).
|
|
71
|
+
* - `orderBy=balance`: use the mosaic balance amount (string, e.g. `"1000000"`).
|
|
72
|
+
*
|
|
73
|
+
* Allowed `orderBy` values depend on the endpoint. If `orderBy` is omitted, `id` is used by default.
|
|
74
|
+
*
|
|
75
|
+
* Set `offset` to the sort-field value of the last entry from the previous page. Across pages,
|
|
76
|
+
* this value decreases with `order=desc` and increases with `order=asc`.
|
|
77
|
+
*
|
|
78
|
+
* Numbered and cursor pagination can be combined, but this is not recommended because the semantics
|
|
79
|
+
* are harder to reason about. For cursor-style flows, keep `pageNumber=1` and advance pages by
|
|
80
|
+
* updating only `offset`. For numbered pagination flows, omit `offset` and advance pages by
|
|
81
|
+
* incrementing `pageNumber`.
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
29
84
|
offset?: string;
|
|
85
|
+
/**
|
|
86
|
+
* Sort responses in ascending or descending order based on the collection property set on the param `orderBy`.
|
|
87
|
+
* If the request does not specify `orderBy`, REST returns the collection ordered by id.
|
|
88
|
+
* The default sort direction depends on the endpoint implementation.
|
|
89
|
+
*
|
|
90
|
+
*/
|
|
30
91
|
order?: Order;
|
|
31
92
|
}
|
|
32
93
|
/**
|
|
33
94
|
*
|
|
34
95
|
*/
|
|
35
96
|
export declare class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
97
|
+
/**
|
|
98
|
+
* Creates request options for getMosaicRestrictions without sending the request
|
|
99
|
+
*/
|
|
100
|
+
getMosaicRestrictionsRequestOpts(requestParameters: GetMosaicRestrictionsRequest): Promise<runtime.RequestOpts>;
|
|
36
101
|
/**
|
|
37
102
|
* Returns the mosaic restriction entry associated with the given composite hash.
|
|
38
103
|
* Get mosaic restrictions
|
|
@@ -43,6 +108,10 @@ export declare class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
43
108
|
* Get mosaic restrictions
|
|
44
109
|
*/
|
|
45
110
|
getMosaicRestrictions(requestParameters: GetMosaicRestrictionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MosaicRestrictionDTO>;
|
|
111
|
+
/**
|
|
112
|
+
* Creates request options for getMosaicRestrictionsBatch without sending the request
|
|
113
|
+
*/
|
|
114
|
+
getMosaicRestrictionsBatchRequestOpts(requestParameters: GetMosaicRestrictionsBatchRequest): Promise<runtime.RequestOpts>;
|
|
46
115
|
/**
|
|
47
116
|
* Returns mosaic restriction entries for the given composite hashes.
|
|
48
117
|
* Get mosaic restrictions for an array of composite hashes
|
|
@@ -53,6 +122,10 @@ export declare class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
53
122
|
* Get mosaic restrictions for an array of composite hashes
|
|
54
123
|
*/
|
|
55
124
|
getMosaicRestrictionsBatch(requestParameters: GetMosaicRestrictionsBatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<MosaicRestrictionDTO>>;
|
|
125
|
+
/**
|
|
126
|
+
* Creates request options for getMosaicRestrictionsMerkle without sending the request
|
|
127
|
+
*/
|
|
128
|
+
getMosaicRestrictionsMerkleRequestOpts(requestParameters: GetMosaicRestrictionsMerkleRequest): Promise<runtime.RequestOpts>;
|
|
56
129
|
/**
|
|
57
130
|
* Returns the Merkle state proof for the mosaic restriction entry associated with the given composite hash. If no mosaic restriction entry exists for the supplied composite hash, the endpoint still returns a Merkle proof response, but it is a negative proof showing that no mosaic restriction state entry exists for the requested composite hash.
|
|
58
131
|
* Get mosaic restrictions Merkle information
|
|
@@ -63,6 +136,10 @@ export declare class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
63
136
|
* Get mosaic restrictions Merkle information
|
|
64
137
|
*/
|
|
65
138
|
getMosaicRestrictionsMerkle(requestParameters: GetMosaicRestrictionsMerkleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<MerkleStateInfoDTO>;
|
|
139
|
+
/**
|
|
140
|
+
* Creates request options for searchMosaicRestrictions without sending the request
|
|
141
|
+
*/
|
|
142
|
+
searchMosaicRestrictionsRequestOpts(requestParameters: SearchMosaicRestrictionsRequest): Promise<runtime.RequestOpts>;
|
|
66
143
|
/**
|
|
67
144
|
* Returns a paginated list of mosaic restriction entries, optionally filtered by mosaic ID, entry type, and target address.
|
|
68
145
|
* Search mosaic restrictions
|
|
@@ -57,16 +57,18 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
57
57
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
58
58
|
exports.RestrictionMosaicRoutesApi = void 0;
|
|
59
59
|
const runtime = __importStar(require("../runtime"));
|
|
60
|
-
const
|
|
60
|
+
const CompositeHashes_1 = require("../models/CompositeHashes");
|
|
61
|
+
const MerkleStateInfoDTO_1 = require("../models/MerkleStateInfoDTO");
|
|
62
|
+
const MosaicRestrictionDTO_1 = require("../models/MosaicRestrictionDTO");
|
|
63
|
+
const MosaicRestrictionsPage_1 = require("../models/MosaicRestrictionsPage");
|
|
61
64
|
/**
|
|
62
65
|
*
|
|
63
66
|
*/
|
|
64
67
|
class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
65
68
|
/**
|
|
66
|
-
*
|
|
67
|
-
* Get mosaic restrictions
|
|
69
|
+
* Creates request options for getMosaicRestrictions without sending the request
|
|
68
70
|
*/
|
|
69
|
-
|
|
71
|
+
getMosaicRestrictionsRequestOpts(requestParameters) {
|
|
70
72
|
return __awaiter(this, void 0, void 0, function* () {
|
|
71
73
|
if (requestParameters['compositeHash'] == null) {
|
|
72
74
|
throw new runtime.RequiredError('compositeHash', 'Required parameter "compositeHash" was null or undefined when calling getMosaicRestrictions().');
|
|
@@ -74,14 +76,24 @@ class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
74
76
|
const queryParameters = {};
|
|
75
77
|
const headerParameters = {};
|
|
76
78
|
let urlPath = `/restrictions/mosaic/{compositeHash}`;
|
|
77
|
-
urlPath = urlPath.replace(
|
|
78
|
-
|
|
79
|
+
urlPath = urlPath.replace('{compositeHash}', encodeURIComponent(String(requestParameters['compositeHash'])));
|
|
80
|
+
return {
|
|
79
81
|
path: urlPath,
|
|
80
82
|
method: 'GET',
|
|
81
83
|
headers: headerParameters,
|
|
82
84
|
query: queryParameters,
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Returns the mosaic restriction entry associated with the given composite hash.
|
|
90
|
+
* Get mosaic restrictions
|
|
91
|
+
*/
|
|
92
|
+
getMosaicRestrictionsRaw(requestParameters, initOverrides) {
|
|
93
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
94
|
+
const requestOptions = yield this.getMosaicRestrictionsRequestOpts(requestParameters);
|
|
95
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
96
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, MosaicRestrictionDTO_1.MosaicRestrictionDTOFromJSON)(jsonValue));
|
|
85
97
|
});
|
|
86
98
|
}
|
|
87
99
|
/**
|
|
@@ -95,10 +107,9 @@ class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
95
107
|
});
|
|
96
108
|
}
|
|
97
109
|
/**
|
|
98
|
-
*
|
|
99
|
-
* Get mosaic restrictions for an array of composite hashes
|
|
110
|
+
* Creates request options for getMosaicRestrictionsBatch without sending the request
|
|
100
111
|
*/
|
|
101
|
-
|
|
112
|
+
getMosaicRestrictionsBatchRequestOpts(requestParameters) {
|
|
102
113
|
return __awaiter(this, void 0, void 0, function* () {
|
|
103
114
|
if (requestParameters['compositeHashes'] == null) {
|
|
104
115
|
throw new runtime.RequiredError('compositeHashes', 'Required parameter "compositeHashes" was null or undefined when calling getMosaicRestrictionsBatch().');
|
|
@@ -107,14 +118,24 @@ class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
107
118
|
const headerParameters = {};
|
|
108
119
|
headerParameters['Content-Type'] = 'application/json';
|
|
109
120
|
let urlPath = `/restrictions/mosaic`;
|
|
110
|
-
|
|
121
|
+
return {
|
|
111
122
|
path: urlPath,
|
|
112
123
|
method: 'POST',
|
|
113
124
|
headers: headerParameters,
|
|
114
125
|
query: queryParameters,
|
|
115
|
-
body: (0,
|
|
116
|
-
}
|
|
117
|
-
|
|
126
|
+
body: (0, CompositeHashes_1.CompositeHashesToJSON)(requestParameters['compositeHashes']),
|
|
127
|
+
};
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Returns mosaic restriction entries for the given composite hashes.
|
|
132
|
+
* Get mosaic restrictions for an array of composite hashes
|
|
133
|
+
*/
|
|
134
|
+
getMosaicRestrictionsBatchRaw(requestParameters, initOverrides) {
|
|
135
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
136
|
+
const requestOptions = yield this.getMosaicRestrictionsBatchRequestOpts(requestParameters);
|
|
137
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
138
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MosaicRestrictionDTO_1.MosaicRestrictionDTOFromJSON));
|
|
118
139
|
});
|
|
119
140
|
}
|
|
120
141
|
/**
|
|
@@ -128,10 +149,9 @@ class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
128
149
|
});
|
|
129
150
|
}
|
|
130
151
|
/**
|
|
131
|
-
*
|
|
132
|
-
* Get mosaic restrictions Merkle information
|
|
152
|
+
* Creates request options for getMosaicRestrictionsMerkle without sending the request
|
|
133
153
|
*/
|
|
134
|
-
|
|
154
|
+
getMosaicRestrictionsMerkleRequestOpts(requestParameters) {
|
|
135
155
|
return __awaiter(this, void 0, void 0, function* () {
|
|
136
156
|
if (requestParameters['compositeHash'] == null) {
|
|
137
157
|
throw new runtime.RequiredError('compositeHash', 'Required parameter "compositeHash" was null or undefined when calling getMosaicRestrictionsMerkle().');
|
|
@@ -139,14 +159,24 @@ class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
139
159
|
const queryParameters = {};
|
|
140
160
|
const headerParameters = {};
|
|
141
161
|
let urlPath = `/restrictions/mosaic/{compositeHash}/merkle`;
|
|
142
|
-
urlPath = urlPath.replace(
|
|
143
|
-
|
|
162
|
+
urlPath = urlPath.replace('{compositeHash}', encodeURIComponent(String(requestParameters['compositeHash'])));
|
|
163
|
+
return {
|
|
144
164
|
path: urlPath,
|
|
145
165
|
method: 'GET',
|
|
146
166
|
headers: headerParameters,
|
|
147
167
|
query: queryParameters,
|
|
148
|
-
}
|
|
149
|
-
|
|
168
|
+
};
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
/**
|
|
172
|
+
* Returns the Merkle state proof for the mosaic restriction entry associated with the given composite hash. If no mosaic restriction entry exists for the supplied composite hash, the endpoint still returns a Merkle proof response, but it is a negative proof showing that no mosaic restriction state entry exists for the requested composite hash.
|
|
173
|
+
* Get mosaic restrictions Merkle information
|
|
174
|
+
*/
|
|
175
|
+
getMosaicRestrictionsMerkleRaw(requestParameters, initOverrides) {
|
|
176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
177
|
+
const requestOptions = yield this.getMosaicRestrictionsMerkleRequestOpts(requestParameters);
|
|
178
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
179
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, MerkleStateInfoDTO_1.MerkleStateInfoDTOFromJSON)(jsonValue));
|
|
150
180
|
});
|
|
151
181
|
}
|
|
152
182
|
/**
|
|
@@ -160,10 +190,9 @@ class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
160
190
|
});
|
|
161
191
|
}
|
|
162
192
|
/**
|
|
163
|
-
*
|
|
164
|
-
* Search mosaic restrictions
|
|
193
|
+
* Creates request options for searchMosaicRestrictions without sending the request
|
|
165
194
|
*/
|
|
166
|
-
|
|
195
|
+
searchMosaicRestrictionsRequestOpts(requestParameters) {
|
|
167
196
|
return __awaiter(this, void 0, void 0, function* () {
|
|
168
197
|
const queryParameters = {};
|
|
169
198
|
if (requestParameters['mosaicId'] != null) {
|
|
@@ -189,13 +218,23 @@ class RestrictionMosaicRoutesApi extends runtime.BaseAPI {
|
|
|
189
218
|
}
|
|
190
219
|
const headerParameters = {};
|
|
191
220
|
let urlPath = `/restrictions/mosaic`;
|
|
192
|
-
|
|
221
|
+
return {
|
|
193
222
|
path: urlPath,
|
|
194
223
|
method: 'GET',
|
|
195
224
|
headers: headerParameters,
|
|
196
225
|
query: queryParameters,
|
|
197
|
-
}
|
|
198
|
-
|
|
226
|
+
};
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Returns a paginated list of mosaic restriction entries, optionally filtered by mosaic ID, entry type, and target address.
|
|
231
|
+
* Search mosaic restrictions
|
|
232
|
+
*/
|
|
233
|
+
searchMosaicRestrictionsRaw(requestParameters, initOverrides) {
|
|
234
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
235
|
+
const requestOptions = yield this.searchMosaicRestrictionsRequestOpts(requestParameters);
|
|
236
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
237
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, MosaicRestrictionsPage_1.MosaicRestrictionsPageFromJSON)(jsonValue));
|
|
199
238
|
});
|
|
200
239
|
}
|
|
201
240
|
/**
|