export * from './accountAddressRestrictionTransactionBodyDTO'; export * from './accountAddressRestrictionTransactionDTO'; export * from './accountDTO'; export * from './accountIds'; export * from './accountInfoDTO'; export * from './accountLinkActionEnum'; export * from './accountLinkTransactionBodyDTO'; export * from './accountLinkTransactionDTO'; export * from './accountMetadataTransactionBodyDTO'; export * from './accountMetadataTransactionDTO'; export * from './accountMosaicRestrictionTransactionBodyDTO'; export * from './accountMosaicRestrictionTransactionDTO'; export * from './accountNamesDTO'; export * from './accountOperationRestrictionTransactionBodyDTO'; export * from './accountOperationRestrictionTransactionDTO'; export * from './accountRestrictionDTO'; export * from './accountRestrictionFlagsEnum'; export * from './accountRestrictionsDTO'; export * from './accountRestrictionsInfoDTO'; export * from './accountTypeEnum'; export * from './accountsNamesDTO'; export * from './activityBucketDTO'; export * from './addressAliasTransactionBodyDTO'; export * from './addressAliasTransactionDTO'; export * from './aggregateTransactionBodyDTO'; export * from './aggregateTransactionDTO'; export * from './aliasActionEnum'; export * from './aliasDTO'; export * from './aliasTypeEnum'; export * from './announceTransactionInfoDTO'; export * from './balanceChangeReceiptDTO'; export * from './balanceChangeReceiptDTOAllOf'; export * from './balanceTransferReceiptDTO'; export * from './balanceTransferReceiptDTOAllOf'; export * from './blockDTO'; export * from './blockDTOAllOf'; export * from './blockInfoDTO'; export * from './blockMetaDTO'; export * from './chainScoreDTO'; export * from './communicationTimestampsDTO'; export * from './cosignature'; export * from './cosignatureDTO'; export * from './cosignatureDTOAllOf'; export * from './embeddedAccountAddressRestrictionTransactionDTO'; export * from './embeddedAccountLinkTransactionDTO'; export * from './embeddedAccountMetadataTransactionDTO'; export * from './embeddedAccountMosaicRestrictionTransactionDTO'; export * from './embeddedAccountOperationRestrictionTransactionDTO'; export * from './embeddedAddressAliasTransactionDTO'; export * from './embeddedHashLockTransactionDTO'; export * from './embeddedMosaicAddressRestrictionTransactionDTO'; export * from './embeddedMosaicAliasTransactionDTO'; export * from './embeddedMosaicDefinitionTransactionDTO'; export * from './embeddedMosaicGlobalRestrictionTransactionDTO'; export * from './embeddedMosaicMetadataTransactionDTO'; export * from './embeddedMosaicSupplyChangeTransactionDTO'; export * from './embeddedMultisigAccountModificationTransactionDTO'; export * from './embeddedNamespaceMetadataTransactionDTO'; export * from './embeddedNamespaceRegistrationTransactionDTO'; export * from './embeddedSecretLockTransactionDTO'; export * from './embeddedSecretProofTransactionDTO'; export * from './embeddedTransactionDTO'; export * from './embeddedTransactionInfoDTO'; export * from './embeddedTransactionMetaDTO'; export * from './embeddedTransferTransactionDTO'; export * from './entityDTO'; export * from './hashLockTransactionBodyDTO'; export * from './hashLockTransactionDTO'; export * from './heightInfoDTO'; export * from './inflationReceiptDTO'; export * from './inflationReceiptDTOAllOf'; export * from './lockHashAlgorithmEnum'; export * from './merklePathItemDTO'; export * from './merkleProofInfoDTO'; export * from './messageDTO'; export * from './messageTypeEnum'; export * from './metadataDTO'; export * from './metadataEntriesDTO'; export * from './metadataEntryDTO'; export * from './metadataTypeEnum'; export * from './modelError'; export * from './mosaic'; export * from './mosaicAddressRestrictionDTO'; export * from './mosaicAddressRestrictionEntryDTO'; export * from './mosaicAddressRestrictionEntryWrapperDTO'; export * from './mosaicAddressRestrictionTransactionBodyDTO'; export * from './mosaicAddressRestrictionTransactionDTO'; export * from './mosaicAliasTransactionBodyDTO'; export * from './mosaicAliasTransactionDTO'; export * from './mosaicDTO'; export * from './mosaicDefinitionTransactionBodyDTO'; export * from './mosaicDefinitionTransactionDTO'; export * from './mosaicExpiryReceiptDTO'; export * from './mosaicExpiryReceiptDTOAllOf'; export * from './mosaicGlobalRestrictionDTO'; export * from './mosaicGlobalRestrictionEntryDTO'; export * from './mosaicGlobalRestrictionEntryRestrictionDTO'; export * from './mosaicGlobalRestrictionEntryWrapperDTO'; export * from './mosaicGlobalRestrictionTransactionBodyDTO'; export * from './mosaicGlobalRestrictionTransactionDTO'; export * from './mosaicIds'; export * from './mosaicInfoDTO'; export * from './mosaicMetadataTransactionBodyDTO'; export * from './mosaicMetadataTransactionDTO'; export * from './mosaicNamesDTO'; export * from './mosaicRestrictionEntryTypeEnum'; export * from './mosaicRestrictionTypeEnum'; export * from './mosaicSupplyChangeActionEnum'; export * from './mosaicSupplyChangeTransactionBodyDTO'; export * from './mosaicSupplyChangeTransactionDTO'; export * from './mosaicsInfoDTO'; export * from './mosaicsNamesDTO'; export * from './multisigAccountGraphInfoDTO'; export * from './multisigAccountInfoDTO'; export * from './multisigAccountModificationTransactionBodyDTO'; export * from './multisigAccountModificationTransactionDTO'; export * from './multisigDTO'; export * from './namespaceDTO'; export * from './namespaceExpiryReceiptDTO'; export * from './namespaceExpiryReceiptDTOAllOf'; export * from './namespaceIds'; export * from './namespaceInfoDTO'; export * from './namespaceMetaDTO'; export * from './namespaceMetadataTransactionBodyDTO'; export * from './namespaceMetadataTransactionDTO'; export * from './namespaceNameDTO'; export * from './namespaceRegistrationTransactionBodyDTO'; export * from './namespaceRegistrationTransactionDTO'; export * from './namespaceRegistrationTypeEnum'; export * from './namespacesInfoDTO'; export * from './networkFeesDTO'; export * from './networkTypeDTO'; export * from './networkTypeEnum'; export * from './nodeHealthDTO'; export * from './nodeHealthInfoDTO'; export * from './nodeInfoDTO'; export * from './nodeStatusEnum'; export * from './nodeTimeDTO'; export * from './positionEnum'; export * from './receiptDTO'; export * from './receiptTypeEnum'; export * from './resolutionEntryDTO'; export * from './resolutionStatementBodyDTO'; export * from './resolutionStatementDTO'; export * from './rolesTypeEnum'; export * from './secretLockTransactionBodyDTO'; export * from './secretLockTransactionDTO'; export * from './secretProofTransactionBodyDTO'; export * from './secretProofTransactionDTO'; export * from './serverDTO'; export * from './serverInfoDTO'; export * from './sourceDTO'; export * from './statementsDTO'; export * from './storageInfoDTO'; export * from './transactionBodyDTO'; export * from './transactionDTO'; export * from './transactionHashes'; export * from './transactionIds'; export * from './transactionInfoDTO'; export * from './transactionMetaDTO'; export * from './transactionPayload'; export * from './transactionStateTypeEnum'; export * from './transactionStatementBodyDTO'; export * from './transactionStatementDTO'; export * from './transactionStatusDTO'; export * from './transactionStatusTypeEnum'; export * from './transactionTypeEnum'; export * from './transferTransactionBodyDTO'; export * from './transferTransactionDTO'; export * from './unresolvedMosaic'; export * from './verifiableEntityDTO'; import localVarRequest = require('request'); import { AccountAddressRestrictionTransactionBodyDTO } from './accountAddressRestrictionTransactionBodyDTO'; import { AccountAddressRestrictionTransactionDTO } from './accountAddressRestrictionTransactionDTO'; import { AccountDTO } from './accountDTO'; import { AccountIds } from './accountIds'; import { AccountInfoDTO } from './accountInfoDTO'; import { AccountLinkActionEnum } from './accountLinkActionEnum'; import { AccountLinkTransactionBodyDTO } from './accountLinkTransactionBodyDTO'; import { AccountLinkTransactionDTO } from './accountLinkTransactionDTO'; import { AccountMetadataTransactionBodyDTO } from './accountMetadataTransactionBodyDTO'; import { AccountMetadataTransactionDTO } from './accountMetadataTransactionDTO'; import { AccountMosaicRestrictionTransactionBodyDTO } from './accountMosaicRestrictionTransactionBodyDTO'; import { AccountMosaicRestrictionTransactionDTO } from './accountMosaicRestrictionTransactionDTO'; import { AccountNamesDTO } from './accountNamesDTO'; import { AccountOperationRestrictionTransactionBodyDTO } from './accountOperationRestrictionTransactionBodyDTO'; import { AccountOperationRestrictionTransactionDTO } from './accountOperationRestrictionTransactionDTO'; import { AccountRestrictionDTO } from './accountRestrictionDTO'; import { AccountRestrictionFlagsEnum } from './accountRestrictionFlagsEnum'; import { AccountRestrictionsDTO } from './accountRestrictionsDTO'; import { AccountRestrictionsInfoDTO } from './accountRestrictionsInfoDTO'; import { AccountTypeEnum } from './accountTypeEnum'; import { AccountsNamesDTO } from './accountsNamesDTO'; import { ActivityBucketDTO } from './activityBucketDTO'; import { AddressAliasTransactionBodyDTO } from './addressAliasTransactionBodyDTO'; import { AddressAliasTransactionDTO } from './addressAliasTransactionDTO'; import { AggregateTransactionBodyDTO } from './aggregateTransactionBodyDTO'; import { AggregateTransactionDTO } from './aggregateTransactionDTO'; import { AliasActionEnum } from './aliasActionEnum'; import { AliasDTO } from './aliasDTO'; import { AliasTypeEnum } from './aliasTypeEnum'; import { AnnounceTransactionInfoDTO } from './announceTransactionInfoDTO'; import { BalanceChangeReceiptDTO } from './balanceChangeReceiptDTO'; import { BalanceChangeReceiptDTOAllOf } from './balanceChangeReceiptDTOAllOf'; import { BalanceTransferReceiptDTO } from './balanceTransferReceiptDTO'; import { BalanceTransferReceiptDTOAllOf } from './balanceTransferReceiptDTOAllOf'; import { BlockDTO } from './blockDTO'; import { BlockDTOAllOf } from './blockDTOAllOf'; import { BlockInfoDTO } from './blockInfoDTO'; import { BlockMetaDTO } from './blockMetaDTO'; import { ChainScoreDTO } from './chainScoreDTO'; import { CommunicationTimestampsDTO } from './communicationTimestampsDTO'; import { Cosignature } from './cosignature'; import { CosignatureDTO } from './cosignatureDTO'; import { CosignatureDTOAllOf } from './cosignatureDTOAllOf'; import { EmbeddedAccountAddressRestrictionTransactionDTO } from './embeddedAccountAddressRestrictionTransactionDTO'; import { EmbeddedAccountLinkTransactionDTO } from './embeddedAccountLinkTransactionDTO'; import { EmbeddedAccountMetadataTransactionDTO } from './embeddedAccountMetadataTransactionDTO'; import { EmbeddedAccountMosaicRestrictionTransactionDTO } from './embeddedAccountMosaicRestrictionTransactionDTO'; import { EmbeddedAccountOperationRestrictionTransactionDTO } from './embeddedAccountOperationRestrictionTransactionDTO'; import { EmbeddedAddressAliasTransactionDTO } from './embeddedAddressAliasTransactionDTO'; import { EmbeddedHashLockTransactionDTO } from './embeddedHashLockTransactionDTO'; import { EmbeddedMosaicAddressRestrictionTransactionDTO } from './embeddedMosaicAddressRestrictionTransactionDTO'; import { EmbeddedMosaicAliasTransactionDTO } from './embeddedMosaicAliasTransactionDTO'; import { EmbeddedMosaicDefinitionTransactionDTO } from './embeddedMosaicDefinitionTransactionDTO'; import { EmbeddedMosaicGlobalRestrictionTransactionDTO } from './embeddedMosaicGlobalRestrictionTransactionDTO'; import { EmbeddedMosaicMetadataTransactionDTO } from './embeddedMosaicMetadataTransactionDTO'; import { EmbeddedMosaicSupplyChangeTransactionDTO } from './embeddedMosaicSupplyChangeTransactionDTO'; import { EmbeddedMultisigAccountModificationTransactionDTO } from './embeddedMultisigAccountModificationTransactionDTO'; import { EmbeddedNamespaceMetadataTransactionDTO } from './embeddedNamespaceMetadataTransactionDTO'; import { EmbeddedNamespaceRegistrationTransactionDTO } from './embeddedNamespaceRegistrationTransactionDTO'; import { EmbeddedSecretLockTransactionDTO } from './embeddedSecretLockTransactionDTO'; import { EmbeddedSecretProofTransactionDTO } from './embeddedSecretProofTransactionDTO'; import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; import { EmbeddedTransactionInfoDTO } from './embeddedTransactionInfoDTO'; import { EmbeddedTransactionMetaDTO } from './embeddedTransactionMetaDTO'; import { EmbeddedTransferTransactionDTO } from './embeddedTransferTransactionDTO'; import { EntityDTO } from './entityDTO'; import { HashLockTransactionBodyDTO } from './hashLockTransactionBodyDTO'; import { HashLockTransactionDTO } from './hashLockTransactionDTO'; import { HeightInfoDTO } from './heightInfoDTO'; import { InflationReceiptDTO } from './inflationReceiptDTO'; import { InflationReceiptDTOAllOf } from './inflationReceiptDTOAllOf'; import { LockHashAlgorithmEnum } from './lockHashAlgorithmEnum'; import { MerklePathItemDTO } from './merklePathItemDTO'; import { MerkleProofInfoDTO } from './merkleProofInfoDTO'; import { MessageDTO } from './messageDTO'; import { MessageTypeEnum } from './messageTypeEnum'; import { MetadataDTO } from './metadataDTO'; import { MetadataEntriesDTO } from './metadataEntriesDTO'; import { MetadataEntryDTO } from './metadataEntryDTO'; import { MetadataTypeEnum } from './metadataTypeEnum'; import { ModelError } from './modelError'; import { Mosaic } from './mosaic'; import { MosaicAddressRestrictionDTO } from './mosaicAddressRestrictionDTO'; import { MosaicAddressRestrictionEntryDTO } from './mosaicAddressRestrictionEntryDTO'; import { MosaicAddressRestrictionEntryWrapperDTO } from './mosaicAddressRestrictionEntryWrapperDTO'; import { MosaicAddressRestrictionTransactionBodyDTO } from './mosaicAddressRestrictionTransactionBodyDTO'; import { MosaicAddressRestrictionTransactionDTO } from './mosaicAddressRestrictionTransactionDTO'; import { MosaicAliasTransactionBodyDTO } from './mosaicAliasTransactionBodyDTO'; import { MosaicAliasTransactionDTO } from './mosaicAliasTransactionDTO'; import { MosaicDTO } from './mosaicDTO'; import { MosaicDefinitionTransactionBodyDTO } from './mosaicDefinitionTransactionBodyDTO'; import { MosaicDefinitionTransactionDTO } from './mosaicDefinitionTransactionDTO'; import { MosaicExpiryReceiptDTO } from './mosaicExpiryReceiptDTO'; import { MosaicExpiryReceiptDTOAllOf } from './mosaicExpiryReceiptDTOAllOf'; import { MosaicGlobalRestrictionDTO } from './mosaicGlobalRestrictionDTO'; import { MosaicGlobalRestrictionEntryDTO } from './mosaicGlobalRestrictionEntryDTO'; import { MosaicGlobalRestrictionEntryRestrictionDTO } from './mosaicGlobalRestrictionEntryRestrictionDTO'; import { MosaicGlobalRestrictionEntryWrapperDTO } from './mosaicGlobalRestrictionEntryWrapperDTO'; import { MosaicGlobalRestrictionTransactionBodyDTO } from './mosaicGlobalRestrictionTransactionBodyDTO'; import { MosaicGlobalRestrictionTransactionDTO } from './mosaicGlobalRestrictionTransactionDTO'; import { MosaicIds } from './mosaicIds'; import { MosaicInfoDTO } from './mosaicInfoDTO'; import { MosaicMetadataTransactionBodyDTO } from './mosaicMetadataTransactionBodyDTO'; import { MosaicMetadataTransactionDTO } from './mosaicMetadataTransactionDTO'; import { MosaicNamesDTO } from './mosaicNamesDTO'; import { MosaicRestrictionEntryTypeEnum } from './mosaicRestrictionEntryTypeEnum'; import { MosaicRestrictionTypeEnum } from './mosaicRestrictionTypeEnum'; import { MosaicSupplyChangeActionEnum } from './mosaicSupplyChangeActionEnum'; import { MosaicSupplyChangeTransactionBodyDTO } from './mosaicSupplyChangeTransactionBodyDTO'; import { MosaicSupplyChangeTransactionDTO } from './mosaicSupplyChangeTransactionDTO'; import { MosaicsInfoDTO } from './mosaicsInfoDTO'; import { MosaicsNamesDTO } from './mosaicsNamesDTO'; import { MultisigAccountGraphInfoDTO } from './multisigAccountGraphInfoDTO'; import { MultisigAccountInfoDTO } from './multisigAccountInfoDTO'; import { MultisigAccountModificationTransactionBodyDTO } from './multisigAccountModificationTransactionBodyDTO'; import { MultisigAccountModificationTransactionDTO } from './multisigAccountModificationTransactionDTO'; import { MultisigDTO } from './multisigDTO'; import { NamespaceDTO } from './namespaceDTO'; import { NamespaceExpiryReceiptDTO } from './namespaceExpiryReceiptDTO'; import { NamespaceExpiryReceiptDTOAllOf } from './namespaceExpiryReceiptDTOAllOf'; import { NamespaceIds } from './namespaceIds'; import { NamespaceInfoDTO } from './namespaceInfoDTO'; import { NamespaceMetaDTO } from './namespaceMetaDTO'; import { NamespaceMetadataTransactionBodyDTO } from './namespaceMetadataTransactionBodyDTO'; import { NamespaceMetadataTransactionDTO } from './namespaceMetadataTransactionDTO'; import { NamespaceNameDTO } from './namespaceNameDTO'; import { NamespaceRegistrationTransactionBodyDTO } from './namespaceRegistrationTransactionBodyDTO'; import { NamespaceRegistrationTransactionDTO } from './namespaceRegistrationTransactionDTO'; import { NamespaceRegistrationTypeEnum } from './namespaceRegistrationTypeEnum'; import { NamespacesInfoDTO } from './namespacesInfoDTO'; import { NetworkFeesDTO } from './networkFeesDTO'; import { NetworkTypeDTO } from './networkTypeDTO'; import { NetworkTypeEnum } from './networkTypeEnum'; import { NodeHealthDTO } from './nodeHealthDTO'; import { NodeHealthInfoDTO } from './nodeHealthInfoDTO'; import { NodeInfoDTO } from './nodeInfoDTO'; import { NodeStatusEnum } from './nodeStatusEnum'; import { NodeTimeDTO } from './nodeTimeDTO'; import { PositionEnum } from './positionEnum'; import { ReceiptDTO } from './receiptDTO'; import { ReceiptTypeEnum } from './receiptTypeEnum'; import { ResolutionEntryDTO } from './resolutionEntryDTO'; import { ResolutionStatementBodyDTO } from './resolutionStatementBodyDTO'; import { ResolutionStatementDTO } from './resolutionStatementDTO'; import { RolesTypeEnum } from './rolesTypeEnum'; import { SecretLockTransactionBodyDTO } from './secretLockTransactionBodyDTO'; import { SecretLockTransactionDTO } from './secretLockTransactionDTO'; import { SecretProofTransactionBodyDTO } from './secretProofTransactionBodyDTO'; import { SecretProofTransactionDTO } from './secretProofTransactionDTO'; import { ServerDTO } from './serverDTO'; import { ServerInfoDTO } from './serverInfoDTO'; import { SourceDTO } from './sourceDTO'; import { StatementsDTO } from './statementsDTO'; import { StorageInfoDTO } from './storageInfoDTO'; import { TransactionBodyDTO } from './transactionBodyDTO'; import { TransactionDTO } from './transactionDTO'; import { TransactionHashes } from './transactionHashes'; import { TransactionIds } from './transactionIds'; import { TransactionInfoDTO } from './transactionInfoDTO'; import { TransactionMetaDTO } from './transactionMetaDTO'; import { TransactionPayload } from './transactionPayload'; import { TransactionStateTypeEnum } from './transactionStateTypeEnum'; import { TransactionStatementBodyDTO } from './transactionStatementBodyDTO'; import { TransactionStatementDTO } from './transactionStatementDTO'; import { TransactionStatusDTO } from './transactionStatusDTO'; import { TransactionStatusTypeEnum } from './transactionStatusTypeEnum'; import { TransactionTypeEnum } from './transactionTypeEnum'; import { TransferTransactionBodyDTO } from './transferTransactionBodyDTO'; import { TransferTransactionDTO } from './transferTransactionDTO'; import { UnresolvedMosaic } from './unresolvedMosaic'; import { VerifiableEntityDTO } from './verifiableEntityDTO'; /* tslint:disable:no-unused-variable */ let primitives = [ "string", "boolean", "double", "integer", "long", "float", "number", "any" ]; let enumsMap: {[index: string]: any} = { "AccountLinkActionEnum": AccountLinkActionEnum, "AccountRestrictionFlagsEnum": AccountRestrictionFlagsEnum, "AccountTypeEnum": AccountTypeEnum, "AliasActionEnum": AliasActionEnum, "AliasTypeEnum": AliasTypeEnum, "LockHashAlgorithmEnum": LockHashAlgorithmEnum, "MessageTypeEnum": MessageTypeEnum, "MetadataTypeEnum": MetadataTypeEnum, "MosaicRestrictionEntryTypeEnum": MosaicRestrictionEntryTypeEnum, "MosaicRestrictionTypeEnum": MosaicRestrictionTypeEnum, "MosaicSupplyChangeActionEnum": MosaicSupplyChangeActionEnum, "NamespaceRegistrationTypeEnum": NamespaceRegistrationTypeEnum, "NetworkTypeEnum": NetworkTypeEnum, "NodeStatusEnum": NodeStatusEnum, "PositionEnum": PositionEnum, "ReceiptTypeEnum": ReceiptTypeEnum, "RolesTypeEnum": RolesTypeEnum, "TransactionStateTypeEnum": TransactionStateTypeEnum, "TransactionStatusTypeEnum": TransactionStatusTypeEnum, "TransactionTypeEnum": TransactionTypeEnum, } let typeMap: {[index: string]: any} = { "AccountAddressRestrictionTransactionBodyDTO": AccountAddressRestrictionTransactionBodyDTO, "AccountAddressRestrictionTransactionDTO": AccountAddressRestrictionTransactionDTO, "AccountDTO": AccountDTO, "AccountIds": AccountIds, "AccountInfoDTO": AccountInfoDTO, "AccountLinkTransactionBodyDTO": AccountLinkTransactionBodyDTO, "AccountLinkTransactionDTO": AccountLinkTransactionDTO, "AccountMetadataTransactionBodyDTO": AccountMetadataTransactionBodyDTO, "AccountMetadataTransactionDTO": AccountMetadataTransactionDTO, "AccountMosaicRestrictionTransactionBodyDTO": AccountMosaicRestrictionTransactionBodyDTO, "AccountMosaicRestrictionTransactionDTO": AccountMosaicRestrictionTransactionDTO, "AccountNamesDTO": AccountNamesDTO, "AccountOperationRestrictionTransactionBodyDTO": AccountOperationRestrictionTransactionBodyDTO, "AccountOperationRestrictionTransactionDTO": AccountOperationRestrictionTransactionDTO, "AccountRestrictionDTO": AccountRestrictionDTO, "AccountRestrictionsDTO": AccountRestrictionsDTO, "AccountRestrictionsInfoDTO": AccountRestrictionsInfoDTO, "AccountsNamesDTO": AccountsNamesDTO, "ActivityBucketDTO": ActivityBucketDTO, "AddressAliasTransactionBodyDTO": AddressAliasTransactionBodyDTO, "AddressAliasTransactionDTO": AddressAliasTransactionDTO, "AggregateTransactionBodyDTO": AggregateTransactionBodyDTO, "AggregateTransactionDTO": AggregateTransactionDTO, "AliasDTO": AliasDTO, "AnnounceTransactionInfoDTO": AnnounceTransactionInfoDTO, "BalanceChangeReceiptDTO": BalanceChangeReceiptDTO, "BalanceChangeReceiptDTOAllOf": BalanceChangeReceiptDTOAllOf, "BalanceTransferReceiptDTO": BalanceTransferReceiptDTO, "BalanceTransferReceiptDTOAllOf": BalanceTransferReceiptDTOAllOf, "BlockDTO": BlockDTO, "BlockDTOAllOf": BlockDTOAllOf, "BlockInfoDTO": BlockInfoDTO, "BlockMetaDTO": BlockMetaDTO, "ChainScoreDTO": ChainScoreDTO, "CommunicationTimestampsDTO": CommunicationTimestampsDTO, "Cosignature": Cosignature, "CosignatureDTO": CosignatureDTO, "CosignatureDTOAllOf": CosignatureDTOAllOf, "EmbeddedAccountAddressRestrictionTransactionDTO": EmbeddedAccountAddressRestrictionTransactionDTO, "EmbeddedAccountLinkTransactionDTO": EmbeddedAccountLinkTransactionDTO, "EmbeddedAccountMetadataTransactionDTO": EmbeddedAccountMetadataTransactionDTO, "EmbeddedAccountMosaicRestrictionTransactionDTO": EmbeddedAccountMosaicRestrictionTransactionDTO, "EmbeddedAccountOperationRestrictionTransactionDTO": EmbeddedAccountOperationRestrictionTransactionDTO, "EmbeddedAddressAliasTransactionDTO": EmbeddedAddressAliasTransactionDTO, "EmbeddedHashLockTransactionDTO": EmbeddedHashLockTransactionDTO, "EmbeddedMosaicAddressRestrictionTransactionDTO": EmbeddedMosaicAddressRestrictionTransactionDTO, "EmbeddedMosaicAliasTransactionDTO": EmbeddedMosaicAliasTransactionDTO, "EmbeddedMosaicDefinitionTransactionDTO": EmbeddedMosaicDefinitionTransactionDTO, "EmbeddedMosaicGlobalRestrictionTransactionDTO": EmbeddedMosaicGlobalRestrictionTransactionDTO, "EmbeddedMosaicMetadataTransactionDTO": EmbeddedMosaicMetadataTransactionDTO, "EmbeddedMosaicSupplyChangeTransactionDTO": EmbeddedMosaicSupplyChangeTransactionDTO, "EmbeddedMultisigAccountModificationTransactionDTO": EmbeddedMultisigAccountModificationTransactionDTO, "EmbeddedNamespaceMetadataTransactionDTO": EmbeddedNamespaceMetadataTransactionDTO, "EmbeddedNamespaceRegistrationTransactionDTO": EmbeddedNamespaceRegistrationTransactionDTO, "EmbeddedSecretLockTransactionDTO": EmbeddedSecretLockTransactionDTO, "EmbeddedSecretProofTransactionDTO": EmbeddedSecretProofTransactionDTO, "EmbeddedTransactionDTO": EmbeddedTransactionDTO, "EmbeddedTransactionInfoDTO": EmbeddedTransactionInfoDTO, "EmbeddedTransactionMetaDTO": EmbeddedTransactionMetaDTO, "EmbeddedTransferTransactionDTO": EmbeddedTransferTransactionDTO, "EntityDTO": EntityDTO, "HashLockTransactionBodyDTO": HashLockTransactionBodyDTO, "HashLockTransactionDTO": HashLockTransactionDTO, "HeightInfoDTO": HeightInfoDTO, "InflationReceiptDTO": InflationReceiptDTO, "InflationReceiptDTOAllOf": InflationReceiptDTOAllOf, "MerklePathItemDTO": MerklePathItemDTO, "MerkleProofInfoDTO": MerkleProofInfoDTO, "MessageDTO": MessageDTO, "MetadataDTO": MetadataDTO, "MetadataEntriesDTO": MetadataEntriesDTO, "MetadataEntryDTO": MetadataEntryDTO, "ModelError": ModelError, "Mosaic": Mosaic, "MosaicAddressRestrictionDTO": MosaicAddressRestrictionDTO, "MosaicAddressRestrictionEntryDTO": MosaicAddressRestrictionEntryDTO, "MosaicAddressRestrictionEntryWrapperDTO": MosaicAddressRestrictionEntryWrapperDTO, "MosaicAddressRestrictionTransactionBodyDTO": MosaicAddressRestrictionTransactionBodyDTO, "MosaicAddressRestrictionTransactionDTO": MosaicAddressRestrictionTransactionDTO, "MosaicAliasTransactionBodyDTO": MosaicAliasTransactionBodyDTO, "MosaicAliasTransactionDTO": MosaicAliasTransactionDTO, "MosaicDTO": MosaicDTO, "MosaicDefinitionTransactionBodyDTO": MosaicDefinitionTransactionBodyDTO, "MosaicDefinitionTransactionDTO": MosaicDefinitionTransactionDTO, "MosaicExpiryReceiptDTO": MosaicExpiryReceiptDTO, "MosaicExpiryReceiptDTOAllOf": MosaicExpiryReceiptDTOAllOf, "MosaicGlobalRestrictionDTO": MosaicGlobalRestrictionDTO, "MosaicGlobalRestrictionEntryDTO": MosaicGlobalRestrictionEntryDTO, "MosaicGlobalRestrictionEntryRestrictionDTO": MosaicGlobalRestrictionEntryRestrictionDTO, "MosaicGlobalRestrictionEntryWrapperDTO": MosaicGlobalRestrictionEntryWrapperDTO, "MosaicGlobalRestrictionTransactionBodyDTO": MosaicGlobalRestrictionTransactionBodyDTO, "MosaicGlobalRestrictionTransactionDTO": MosaicGlobalRestrictionTransactionDTO, "MosaicIds": MosaicIds, "MosaicInfoDTO": MosaicInfoDTO, "MosaicMetadataTransactionBodyDTO": MosaicMetadataTransactionBodyDTO, "MosaicMetadataTransactionDTO": MosaicMetadataTransactionDTO, "MosaicNamesDTO": MosaicNamesDTO, "MosaicSupplyChangeTransactionBodyDTO": MosaicSupplyChangeTransactionBodyDTO, "MosaicSupplyChangeTransactionDTO": MosaicSupplyChangeTransactionDTO, "MosaicsInfoDTO": MosaicsInfoDTO, "MosaicsNamesDTO": MosaicsNamesDTO, "MultisigAccountGraphInfoDTO": MultisigAccountGraphInfoDTO, "MultisigAccountInfoDTO": MultisigAccountInfoDTO, "MultisigAccountModificationTransactionBodyDTO": MultisigAccountModificationTransactionBodyDTO, "MultisigAccountModificationTransactionDTO": MultisigAccountModificationTransactionDTO, "MultisigDTO": MultisigDTO, "NamespaceDTO": NamespaceDTO, "NamespaceExpiryReceiptDTO": NamespaceExpiryReceiptDTO, "NamespaceExpiryReceiptDTOAllOf": NamespaceExpiryReceiptDTOAllOf, "NamespaceIds": NamespaceIds, "NamespaceInfoDTO": NamespaceInfoDTO, "NamespaceMetaDTO": NamespaceMetaDTO, "NamespaceMetadataTransactionBodyDTO": NamespaceMetadataTransactionBodyDTO, "NamespaceMetadataTransactionDTO": NamespaceMetadataTransactionDTO, "NamespaceNameDTO": NamespaceNameDTO, "NamespaceRegistrationTransactionBodyDTO": NamespaceRegistrationTransactionBodyDTO, "NamespaceRegistrationTransactionDTO": NamespaceRegistrationTransactionDTO, "NamespacesInfoDTO": NamespacesInfoDTO, "NetworkFeesDTO": NetworkFeesDTO, "NetworkTypeDTO": NetworkTypeDTO, "NodeHealthDTO": NodeHealthDTO, "NodeHealthInfoDTO": NodeHealthInfoDTO, "NodeInfoDTO": NodeInfoDTO, "NodeTimeDTO": NodeTimeDTO, "ReceiptDTO": ReceiptDTO, "ResolutionEntryDTO": ResolutionEntryDTO, "ResolutionStatementBodyDTO": ResolutionStatementBodyDTO, "ResolutionStatementDTO": ResolutionStatementDTO, "SecretLockTransactionBodyDTO": SecretLockTransactionBodyDTO, "SecretLockTransactionDTO": SecretLockTransactionDTO, "SecretProofTransactionBodyDTO": SecretProofTransactionBodyDTO, "SecretProofTransactionDTO": SecretProofTransactionDTO, "ServerDTO": ServerDTO, "ServerInfoDTO": ServerInfoDTO, "SourceDTO": SourceDTO, "StatementsDTO": StatementsDTO, "StorageInfoDTO": StorageInfoDTO, "TransactionBodyDTO": TransactionBodyDTO, "TransactionDTO": TransactionDTO, "TransactionHashes": TransactionHashes, "TransactionIds": TransactionIds, "TransactionInfoDTO": TransactionInfoDTO, "TransactionMetaDTO": TransactionMetaDTO, "TransactionPayload": TransactionPayload, "TransactionStatementBodyDTO": TransactionStatementBodyDTO, "TransactionStatementDTO": TransactionStatementDTO, "TransactionStatusDTO": TransactionStatusDTO, "TransferTransactionBodyDTO": TransferTransactionBodyDTO, "TransferTransactionDTO": TransferTransactionDTO, "UnresolvedMosaic": UnresolvedMosaic, "VerifiableEntityDTO": VerifiableEntityDTO, } export class ObjectSerializer { public static findCorrectType(data: any, expectedType: string) { if (data == undefined) { return expectedType; } else if (primitives.indexOf(expectedType.toLowerCase()) !== -1) { return expectedType; } else if (expectedType === "Date") { return expectedType; } else { if (enumsMap[expectedType]) { return expectedType; } if (!typeMap[expectedType]) { return expectedType; // w/e we don't know the type } // Check the discriminator let discriminatorProperty = typeMap[expectedType].discriminator; if (discriminatorProperty == null) { return expectedType; // the type does not have a discriminator. use it. } else { if (data[discriminatorProperty]) { var discriminatorType = data[discriminatorProperty]; if(typeMap[discriminatorType]){ return discriminatorType; // use the type given in the discriminator } else { return expectedType; // discriminator did not map to a type } } else { return expectedType; // discriminator was not present (or an empty string) } } } } public static serialize(data: any, type: string) { if (data == undefined) { return data; } else if (primitives.indexOf(type.toLowerCase()) !== -1) { return data; } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 let subType: string = type.replace("Array<", ""); // Array => Type> subType = subType.substring(0, subType.length - 1); // Type> => Type let transformedData: any[] = []; for (let index in data) { let date = data[index]; transformedData.push(ObjectSerializer.serialize(date, subType)); } return transformedData; } else if (type === "Date") { return data.toISOString(); } else { if (enumsMap[type]) { return data; } if (!typeMap[type]) { // in case we dont know the type return data; } // Get the actual type of this object type = this.findCorrectType(data, type); // get the map for the correct type. let attributeTypes = typeMap[type].getAttributeTypeMap(); let instance: {[index: string]: any} = {}; for (let index in attributeTypes) { let attributeType = attributeTypes[index]; instance[attributeType.baseName] = ObjectSerializer.serialize(data[attributeType.name], attributeType.type); } return instance; } } public static deserialize(data: any, type: string) { // polymorphism may change the actual type. type = ObjectSerializer.findCorrectType(data, type); if (data == undefined) { return data; } else if (primitives.indexOf(type.toLowerCase()) !== -1) { return data; } else if (type.lastIndexOf("Array<", 0) === 0) { // string.startsWith pre es6 let subType: string = type.replace("Array<", ""); // Array => Type> subType = subType.substring(0, subType.length - 1); // Type> => Type let transformedData: any[] = []; for (let index in data) { let date = data[index]; transformedData.push(ObjectSerializer.deserialize(date, subType)); } return transformedData; } else if (type === "Date") { return new Date(data); } else { if (enumsMap[type]) {// is Enum return data; } if (!typeMap[type]) { // dont know the type return data; } let instance = new typeMap[type](); let attributeTypes = typeMap[type].getAttributeTypeMap(); for (let index in attributeTypes) { let attributeType = attributeTypes[index]; instance[attributeType.name] = ObjectSerializer.deserialize(data[attributeType.baseName], attributeType.type); } return instance; } } } export interface Authentication { /** * Apply authentication settings to header and query params. */ applyToRequest(requestOptions: localVarRequest.Options): Promise | void; } export class HttpBasicAuth implements Authentication { public username: string = ''; public password: string = ''; applyToRequest(requestOptions: localVarRequest.Options): void { requestOptions.auth = { username: this.username, password: this.password } } } export class ApiKeyAuth implements Authentication { public apiKey: string = ''; constructor(private location: string, private paramName: string) { } applyToRequest(requestOptions: localVarRequest.Options): void { if (this.location == "query") { (requestOptions.qs)[this.paramName] = this.apiKey; } else if (this.location == "header" && requestOptions && requestOptions.headers) { requestOptions.headers[this.paramName] = this.apiKey; } } } export class OAuth implements Authentication { public accessToken: string = ''; applyToRequest(requestOptions: localVarRequest.Options): void { if (requestOptions && requestOptions.headers) { requestOptions.headers["Authorization"] = "Bearer " + this.accessToken; } } } export class VoidAuth implements Authentication { public username: string = ''; public password: string = ''; applyToRequest(_: localVarRequest.Options): void { // Do nothing } }