From b8e68678bb3cc0ac750020d63af01cf3f852d78f Mon Sep 17 00:00:00 2001 From: Fernando Boucquez Date: Sat, 2 Nov 2019 22:47:46 +0100 Subject: [PATCH 1/2] TS-78 NetworkHttp now uses NetworkRoutes Removed open api generated code. Added new generated lib dependency. Updated typescript compiler to fix a lib problem after a "npm install" --- package-lock.json | 2330 +++++++++-------- package.json | 3 +- src/infrastructure/AccountHttp.ts | 49 +- src/infrastructure/BlockHttp.ts | 35 +- src/infrastructure/ChainHttp.ts | 26 +- src/infrastructure/DiagnosticHttp.ts | 2 +- src/infrastructure/MetadataHttp.ts | 6 +- src/infrastructure/MosaicHttp.ts | 2 +- src/infrastructure/NamespaceHttp.ts | 2 +- src/infrastructure/NetworkHttp.ts | 41 +- src/infrastructure/NodeHttp.ts | 22 +- src/infrastructure/RestrictionHttp.ts | 2 +- src/infrastructure/TransactionHttp.ts | 2 +- src/infrastructure/api.ts | 30 - src/infrastructure/api/accountRoutesApi.ts | 748 ------ src/infrastructure/api/apis.ts | 50 - src/infrastructure/api/blockRoutesApi.ts | 481 ---- src/infrastructure/api/chainRoutesApi.ts | 192 -- src/infrastructure/api/diagnosticRoutesApi.ts | 192 -- src/infrastructure/api/metadataRoutesApi.ts | 727 ----- src/infrastructure/api/mosaicRoutesApi.ts | 391 --- src/infrastructure/api/namespaceRoutesApi.ts | 332 --- src/infrastructure/api/networkRoutesApi.ts | 139 - src/infrastructure/api/nodeRoutesApi.ts | 192 -- .../api/restrictionRoutesApi.ts | 450 ---- .../api/transactionRoutesApi.ts | 507 ---- ...ccountAddressRestrictionModificationDTO.ts | 55 - ...untAddressRestrictionTransactionBodyDTO.ts | 53 - ...accountAddressRestrictionTransactionDTO.ts | 106 - src/infrastructure/model/accountDTO.ts | 120 - src/infrastructure/model/accountIds.ts | 57 - src/infrastructure/model/accountInfoDTO.ts | 46 - .../model/accountLinkActionEnum.ts | 35 - .../model/accountLinkTransactionBodyDTO.ts | 52 - .../model/accountLinkTransactionDTO.ts | 105 - .../accountMetadataTransactionBodyDTO.ts | 81 - .../model/accountMetadataTransactionDTO.ts | 134 - ...accountMosaicRestrictionModificationDTO.ts | 55 - ...ountMosaicRestrictionTransactionBodyDTO.ts | 53 - .../accountMosaicRestrictionTransactionDTO.ts | 106 - src/infrastructure/model/accountNamesDTO.ts | 57 - ...ountOperationRestrictionModificationDTO.ts | 53 - ...tOperationRestrictionTransactionBodyDTO.ts | 53 - ...countOperationRestrictionTransactionDTO.ts | 106 - .../model/accountRestrictionDTO.ts | 55 - ...ccountRestrictionModificationActionEnum.ts | 35 - .../model/accountRestrictionTypeEnum.ts | 42 - .../model/accountRestrictionsDTO.ts | 55 - .../model/accountRestrictionsInfoDTO.ts | 46 - src/infrastructure/model/accountTypeEnum.ts | 37 - src/infrastructure/model/accountsNamesDTO.ts | 49 - src/infrastructure/model/activityBucketDTO.ts | 66 - .../model/addressAliasTransactionBodyDTO.ts | 64 - .../model/addressAliasTransactionDTO.ts | 117 - .../model/aggregateBondedTransactionDTO.ts | 112 - .../model/aggregateCompleteTransactionDTO.ts | 112 - .../model/aggregateTransactionBodyDTO.ts | 59 - src/infrastructure/model/aliasActionEnum.ts | 35 - src/infrastructure/model/aliasDTO.ts | 64 - src/infrastructure/model/aliasTypeEnum.ts | 36 - .../model/announceTransactionInfoDTO.ts | 45 - .../model/artifactExpiryReceiptDTO.ts | 65 - .../model/artifactExpiryReceiptDTOAllOf.ts | 44 - .../model/balanceChangeReceiptDTO.ts | 84 - .../model/balanceChangeReceiptDTOAllOf.ts | 63 - .../model/balanceTransferReceiptDTO.ts | 93 - .../model/balanceTransferReceiptDTOAllOf.ts | 72 - src/infrastructure/model/blockDTO.ts | 138 - src/infrastructure/model/blockDTOAllOf.ts | 105 - src/infrastructure/model/blockInfoDTO.ts | 53 - src/infrastructure/model/blockMetaDTO.ts | 78 - src/infrastructure/model/chainScoreDTO.ts | 57 - .../model/communicationTimestampsDTO.ts | 57 - .../cosignatoryModificationActionEnum.ts | 35 - .../model/cosignatoryModificationDTO.ts | 52 - src/infrastructure/model/cosignature.ts | 60 - src/infrastructure/model/cosignatureDTO.ts | 56 - .../model/cosignatureDTOAllOf.ts | 45 - ...AccountAddressRestrictionTransactionDTO.ts | 94 - .../embeddedAccountLinkTransactionDTO.ts | 93 - .../embeddedAccountMetadataTransactionDTO.ts | 122 - ...ccountMetadataTransactionTransactionDTO.ts | 122 - ...dAccountMosaicRestrictionTransactionDTO.ts | 94 - ...countOperationRestrictionTransactionDTO.ts | 94 - .../embeddedAddressAliasTransactionDTO.ts | 105 - .../model/embeddedHashLockTransactionDTO.ts | 111 - ...dMosaicAddressRestrictionTransactionDTO.ts | 125 - .../embeddedMosaicAliasTransactionDTO.ts | 105 - .../embeddedMosaicDefinitionTransactionDTO.ts | 125 - ...edMosaicGlobalRestrictionTransactionDTO.ts | 138 - .../embeddedMosaicMetadataTransactionDTO.ts | 131 - ...MosaicMetadataTransactionTransactionDTO.ts | 131 - ...mbeddedMosaicSupplyChangeTransactionDTO.ts | 105 - ...ltisigAccountModificationTransactionDTO.ts | 108 - ...embeddedNamespaceMetadataTransactionDTO.ts | 131 - ...espaceMetadataTransactionTransactionDTO.ts | 131 - ...ddedNamespaceRegistrationTransactionDTO.ts | 123 - .../model/embeddedSecretLockTransactionDTO.ts | 129 - .../embeddedSecretProofTransactionDTO.ts | 111 - .../model/embeddedTransactionDTO.ts | 80 - .../model/embeddedTransactionInfoDTO.ts | 52 - .../model/embeddedTransactionMetaDTO.ts | 72 - .../model/embeddedTransferTransactionDTO.ts | 106 - src/infrastructure/model/entityDTO.ts | 60 - .../model/hashLockTransactionBodyDTO.ts | 61 - .../model/hashLockTransactionDTO.ts | 114 - src/infrastructure/model/heightInfoDTO.ts | 48 - .../model/inflationReceiptDTO.ts | 78 - .../model/inflationReceiptDTOAllOf.ts | 57 - .../model/lockHashAlgorithmEnum.ts | 37 - src/infrastructure/model/merklePathItem.ts | 51 - .../model/merkleProofInfoDTO.ts | 49 - src/infrastructure/model/messageDTO.ts | 55 - src/infrastructure/model/messageTypeEnum.ts | 34 - src/infrastructure/model/metadataDTO.ts | 52 - .../model/metadataEntriesDTO.ts | 49 - src/infrastructure/model/metadataEntryDTO.ts | 97 - src/infrastructure/model/metadataTypeEnum.ts | 36 - src/infrastructure/model/modelError.ts | 51 - src/infrastructure/model/models.ts | 682 ----- src/infrastructure/model/mosaic.ts | 57 - .../model/mosaicAddressRestrictionDTO.ts | 46 - .../model/mosaicAddressRestrictionEntryDTO.ts | 57 - ...mosaicAddressRestrictionEntryWrapperDTO.ts | 77 - ...aicAddressRestrictionTransactionBodyDTO.ts | 84 - .../mosaicAddressRestrictionTransactionDTO.ts | 137 - .../model/mosaicAliasTransactionBodyDTO.ts | 64 - .../model/mosaicAliasTransactionDTO.ts | 117 - src/infrastructure/model/mosaicDTO.ts | 114 - .../mosaicDefinitionTransactionBodyDTO.ts | 84 - .../model/mosaicDefinitionTransactionDTO.ts | 137 - .../model/mosaicGlobalRestrictionDTO.ts | 46 - .../model/mosaicGlobalRestrictionEntryDTO.ts | 55 - ...aicGlobalRestrictionEntryRestrictionDTO.ts | 64 - .../mosaicGlobalRestrictionEntryWrapperDTO.ts | 68 - ...saicGlobalRestrictionTransactionBodyDTO.ts | 97 - .../mosaicGlobalRestrictionTransactionDTO.ts | 150 -- src/infrastructure/model/mosaicIds.ts | 48 - src/infrastructure/model/mosaicInfoDTO.ts | 46 - .../model/mosaicMetadataTransactionBodyDTO.ts | 90 - .../model/mosaicMetadataTransactionDTO.ts | 143 - src/infrastructure/model/mosaicNamesDTO.ts | 57 - .../model/mosaicRestrictionEntryTypeEnum.ts | 35 - .../model/mosaicRestrictionTypeEnum.ts | 40 - .../model/mosaicSupplyChangeActionEnum.ts | 35 - .../mosaicSupplyChangeTransactionBodyDTO.ts | 64 - .../model/mosaicSupplyChangeTransactionDTO.ts | 117 - src/infrastructure/model/mosaicsNamesDTO.ts | 49 - .../model/multisigAccountGraphInfoDTO.ts | 58 - .../model/multisigAccountInfoDTO.ts | 46 - ...igAccountModificationTransactionBodyDTO.ts | 67 - ...ltisigAccountModificationTransactionDTO.ts | 120 - src/infrastructure/model/multisigDTO.ts | 90 - src/infrastructure/model/namespaceDTO.ts | 131 - src/infrastructure/model/namespaceIds.ts | 48 - src/infrastructure/model/namespaceInfoDTO.ts | 53 - src/infrastructure/model/namespaceMetaDTO.ts | 57 - .../namespaceMetadataTransactionBodyDTO.ts | 90 - .../model/namespaceMetadataTransactionDTO.ts | 143 - src/infrastructure/model/namespaceNameDTO.ts | 66 - ...namespaceRegistrationTransactionBodyDTO.ts | 82 - .../namespaceRegistrationTransactionDTO.ts | 135 - .../model/namespaceRegistrationTypeEnum.ts | 35 - src/infrastructure/model/networkTypeDTO.ts | 57 - src/infrastructure/model/nodeInfoDTO.ts | 94 - src/infrastructure/model/nodeTimeDTO.ts | 46 - src/infrastructure/model/receiptDTO.ts | 55 - src/infrastructure/model/receiptTypeEnum.ts | 49 - .../model/resolutionEntryDTO.ts | 52 - .../model/resolutionStatementBodyDTO.ts | 64 - .../model/resolutionStatementDTO.ts | 49 - src/infrastructure/model/rolesTypeEnum.ts | 35 - .../model/secretLockTransactionBodyDTO.ts | 88 - .../model/secretLockTransactionDTO.ts | 141 - .../model/secretProofTransactionBodyDTO.ts | 70 - .../model/secretProofTransactionDTO.ts | 123 - src/infrastructure/model/serverDTO.ts | 46 - src/infrastructure/model/serverInfoDTO.ts | 57 - src/infrastructure/model/sourceDTO.ts | 60 - src/infrastructure/model/statementsDTO.ts | 71 - src/infrastructure/model/storageInfoDTO.ts | 66 - .../model/transactionBodyDTO.ts | 57 - src/infrastructure/model/transactionDTO.ts | 90 - src/infrastructure/model/transactionHashes.ts | 48 - src/infrastructure/model/transactionIds.ts | 48 - .../model/transactionInfoDTO.ts | 52 - .../model/transactionMetaDTO.ts | 72 - .../model/transactionPayload.ts | 48 - .../model/transactionStatementBodyDTO.ts | 64 - .../model/transactionStatementDTO.ts | 49 - .../model/transactionStatusDTO.ts | 75 - .../model/transactionTypeEnum.ts | 54 - .../model/transferTransactionBodyDTO.ts | 65 - .../model/transferTransactionDTO.ts | 118 - src/infrastructure/model/unresolvedMosaic.ts | 57 - .../model/verifiableEntityDTO.ts | 48 - 196 files changed, 1393 insertions(+), 18989 deletions(-) delete mode 100644 src/infrastructure/api.ts delete mode 100644 src/infrastructure/api/accountRoutesApi.ts delete mode 100644 src/infrastructure/api/apis.ts delete mode 100644 src/infrastructure/api/blockRoutesApi.ts delete mode 100644 src/infrastructure/api/chainRoutesApi.ts delete mode 100644 src/infrastructure/api/diagnosticRoutesApi.ts delete mode 100644 src/infrastructure/api/metadataRoutesApi.ts delete mode 100644 src/infrastructure/api/mosaicRoutesApi.ts delete mode 100644 src/infrastructure/api/namespaceRoutesApi.ts delete mode 100644 src/infrastructure/api/networkRoutesApi.ts delete mode 100644 src/infrastructure/api/nodeRoutesApi.ts delete mode 100644 src/infrastructure/api/restrictionRoutesApi.ts delete mode 100644 src/infrastructure/api/transactionRoutesApi.ts delete mode 100644 src/infrastructure/model/accountAddressRestrictionModificationDTO.ts delete mode 100644 src/infrastructure/model/accountAddressRestrictionTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/accountAddressRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/accountDTO.ts delete mode 100644 src/infrastructure/model/accountIds.ts delete mode 100644 src/infrastructure/model/accountInfoDTO.ts delete mode 100644 src/infrastructure/model/accountLinkActionEnum.ts delete mode 100644 src/infrastructure/model/accountLinkTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/accountLinkTransactionDTO.ts delete mode 100644 src/infrastructure/model/accountMetadataTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/accountMetadataTransactionDTO.ts delete mode 100644 src/infrastructure/model/accountMosaicRestrictionModificationDTO.ts delete mode 100644 src/infrastructure/model/accountMosaicRestrictionTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/accountMosaicRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/accountNamesDTO.ts delete mode 100644 src/infrastructure/model/accountOperationRestrictionModificationDTO.ts delete mode 100644 src/infrastructure/model/accountOperationRestrictionTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/accountOperationRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/accountRestrictionDTO.ts delete mode 100644 src/infrastructure/model/accountRestrictionModificationActionEnum.ts delete mode 100644 src/infrastructure/model/accountRestrictionTypeEnum.ts delete mode 100644 src/infrastructure/model/accountRestrictionsDTO.ts delete mode 100644 src/infrastructure/model/accountRestrictionsInfoDTO.ts delete mode 100644 src/infrastructure/model/accountTypeEnum.ts delete mode 100644 src/infrastructure/model/accountsNamesDTO.ts delete mode 100644 src/infrastructure/model/activityBucketDTO.ts delete mode 100644 src/infrastructure/model/addressAliasTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/addressAliasTransactionDTO.ts delete mode 100644 src/infrastructure/model/aggregateBondedTransactionDTO.ts delete mode 100644 src/infrastructure/model/aggregateCompleteTransactionDTO.ts delete mode 100644 src/infrastructure/model/aggregateTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/aliasActionEnum.ts delete mode 100644 src/infrastructure/model/aliasDTO.ts delete mode 100644 src/infrastructure/model/aliasTypeEnum.ts delete mode 100644 src/infrastructure/model/announceTransactionInfoDTO.ts delete mode 100644 src/infrastructure/model/artifactExpiryReceiptDTO.ts delete mode 100644 src/infrastructure/model/artifactExpiryReceiptDTOAllOf.ts delete mode 100644 src/infrastructure/model/balanceChangeReceiptDTO.ts delete mode 100644 src/infrastructure/model/balanceChangeReceiptDTOAllOf.ts delete mode 100644 src/infrastructure/model/balanceTransferReceiptDTO.ts delete mode 100644 src/infrastructure/model/balanceTransferReceiptDTOAllOf.ts delete mode 100644 src/infrastructure/model/blockDTO.ts delete mode 100644 src/infrastructure/model/blockDTOAllOf.ts delete mode 100644 src/infrastructure/model/blockInfoDTO.ts delete mode 100644 src/infrastructure/model/blockMetaDTO.ts delete mode 100644 src/infrastructure/model/chainScoreDTO.ts delete mode 100644 src/infrastructure/model/communicationTimestampsDTO.ts delete mode 100644 src/infrastructure/model/cosignatoryModificationActionEnum.ts delete mode 100644 src/infrastructure/model/cosignatoryModificationDTO.ts delete mode 100644 src/infrastructure/model/cosignature.ts delete mode 100644 src/infrastructure/model/cosignatureDTO.ts delete mode 100644 src/infrastructure/model/cosignatureDTOAllOf.ts delete mode 100644 src/infrastructure/model/embeddedAccountAddressRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedAccountLinkTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedAccountMetadataTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedAccountMetadataTransactionTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedAccountMosaicRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedAccountOperationRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedAddressAliasTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedHashLockTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedMosaicAddressRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedMosaicAliasTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedMosaicDefinitionTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedMosaicGlobalRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedMosaicMetadataTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedMosaicMetadataTransactionTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedMosaicSupplyChangeTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedMultisigAccountModificationTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedNamespaceMetadataTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedNamespaceMetadataTransactionTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedNamespaceRegistrationTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedSecretLockTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedSecretProofTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedTransactionDTO.ts delete mode 100644 src/infrastructure/model/embeddedTransactionInfoDTO.ts delete mode 100644 src/infrastructure/model/embeddedTransactionMetaDTO.ts delete mode 100644 src/infrastructure/model/embeddedTransferTransactionDTO.ts delete mode 100644 src/infrastructure/model/entityDTO.ts delete mode 100644 src/infrastructure/model/hashLockTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/hashLockTransactionDTO.ts delete mode 100644 src/infrastructure/model/heightInfoDTO.ts delete mode 100644 src/infrastructure/model/inflationReceiptDTO.ts delete mode 100644 src/infrastructure/model/inflationReceiptDTOAllOf.ts delete mode 100644 src/infrastructure/model/lockHashAlgorithmEnum.ts delete mode 100644 src/infrastructure/model/merklePathItem.ts delete mode 100644 src/infrastructure/model/merkleProofInfoDTO.ts delete mode 100644 src/infrastructure/model/messageDTO.ts delete mode 100644 src/infrastructure/model/messageTypeEnum.ts delete mode 100644 src/infrastructure/model/metadataDTO.ts delete mode 100644 src/infrastructure/model/metadataEntriesDTO.ts delete mode 100644 src/infrastructure/model/metadataEntryDTO.ts delete mode 100644 src/infrastructure/model/metadataTypeEnum.ts delete mode 100644 src/infrastructure/model/modelError.ts delete mode 100644 src/infrastructure/model/models.ts delete mode 100644 src/infrastructure/model/mosaic.ts delete mode 100644 src/infrastructure/model/mosaicAddressRestrictionDTO.ts delete mode 100644 src/infrastructure/model/mosaicAddressRestrictionEntryDTO.ts delete mode 100644 src/infrastructure/model/mosaicAddressRestrictionEntryWrapperDTO.ts delete mode 100644 src/infrastructure/model/mosaicAddressRestrictionTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/mosaicAddressRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/mosaicAliasTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/mosaicAliasTransactionDTO.ts delete mode 100644 src/infrastructure/model/mosaicDTO.ts delete mode 100644 src/infrastructure/model/mosaicDefinitionTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/mosaicDefinitionTransactionDTO.ts delete mode 100644 src/infrastructure/model/mosaicGlobalRestrictionDTO.ts delete mode 100644 src/infrastructure/model/mosaicGlobalRestrictionEntryDTO.ts delete mode 100644 src/infrastructure/model/mosaicGlobalRestrictionEntryRestrictionDTO.ts delete mode 100644 src/infrastructure/model/mosaicGlobalRestrictionEntryWrapperDTO.ts delete mode 100644 src/infrastructure/model/mosaicGlobalRestrictionTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/mosaicGlobalRestrictionTransactionDTO.ts delete mode 100644 src/infrastructure/model/mosaicIds.ts delete mode 100644 src/infrastructure/model/mosaicInfoDTO.ts delete mode 100644 src/infrastructure/model/mosaicMetadataTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/mosaicMetadataTransactionDTO.ts delete mode 100644 src/infrastructure/model/mosaicNamesDTO.ts delete mode 100644 src/infrastructure/model/mosaicRestrictionEntryTypeEnum.ts delete mode 100644 src/infrastructure/model/mosaicRestrictionTypeEnum.ts delete mode 100644 src/infrastructure/model/mosaicSupplyChangeActionEnum.ts delete mode 100644 src/infrastructure/model/mosaicSupplyChangeTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/mosaicSupplyChangeTransactionDTO.ts delete mode 100644 src/infrastructure/model/mosaicsNamesDTO.ts delete mode 100644 src/infrastructure/model/multisigAccountGraphInfoDTO.ts delete mode 100644 src/infrastructure/model/multisigAccountInfoDTO.ts delete mode 100644 src/infrastructure/model/multisigAccountModificationTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/multisigAccountModificationTransactionDTO.ts delete mode 100644 src/infrastructure/model/multisigDTO.ts delete mode 100644 src/infrastructure/model/namespaceDTO.ts delete mode 100644 src/infrastructure/model/namespaceIds.ts delete mode 100644 src/infrastructure/model/namespaceInfoDTO.ts delete mode 100644 src/infrastructure/model/namespaceMetaDTO.ts delete mode 100644 src/infrastructure/model/namespaceMetadataTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/namespaceMetadataTransactionDTO.ts delete mode 100644 src/infrastructure/model/namespaceNameDTO.ts delete mode 100644 src/infrastructure/model/namespaceRegistrationTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/namespaceRegistrationTransactionDTO.ts delete mode 100644 src/infrastructure/model/namespaceRegistrationTypeEnum.ts delete mode 100644 src/infrastructure/model/networkTypeDTO.ts delete mode 100644 src/infrastructure/model/nodeInfoDTO.ts delete mode 100644 src/infrastructure/model/nodeTimeDTO.ts delete mode 100644 src/infrastructure/model/receiptDTO.ts delete mode 100644 src/infrastructure/model/receiptTypeEnum.ts delete mode 100644 src/infrastructure/model/resolutionEntryDTO.ts delete mode 100644 src/infrastructure/model/resolutionStatementBodyDTO.ts delete mode 100644 src/infrastructure/model/resolutionStatementDTO.ts delete mode 100644 src/infrastructure/model/rolesTypeEnum.ts delete mode 100644 src/infrastructure/model/secretLockTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/secretLockTransactionDTO.ts delete mode 100644 src/infrastructure/model/secretProofTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/secretProofTransactionDTO.ts delete mode 100644 src/infrastructure/model/serverDTO.ts delete mode 100644 src/infrastructure/model/serverInfoDTO.ts delete mode 100644 src/infrastructure/model/sourceDTO.ts delete mode 100644 src/infrastructure/model/statementsDTO.ts delete mode 100644 src/infrastructure/model/storageInfoDTO.ts delete mode 100644 src/infrastructure/model/transactionBodyDTO.ts delete mode 100644 src/infrastructure/model/transactionDTO.ts delete mode 100644 src/infrastructure/model/transactionHashes.ts delete mode 100644 src/infrastructure/model/transactionIds.ts delete mode 100644 src/infrastructure/model/transactionInfoDTO.ts delete mode 100644 src/infrastructure/model/transactionMetaDTO.ts delete mode 100644 src/infrastructure/model/transactionPayload.ts delete mode 100644 src/infrastructure/model/transactionStatementBodyDTO.ts delete mode 100644 src/infrastructure/model/transactionStatementDTO.ts delete mode 100644 src/infrastructure/model/transactionStatusDTO.ts delete mode 100644 src/infrastructure/model/transactionTypeEnum.ts delete mode 100644 src/infrastructure/model/transferTransactionBodyDTO.ts delete mode 100644 src/infrastructure/model/transferTransactionDTO.ts delete mode 100644 src/infrastructure/model/unresolvedMosaic.ts delete mode 100644 src/infrastructure/model/verifiableEntityDTO.ts diff --git a/package-lock.json b/package-lock.json index 97a36086c6..5f86dc5dc5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "integrity": "sha512-27d4lZoomVyo51VegxI20xZPuSHusqbQag/ztrBC7wegWoQ1nLREPVSKSW8byhTlzTKyNE4ifaTA6lCp7JjpFw==", "dev": true, "requires": { - "@babel/highlight": "^7.0.0" + "@babel/highlight": "7.5.0" } }, "@babel/generator": { @@ -19,10 +19,10 @@ "integrity": "sha512-j8iHaIW4gGPnViaIHI7e9t/Hl8qLjERI6DcV9kEpAIDJsAOrcnXqRS7t+QbhL76pwbtqP+QCQLL0z1CyVmtjjQ==", "dev": true, "requires": { - "@babel/types": "^7.6.0", - "jsesc": "^2.5.1", - "lodash": "^4.17.13", - "source-map": "^0.5.0" + "@babel/types": "7.6.1", + "jsesc": "2.5.2", + "lodash": "4.17.15", + "source-map": "0.5.7" } }, "@babel/helper-function-name": { @@ -31,9 +31,9 @@ "integrity": "sha512-A95XEoCpb3TO+KZzJ4S/5uW5fNe26DjBGqf1o9ucyLyCmi1dXq/B3c8iaWTfBk3VvetUxl16e8tIrd5teOCfGw==", "dev": true, "requires": { - "@babel/helper-get-function-arity": "^7.0.0", - "@babel/template": "^7.1.0", - "@babel/types": "^7.0.0" + "@babel/helper-get-function-arity": "7.0.0", + "@babel/template": "7.6.0", + "@babel/types": "7.6.1" } }, "@babel/helper-get-function-arity": { @@ -42,7 +42,7 @@ "integrity": "sha512-r2DbJeg4svYvt3HOS74U4eWKsUAMRH01Z1ds1zx8KNTPtpTL5JAsdFv8BNyOpVqdFhHkkRDIg5B4AsxmkjAlmQ==", "dev": true, "requires": { - "@babel/types": "^7.0.0" + "@babel/types": "7.6.1" } }, "@babel/helper-split-export-declaration": { @@ -51,7 +51,7 @@ "integrity": "sha512-Ro/XkzLf3JFITkW6b+hNxzZ1n5OQ80NvIUdmHspih1XAhtN3vPTuUFT4eQnela+2MaZ5ulH+iyP513KJrxbN7Q==", "dev": true, "requires": { - "@babel/types": "^7.4.4" + "@babel/types": "7.6.1" } }, "@babel/highlight": { @@ -60,9 +60,9 @@ "integrity": "sha512-7dV4eu9gBxoM0dAnj/BCFDW9LFU0zvTrkq0ugM7pnHEgguOEeOz1so2ZghEdzviYzQEED0r4EAgpsBChKy1TRQ==", "dev": true, "requires": { - "chalk": "^2.0.0", - "esutils": "^2.0.2", - "js-tokens": "^4.0.0" + "chalk": "2.4.2", + "esutils": "2.0.2", + "js-tokens": "4.0.0" }, "dependencies": { "ansi-styles": { @@ -71,7 +71,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "^1.9.0" + "color-convert": "1.9.1" } }, "chalk": { @@ -80,9 +80,9 @@ "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", "dev": true, "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.5.0" } }, "has-flag": { @@ -103,7 +103,7 @@ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "3.0.0" } } } @@ -120,9 +120,9 @@ "integrity": "sha512-5AEH2EXD8euCk446b7edmgFdub/qfH1SN6Nii3+fyXP807QRx9Q73A2N5hNwRRslC2H9sNzaFhsPubkS4L8oNQ==", "dev": true, "requires": { - "@babel/code-frame": "^7.0.0", - "@babel/parser": "^7.6.0", - "@babel/types": "^7.6.0" + "@babel/code-frame": "7.5.5", + "@babel/parser": "7.6.2", + "@babel/types": "7.6.1" } }, "@babel/traverse": { @@ -131,15 +131,15 @@ "integrity": "sha512-8fRE76xNwNttVEF2TwxJDGBLWthUkHWSldmfuBzVRmEDWOtu4XdINTgN7TDWzuLg4bbeIMLvfMFD9we5YcWkRQ==", "dev": true, "requires": { - "@babel/code-frame": "^7.5.5", - "@babel/generator": "^7.6.2", - "@babel/helper-function-name": "^7.1.0", - "@babel/helper-split-export-declaration": "^7.4.4", - "@babel/parser": "^7.6.2", - "@babel/types": "^7.6.0", - "debug": "^4.1.0", - "globals": "^11.1.0", - "lodash": "^4.17.13" + "@babel/code-frame": "7.5.5", + "@babel/generator": "7.6.2", + "@babel/helper-function-name": "7.1.0", + "@babel/helper-split-export-declaration": "7.4.4", + "@babel/parser": "7.6.2", + "@babel/types": "7.6.1", + "debug": "4.1.1", + "globals": "11.12.0", + "lodash": "4.17.15" } }, "@babel/types": { @@ -148,16 +148,20 @@ "integrity": "sha512-X7gdiuaCmA0uRjCmRtYJNAVCc/q+5xSgsfKJHqMN4iNLILX39677fJE1O40arPMh0TTtS9ItH67yre6c7k6t0g==", "dev": true, "requires": { - "esutils": "^2.0.2", - "lodash": "^4.17.13", - "to-fast-properties": "^2.0.0" + "esutils": "2.0.2", + "lodash": "4.17.15", + "to-fast-properties": "2.0.0" } }, + "@types/bluebird": { + "version": "3.5.28", + "resolved": "https://registry.npmjs.org/@types/bluebird/-/bluebird-3.5.28.tgz", + "integrity": "sha512-0Vk/kqkukxPKSzP9c8WJgisgGDx5oZDbsLLWIP5t70yThO/YleE+GEm2S1GlRALTaack3O7U5OS5qEm7q2kciA==" + }, "@types/caseless": { "version": "0.12.1", "resolved": "https://registry.npmjs.org/@types/caseless/-/caseless-0.12.1.tgz", - "integrity": "sha512-FhlMa34NHp9K5MY1Uz8yb+ZvuX0pnvn3jScRSNAb75KHGB8d3rEU6hqMs3Z2vjuytcMfRg6c5CHMc3wtYyD2/A==", - "dev": true + "integrity": "sha512-FhlMa34NHp9K5MY1Uz8yb+ZvuX0pnvn3jScRSNAb75KHGB8d3rEU6hqMs3Z2vjuytcMfRg6c5CHMc3wtYyD2/A==" }, "@types/chai": { "version": "4.1.2", @@ -175,9 +179,8 @@ "version": "2.2.1", "resolved": "https://registry.npmjs.org/@types/form-data/-/form-data-2.2.1.tgz", "integrity": "sha512-JAMFhOaHIciYVh8fb5/83nmuO/AHwmto+Hq7a9y8FzLDcC1KCU344XDOMEmahnrTFlHjgh4L0WJFczNIX2GxnQ==", - "dev": true, "requires": { - "@types/node": "*" + "@types/node": "9.6.0" } }, "@types/lodash": { @@ -201,19 +204,17 @@ "@types/node": { "version": "9.6.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-9.6.0.tgz", - "integrity": "sha512-h3YZbOq2+ZoDFI1z8Zx0Ck/xRWkOESVaLdgLdd/c25mMQ1Y2CAkILu9ny5A15S5f32gGcQdaUIZ2jzYr8D7IFg==", - "dev": true + "integrity": "sha512-h3YZbOq2+ZoDFI1z8Zx0Ck/xRWkOESVaLdgLdd/c25mMQ1Y2CAkILu9ny5A15S5f32gGcQdaUIZ2jzYr8D7IFg==" }, "@types/request": { "version": "2.47.0", "resolved": "https://registry.npmjs.org/@types/request/-/request-2.47.0.tgz", "integrity": "sha512-/KXM5oev+nNCLIgBjkwbk8VqxmzI56woD4VUxn95O+YeQ8hJzcSmIZ1IN3WexiqBb6srzDo2bdMbsXxgXNkz5Q==", - "dev": true, "requires": { - "@types/caseless": "*", - "@types/form-data": "*", - "@types/node": "*", - "@types/tough-cookie": "*" + "@types/caseless": "0.12.1", + "@types/form-data": "2.2.1", + "@types/node": "9.6.0", + "@types/tough-cookie": "2.3.2" } }, "@types/request-promise-native": { @@ -222,14 +223,13 @@ "integrity": "sha512-m6PNeopPU75gjN3+dD9AeWwm7h2QIOuLnmn143+Qs0bMYFyri9/bhCgikHlgzH0gk7xR48nef82GWeRV6N3DxA==", "dev": true, "requires": { - "@types/request": "*" + "@types/request": "2.47.0" } }, "@types/tough-cookie": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/@types/tough-cookie/-/tough-cookie-2.3.2.tgz", - "integrity": "sha512-vOVmaruQG5EatOU/jM6yU2uCp3Lz6mK1P5Ztu4iJjfM4SVHU9XYktPUQtKlIXuahqXHdEyUarMrBEwg5Cwu+bA==", - "dev": true + "integrity": "sha512-vOVmaruQG5EatOU/jM6yU2uCp3Lz6mK1P5Ztu4iJjfM4SVHU9XYktPUQtKlIXuahqXHdEyUarMrBEwg5Cwu+bA==" }, "@types/utf8": { "version": "2.1.6", @@ -243,7 +243,7 @@ "integrity": "sha512-t5n0/iHoavnX1MqeYmKJgWc1W6yX4BXsNxQg7M5862RWrfN9S5k8yaWbDMGJSTCzbH7+q5QS8chjymd+ND9gMw==", "dev": true, "requires": { - "@types/node": "*" + "@types/node": "9.6.0" } }, "ajv": { @@ -251,10 +251,10 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.2.tgz", "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "2.0.1", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.4.1", + "uri-js": "4.2.2" } }, "ansi-colors": { @@ -263,7 +263,7 @@ "integrity": "sha512-SFKX67auSNoVR38N3L+nvsPjOE0bybKTYbkf5tRvushrAPQ9V75huw0ZxBkKVeRU9kqH3d6HA4xTckbwZ4ixmA==", "dev": true, "requires": { - "ansi-wrap": "^0.1.0" + "ansi-wrap": "0.1.0" } }, "ansi-gray": { @@ -278,14 +278,12 @@ "ansi-regex": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", - "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true + "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=" }, "ansi-styles": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true + "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=" }, "ansi-wrap": { "version": "0.1.0", @@ -299,8 +297,8 @@ "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", "dev": true, "requires": { - "micromatch": "^3.1.4", - "normalize-path": "^2.1.1" + "micromatch": "3.1.10", + "normalize-path": "2.1.1" } }, "append-buffer": { @@ -309,7 +307,7 @@ "integrity": "sha1-2CIM9GYIFSXv6lBhTz3mUU36WPE=", "dev": true, "requires": { - "buffer-equal": "^1.0.0" + "buffer-equal": "1.0.0" } }, "append-transform": { @@ -318,7 +316,7 @@ "integrity": "sha512-P009oYkeHyU742iSZJzZZywj4QRJdnTWffaKuJQLablCZ1uz6/cW4yaRgcDaoQ+uwOxxnt0gRUcwfsNP2ri0gw==", "dev": true, "requires": { - "default-require-extensions": "^2.0.0" + "default-require-extensions": "2.0.0" } }, "archy": { @@ -333,7 +331,7 @@ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "requires": { - "sprintf-js": "~1.0.2" + "sprintf-js": "1.0.3" } }, "arr-diff": { @@ -348,7 +346,7 @@ "integrity": "sha1-Q/3d0JHo7xGqTEXZzcGOLf8XEe4=", "dev": true, "requires": { - "make-iterator": "^1.0.0" + "make-iterator": "1.0.1" } }, "arr-flatten": { @@ -363,7 +361,7 @@ "integrity": "sha1-Onc0X/wc814qkYJWAfnljy4kysQ=", "dev": true, "requires": { - "make-iterator": "^1.0.0" + "make-iterator": "1.0.1" } }, "arr-union": { @@ -384,8 +382,8 @@ "integrity": "sha1-L6dLJnOTccOUe9enrcc74zSz15U=", "dev": true, "requires": { - "array-slice": "^1.0.0", - "is-number": "^4.0.0" + "array-slice": "1.1.0", + "is-number": "4.0.0" }, "dependencies": { "is-number": { @@ -402,7 +400,7 @@ "integrity": "sha512-eOCut5rXlI6aCOS7Z7kCplKRKyiFQ6dHFBem4PwlwKeNFk2/XxTrhRh5T9PyaEWGy/NHTZWbY+nsZlNFJu9rYg==", "dev": true, "requires": { - "is-number": "^4.0.0" + "is-number": "4.0.0" }, "dependencies": { "is-number": { @@ -425,9 +423,9 @@ "integrity": "sha512-ihLeJkonmdiAsD7vpgN3CRcx2J2S0TiYW+IS/5zHBI7mKUq3ySvBdzzBfD236ubDBQFiiyG3SWCPc+msQ9KoYg==", "dev": true, "requires": { - "default-compare": "^1.0.0", - "get-value": "^2.0.6", - "kind-of": "^5.0.2" + "default-compare": "1.0.0", + "get-value": "2.0.6", + "kind-of": "5.1.0" }, "dependencies": { "kind-of": { @@ -487,10 +485,10 @@ "integrity": "sha512-R1BaUeJ4PMoLNJuk+0tLJgjmEqVsdN118+Z8O+alhnQDQgy0kmD5Mqi0DNEmMx2LM0Ed5yekKu+ZXYvIHceicg==", "dev": true, "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.2", - "process-nextick-args": "^1.0.7", - "stream-exhaust": "^1.0.1" + "end-of-stream": "1.4.1", + "once": "1.4.0", + "process-nextick-args": "1.0.7", + "stream-exhaust": "1.0.2" }, "dependencies": { "process-nextick-args": { @@ -518,7 +516,7 @@ "integrity": "sha1-HQqRS7Aldb7IqPOnTlCA9yssDGs=", "dev": true, "requires": { - "async-done": "^1.2.2" + "async-done": "1.3.1" } }, "asynckit": { @@ -546,35 +544,209 @@ "version": "6.26.0", "resolved": "https://registry.npmjs.org/babel-code-frame/-/babel-code-frame-6.26.0.tgz", "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", - "dev": true, "requires": { - "chalk": "^1.1.3", - "esutils": "^2.0.2", - "js-tokens": "^3.0.2" + "chalk": "1.1.3", + "esutils": "2.0.2", + "js-tokens": "3.0.2" + } + }, + "babel-core": { + "version": "6.26.3", + "resolved": "https://registry.npmjs.org/babel-core/-/babel-core-6.26.3.tgz", + "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", + "requires": { + "babel-code-frame": "6.26.0", + "babel-generator": "6.26.1", + "babel-helpers": "6.24.1", + "babel-messages": "6.23.0", + "babel-register": "6.26.0", + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "convert-source-map": "1.6.0", + "debug": "2.6.9", + "json5": "0.5.1", + "lodash": "4.17.15", + "minimatch": "3.0.4", + "path-is-absolute": "1.0.1", + "private": "0.1.8", + "slash": "1.0.0", + "source-map": "0.5.7" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + } + } + }, + "babel-generator": { + "version": "6.26.1", + "resolved": "https://registry.npmjs.org/babel-generator/-/babel-generator-6.26.1.tgz", + "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", + "requires": { + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "detect-indent": "4.0.0", + "jsesc": "1.3.0", + "lodash": "4.17.15", + "source-map": "0.5.7", + "trim-right": "1.0.1" + }, + "dependencies": { + "jsesc": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-1.3.0.tgz", + "integrity": "sha1-RsP+yMGJKxKwgz25vHYiF226s0s=" + } + } + }, + "babel-helpers": { + "version": "6.24.1", + "resolved": "https://registry.npmjs.org/babel-helpers/-/babel-helpers-6.24.1.tgz", + "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0" + } + }, + "babel-messages": { + "version": "6.23.0", + "resolved": "https://registry.npmjs.org/babel-messages/-/babel-messages-6.23.0.tgz", + "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", + "requires": { + "babel-runtime": "6.26.0" + } + }, + "babel-plugin-transform-es2015-block-scoping": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-plugin-transform-es2015-block-scoping/-/babel-plugin-transform-es2015-block-scoping-6.26.0.tgz", + "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", + "requires": { + "babel-runtime": "6.26.0", + "babel-template": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "lodash": "4.17.15" + } + }, + "babel-register": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-register/-/babel-register-6.26.0.tgz", + "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", + "requires": { + "babel-core": "6.26.3", + "babel-runtime": "6.26.0", + "core-js": "2.6.10", + "home-or-tmp": "2.0.0", + "lodash": "4.17.15", + "mkdirp": "0.5.1", + "source-map-support": "0.4.18" + } + }, + "babel-runtime": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", + "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", + "requires": { + "core-js": "2.6.10", + "regenerator-runtime": "0.11.1" + } + }, + "babel-template": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-template/-/babel-template-6.26.0.tgz", + "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", + "requires": { + "babel-runtime": "6.26.0", + "babel-traverse": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "lodash": "4.17.15" + } + }, + "babel-traverse": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-traverse/-/babel-traverse-6.26.0.tgz", + "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", + "requires": { + "babel-code-frame": "6.26.0", + "babel-messages": "6.23.0", + "babel-runtime": "6.26.0", + "babel-types": "6.26.0", + "babylon": "6.18.0", + "debug": "2.6.9", + "globals": "9.18.0", + "invariant": "2.2.4", + "lodash": "4.17.15" + }, + "dependencies": { + "debug": { + "version": "2.6.9", + "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", + "requires": { + "ms": "2.0.0" + } + }, + "globals": { + "version": "9.18.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-9.18.0.tgz", + "integrity": "sha512-S0nG3CLEQiY/ILxqtztTWH/3iRRdyBLw6KMDxnKMchrtbj2OFmehVh0WUCfW3DUrIgx/qFrJPICrq4Z4sTR9UQ==" + } + } + }, + "babel-types": { + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/babel-types/-/babel-types-6.26.0.tgz", + "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", + "requires": { + "babel-runtime": "6.26.0", + "esutils": "2.0.2", + "lodash": "4.17.15", + "to-fast-properties": "1.0.3" + }, + "dependencies": { + "to-fast-properties": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-1.0.3.tgz", + "integrity": "sha1-uDVx+k2MJbguIxsG46MFXeTKGkc=" + } } }, + "babylon": { + "version": "6.18.0", + "resolved": "https://registry.npmjs.org/babylon/-/babylon-6.18.0.tgz", + "integrity": "sha512-q/UEjfGJ2Cm3oKV71DJz9d25TPnq5rhBVL2Q4fA5wcC3jcrdn7+SssEybFIxwAvvP+YCsCYNKughoF33GxgycQ==" + }, "bach": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/bach/-/bach-1.2.0.tgz", "integrity": "sha1-Szzpa/JxNPeaG0FKUcFONMO9mIA=", "dev": true, "requires": { - "arr-filter": "^1.1.1", - "arr-flatten": "^1.0.1", - "arr-map": "^2.0.0", - "array-each": "^1.0.0", - "array-initial": "^1.0.0", - "array-last": "^1.1.1", - "async-done": "^1.2.2", - "async-settle": "^1.0.0", - "now-and-later": "^2.0.0" + "arr-filter": "1.1.2", + "arr-flatten": "1.1.0", + "arr-map": "2.0.2", + "array-each": "1.0.1", + "array-initial": "1.1.0", + "array-last": "1.3.0", + "async-done": "1.3.1", + "async-settle": "1.0.0", + "now-and-later": "2.0.1" } }, "balanced-match": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=" }, "base": { "version": "0.11.2", @@ -582,13 +754,13 @@ "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", "dev": true, "requires": { - "cache-base": "^1.0.1", - "class-utils": "^0.3.5", - "component-emitter": "^1.2.1", - "define-property": "^1.0.0", - "isobject": "^3.0.1", - "mixin-deep": "^1.2.0", - "pascalcase": "^0.1.1" + "cache-base": "1.0.1", + "class-utils": "0.3.6", + "component-emitter": "1.2.1", + "define-property": "1.0.0", + "isobject": "3.0.1", + "mixin-deep": "1.3.2", + "pascalcase": "0.1.1" }, "dependencies": { "define-property": { @@ -597,7 +769,7 @@ "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "is-descriptor": "^1.0.0" + "is-descriptor": "1.0.2" } }, "is-accessor-descriptor": { @@ -606,7 +778,7 @@ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "kind-of": "6.0.2" } }, "is-data-descriptor": { @@ -615,7 +787,7 @@ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "kind-of": "6.0.2" } }, "is-descriptor": { @@ -624,9 +796,9 @@ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" } } } @@ -637,7 +809,7 @@ "integrity": "sha1-Y7xdy2EzG5K8Bf1SiVPDNGKgb40=", "optional": true, "requires": { - "tweetnacl": "^0.14.3" + "tweetnacl": "0.14.5" } }, "binary-extensions": { @@ -655,9 +827,8 @@ "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, "requires": { - "balanced-match": "^1.0.0", + "balanced-match": "1.0.0", "concat-map": "0.0.1" } }, @@ -667,16 +838,16 @@ "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", "dev": true, "requires": { - "arr-flatten": "^1.1.0", - "array-unique": "^0.3.2", - "extend-shallow": "^2.0.1", - "fill-range": "^4.0.0", - "isobject": "^3.0.1", - "repeat-element": "^1.1.2", - "snapdragon": "^0.8.1", - "snapdragon-node": "^2.0.1", - "split-string": "^3.0.2", - "to-regex": "^3.0.1" + "arr-flatten": "1.1.0", + "array-unique": "0.3.2", + "extend-shallow": "2.0.1", + "fill-range": "4.0.0", + "isobject": "3.0.1", + "repeat-element": "1.1.3", + "snapdragon": "0.8.2", + "snapdragon-node": "2.1.1", + "split-string": "3.1.0", + "to-regex": "3.0.2" }, "dependencies": { "extend-shallow": { @@ -685,7 +856,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "is-extendable": "0.1.1" } } } @@ -720,15 +891,15 @@ "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", "dev": true, "requires": { - "collection-visit": "^1.0.0", - "component-emitter": "^1.2.1", - "get-value": "^2.0.6", - "has-value": "^1.0.0", - "isobject": "^3.0.1", - "set-value": "^2.0.0", - "to-object-path": "^0.3.0", - "union-value": "^1.0.0", - "unset-value": "^1.0.0" + "collection-visit": "1.0.0", + "component-emitter": "1.2.1", + "get-value": "2.0.6", + "has-value": "1.0.0", + "isobject": "3.0.1", + "set-value": "2.0.1", + "to-object-path": "0.3.0", + "union-value": "1.0.1", + "unset-value": "1.0.0" } }, "caching-transform": { @@ -737,10 +908,10 @@ "integrity": "sha512-Mtgcv3lh3U0zRii/6qVgQODdPA4G3zhG+jtbCWj39RXuUFTMzH0vcdMtaJS1jPowd+It2Pqr6y3NJMQqOqCE2w==", "dev": true, "requires": { - "hasha": "^3.0.0", - "make-dir": "^2.0.0", - "package-hash": "^3.0.0", - "write-file-atomic": "^2.4.2" + "hasha": "3.0.0", + "make-dir": "2.1.0", + "package-hash": "3.0.0", + "write-file-atomic": "2.4.3" } }, "camelcase": { @@ -760,25 +931,24 @@ "integrity": "sha1-D2RYS6ZC8PKs4oBiefTwbKI61zw=", "dev": true, "requires": { - "assertion-error": "^1.0.1", - "check-error": "^1.0.1", - "deep-eql": "^3.0.0", - "get-func-name": "^2.0.0", - "pathval": "^1.0.0", - "type-detect": "^4.0.0" + "assertion-error": "1.1.0", + "check-error": "1.0.2", + "deep-eql": "3.0.1", + "get-func-name": "2.0.0", + "pathval": "1.1.0", + "type-detect": "4.0.8" } }, "chalk": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" + "ansi-styles": "2.2.1", + "escape-string-regexp": "1.0.5", + "has-ansi": "2.0.0", + "strip-ansi": "3.0.1", + "supports-color": "2.0.0" } }, "check-error": { @@ -793,18 +963,18 @@ "integrity": "sha512-V2jUo67OKkc6ySiRpJrjlpJKl9kDuG+Xb8VgsGzb+aEouhgS1D0weyPU4lEzdAcsCAvrih2J2BqyXqHWvVLw5g==", "dev": true, "requires": { - "anymatch": "^2.0.0", - "async-each": "^1.0.1", - "braces": "^2.3.2", - "fsevents": "^1.2.7", - "glob-parent": "^3.1.0", - "inherits": "^2.0.3", - "is-binary-path": "^1.0.0", - "is-glob": "^4.0.0", - "normalize-path": "^3.0.0", - "path-is-absolute": "^1.0.0", - "readdirp": "^2.2.1", - "upath": "^1.1.1" + "anymatch": "2.0.0", + "async-each": "1.0.3", + "braces": "2.3.2", + "fsevents": "1.2.9", + "glob-parent": "3.1.0", + "inherits": "2.0.3", + "is-binary-path": "1.0.1", + "is-glob": "4.0.1", + "normalize-path": "3.0.0", + "path-is-absolute": "1.0.1", + "readdirp": "2.2.1", + "upath": "1.1.2" }, "dependencies": { "normalize-path": { @@ -821,10 +991,10 @@ "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", "dev": true, "requires": { - "arr-union": "^3.1.0", - "define-property": "^0.2.5", - "isobject": "^3.0.0", - "static-extend": "^0.1.1" + "arr-union": "3.1.0", + "define-property": "0.2.5", + "isobject": "3.0.1", + "static-extend": "0.1.2" }, "dependencies": { "define-property": { @@ -833,7 +1003,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "^0.1.0" + "is-descriptor": "0.1.6" } } } @@ -844,9 +1014,9 @@ "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", "dev": true, "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wrap-ansi": "2.1.0" } }, "clone": { @@ -873,9 +1043,9 @@ "integrity": "sha512-Bq6+4t+lbM8vhTs/Bef5c5AdEMtapp/iFb6+s4/Hh9MVTt8OLKH7ZOOZSCT+Ys7hsHvqv0GuMPJ1lnQJVHvxpg==", "dev": true, "requires": { - "inherits": "^2.0.1", - "process-nextick-args": "^2.0.0", - "readable-stream": "^2.3.5" + "inherits": "2.0.3", + "process-nextick-args": "2.0.0", + "readable-stream": "2.3.6" } }, "code-point-at": { @@ -890,9 +1060,9 @@ "integrity": "sha1-rqDwb40mx4DCt1SUOFVEsiVa8Yw=", "dev": true, "requires": { - "arr-map": "^2.0.2", - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" + "arr-map": "2.0.2", + "for-own": "1.0.0", + "make-iterator": "1.0.1" } }, "collection-visit": { @@ -901,8 +1071,8 @@ "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", "dev": true, "requires": { - "map-visit": "^1.0.0", - "object-visit": "^1.0.0" + "map-visit": "1.0.0", + "object-visit": "1.0.1" } }, "color-convert": { @@ -911,7 +1081,7 @@ "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", "dev": true, "requires": { - "color-name": "^1.1.1" + "color-name": "1.1.3" } }, "color-name": { @@ -931,7 +1101,7 @@ "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.6.tgz", "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", "requires": { - "delayed-stream": "~1.0.0" + "delayed-stream": "1.0.0" } }, "commander": { @@ -955,8 +1125,7 @@ "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=" }, "concat-stream": { "version": "1.6.2", @@ -964,19 +1133,18 @@ "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "requires": { - "buffer-from": "^1.0.0", - "inherits": "^2.0.3", - "readable-stream": "^2.2.2", - "typedarray": "^0.0.6" + "buffer-from": "1.1.1", + "inherits": "2.0.3", + "readable-stream": "2.3.6", + "typedarray": "0.0.6" } }, "convert-source-map": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.6.0.tgz", "integrity": "sha512-eFu7XigvxdZ1ETfbgPBohgyQ/Z++C0eEhTor0qRwBw9unw+L0/6V8wkSuGgzdThkiS5lSpdptOQPD8Ak40a+7A==", - "dev": true, "requires": { - "safe-buffer": "~5.1.1" + "safe-buffer": "5.1.1" } }, "copy-descriptor": { @@ -991,10 +1159,15 @@ "integrity": "sha512-7cjuUME+p+S3HZlbllgsn2CDwS+5eCCX16qBgNC4jgSTf49qR1VKy/Zhl400m0IQXl/bPGEVqncgUUMjrr4s8A==", "dev": true, "requires": { - "each-props": "^1.3.0", - "is-plain-object": "^2.0.1" + "each-props": "1.3.2", + "is-plain-object": "2.0.4" } }, + "core-js": { + "version": "2.6.10", + "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.10.tgz", + "integrity": "sha512-I39t74+4t+zau64EN1fE5v2W31Adtc/REhzWN+gWRRXg6WH5qAsZm62DHpQ1+Yhe4047T55jvzz7MUqF/dBBlA==" + }, "core-util-is": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", @@ -1006,12 +1179,12 @@ "integrity": "sha512-Pgh4v3gCI4T/9VijVrm8Ym5v0OgjvGLKj3zTUwkvsCiwqae/p6VLzpsFNjQS2i6ewV7ef+DjFJ5TSKxYt/mCrA==", "dev": true, "requires": { - "growl": "~> 1.10.0", - "js-yaml": "^3.13.1", - "lcov-parse": "^0.0.10", - "log-driver": "^1.2.7", - "minimist": "^1.2.0", - "request": "^2.86.0" + "growl": "1.10.3", + "js-yaml": "3.13.1", + "lcov-parse": "0.0.10", + "log-driver": "1.2.7", + "minimist": "1.2.0", + "request": "2.88.0" }, "dependencies": { "ajv": { @@ -1020,10 +1193,10 @@ "integrity": "sha512-TXtUUEYHuaTEbLZWIKUr5pmBuhDLy+8KYtPYdcV8qC+pOZL+NKqYwvWSRrVXHn+ZmRRAu8vJTAznH7Oag6RVRw==", "dev": true, "requires": { - "fast-deep-equal": "^2.0.1", - "fast-json-stable-stringify": "^2.0.0", - "json-schema-traverse": "^0.4.1", - "uri-js": "^4.2.2" + "fast-deep-equal": "2.0.1", + "fast-json-stable-stringify": "2.0.0", + "json-schema-traverse": "0.4.1", + "uri-js": "4.2.2" } }, "aws4": { @@ -1044,8 +1217,8 @@ "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", "dev": true, "requires": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" + "ajv": "6.10.2", + "har-schema": "2.0.0" } }, "json-schema-traverse": { @@ -1087,26 +1260,26 @@ "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", "dev": true, "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" + "aws-sign2": "0.7.0", + "aws4": "1.8.0", + "caseless": "0.12.0", + "combined-stream": "1.0.6", + "extend": "3.0.2", + "forever-agent": "0.6.1", + "form-data": "2.3.2", + "har-validator": "5.1.3", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.24", + "oauth-sign": "0.9.0", + "performance-now": "2.1.0", + "qs": "6.5.2", + "safe-buffer": "5.2.0", + "tough-cookie": "2.4.3", + "tunnel-agent": "0.6.0", + "uuid": "3.3.3" } }, "safe-buffer": { @@ -1121,8 +1294,8 @@ "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", "dev": true, "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" + "psl": "1.4.0", + "punycode": "1.4.1" } }, "uuid": { @@ -1139,11 +1312,11 @@ "integrity": "sha512-fmvV4caBnofhPe8kOcitBwSn2f39QLjnAnGq3gO9dfd75mUytzKNZB1hde6QHunW2Rt+OwuBOMc3i1tNElbszA==", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "make-dir": "^2.0.0", - "nested-error-stacks": "^2.0.0", - "pify": "^4.0.1", - "safe-buffer": "^5.0.1" + "graceful-fs": "4.1.15", + "make-dir": "2.1.0", + "nested-error-stacks": "2.1.0", + "pify": "4.0.1", + "safe-buffer": "5.1.1" }, "dependencies": { "pify": { @@ -1160,8 +1333,8 @@ "integrity": "sha1-e5JHYhwjrf3ThWAEqCPL45dCTUE=", "dev": true, "requires": { - "lru-cache": "^4.0.1", - "which": "^1.2.9" + "lru-cache": "4.1.5", + "which": "1.3.1" } }, "crypto-js": { @@ -1175,7 +1348,7 @@ "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { - "es5-ext": "^0.10.9" + "es5-ext": "0.10.50" } }, "dashdash": { @@ -1183,7 +1356,7 @@ "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "requires": { - "assert-plus": "^1.0.0" + "assert-plus": "1.0.0" } }, "debug": { @@ -1192,7 +1365,7 @@ "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, "requires": { - "ms": "^2.1.1" + "ms": "2.1.2" }, "dependencies": { "ms": { @@ -1221,7 +1394,7 @@ "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", "dev": true, "requires": { - "type-detect": "^4.0.0" + "type-detect": "4.0.8" } }, "default-compare": { @@ -1230,7 +1403,7 @@ "integrity": "sha512-QWfXlM0EkAbqOCbD/6HjdwT19j7WCkMyiRhWilc4H9/5h/RzTF9gv5LYh1+CmDV5d1rki6KAWLtQale0xt20eQ==", "dev": true, "requires": { - "kind-of": "^5.0.2" + "kind-of": "5.1.0" }, "dependencies": { "kind-of": { @@ -1247,7 +1420,7 @@ "integrity": "sha1-9fj7sYp9bVCyH2QfZJ67Uiz+JPc=", "dev": true, "requires": { - "strip-bom": "^3.0.0" + "strip-bom": "3.0.0" }, "dependencies": { "strip-bom": { @@ -1270,7 +1443,7 @@ "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", "dev": true, "requires": { - "object-keys": "^1.0.12" + "object-keys": "1.1.1" } }, "define-property": { @@ -1279,8 +1452,8 @@ "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", "dev": true, "requires": { - "is-descriptor": "^1.0.2", - "isobject": "^3.0.1" + "is-descriptor": "1.0.2", + "isobject": "3.0.1" }, "dependencies": { "is-accessor-descriptor": { @@ -1289,7 +1462,7 @@ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "kind-of": "6.0.2" } }, "is-data-descriptor": { @@ -1298,7 +1471,7 @@ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "kind-of": "6.0.2" } }, "is-descriptor": { @@ -1307,9 +1480,9 @@ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" } } } @@ -1325,6 +1498,14 @@ "integrity": "sha1-8NZtA2cqglyxtzvbP+YjEMjlUrc=", "dev": true }, + "detect-indent": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/detect-indent/-/detect-indent-4.0.0.tgz", + "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", + "requires": { + "repeating": "2.0.1" + } + }, "diff": { "version": "3.3.1", "resolved": "https://registry.npmjs.org/diff/-/diff-3.3.1.tgz", @@ -1337,10 +1518,10 @@ "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", "dev": true, "requires": { - "end-of-stream": "^1.0.0", - "inherits": "^2.0.1", - "readable-stream": "^2.0.0", - "stream-shift": "^1.0.0" + "end-of-stream": "1.4.1", + "inherits": "2.0.3", + "readable-stream": "2.3.6", + "stream-shift": "1.0.0" } }, "each-props": { @@ -1349,8 +1530,8 @@ "integrity": "sha512-vV0Hem3zAGkJAyU7JSjixeU66rwdynTAa1vofCrSA5fEln+m67Az9CcnkVD776/fsN/UjIWmBDoNRS6t6G9RfA==", "dev": true, "requires": { - "is-plain-object": "^2.0.1", - "object.defaults": "^1.1.0" + "is-plain-object": "2.0.4", + "object.defaults": "1.1.0" } }, "ecc-jsbn": { @@ -1359,7 +1540,7 @@ "integrity": "sha1-D8c6ntXw1Tw4GTOYUj735UN3dQU=", "optional": true, "requires": { - "jsbn": "~0.1.0" + "jsbn": "0.1.1" } }, "emoji-regex": { @@ -1374,7 +1555,7 @@ "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", "dev": true, "requires": { - "once": "^1.4.0" + "once": "1.4.0" } }, "error-ex": { @@ -1383,7 +1564,7 @@ "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", "dev": true, "requires": { - "is-arrayish": "^0.2.1" + "is-arrayish": "0.2.1" } }, "es5-ext": { @@ -1392,9 +1573,9 @@ "integrity": "sha512-KMzZTPBkeQV/JcSQhI5/z6d9VWJ3EnQ194USTUwIYZ2ZbpN8+SGXQKt1h68EX44+qt+Fzr8DO17vnxrw7c3agw==", "dev": true, "requires": { - "es6-iterator": "~2.0.3", - "es6-symbol": "~3.1.1", - "next-tick": "^1.0.0" + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1", + "next-tick": "1.0.0" } }, "es6-error": { @@ -1409,9 +1590,9 @@ "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", "dev": true, "requires": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" + "d": "1.0.0", + "es5-ext": "0.10.50", + "es6-symbol": "3.1.1" } }, "es6-symbol": { @@ -1420,8 +1601,8 @@ "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", "dev": true, "requires": { - "d": "1", - "es5-ext": "~0.10.14" + "d": "1.0.0", + "es5-ext": "0.10.50" } }, "es6-weak-map": { @@ -1430,17 +1611,16 @@ "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", "dev": true, "requires": { - "d": "1", - "es5-ext": "^0.10.14", - "es6-iterator": "^2.0.1", - "es6-symbol": "^3.1.1" + "d": "1.0.0", + "es5-ext": "0.10.50", + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1" } }, "escape-string-regexp": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true + "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=" }, "esprima": { "version": "4.0.1", @@ -1451,8 +1631,7 @@ "esutils": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz", - "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=", - "dev": true + "integrity": "sha1-Cr9PHKpbyx96nYrMbepPqqBLrJs=" }, "expand-brackets": { "version": "2.1.4", @@ -1460,13 +1639,13 @@ "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", "dev": true, "requires": { - "debug": "^2.3.3", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "posix-character-classes": "^0.1.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "posix-character-classes": "0.1.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" }, "dependencies": { "debug": { @@ -1484,7 +1663,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "^0.1.0" + "is-descriptor": "0.1.6" } }, "extend-shallow": { @@ -1493,7 +1672,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "is-extendable": "0.1.1" } } } @@ -1504,7 +1683,7 @@ "integrity": "sha1-l+gBqgUt8CRU3kawK/YhZCzchQI=", "dev": true, "requires": { - "homedir-polyfill": "^1.0.1" + "homedir-polyfill": "1.0.3" } }, "extend": { @@ -1518,8 +1697,8 @@ "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", "dev": true, "requires": { - "assign-symbols": "^1.0.0", - "is-extendable": "^1.0.1" + "assign-symbols": "1.0.0", + "is-extendable": "1.0.1" }, "dependencies": { "is-extendable": { @@ -1528,7 +1707,7 @@ "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, "requires": { - "is-plain-object": "^2.0.4" + "is-plain-object": "2.0.4" } } } @@ -1539,14 +1718,14 @@ "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", "dev": true, "requires": { - "array-unique": "^0.3.2", - "define-property": "^1.0.0", - "expand-brackets": "^2.1.4", - "extend-shallow": "^2.0.1", - "fragment-cache": "^0.2.1", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" + "array-unique": "0.3.2", + "define-property": "1.0.0", + "expand-brackets": "2.1.4", + "extend-shallow": "2.0.1", + "fragment-cache": "0.2.1", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" }, "dependencies": { "define-property": { @@ -1555,7 +1734,7 @@ "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "is-descriptor": "^1.0.0" + "is-descriptor": "1.0.2" } }, "extend-shallow": { @@ -1564,7 +1743,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "is-extendable": "0.1.1" } }, "is-accessor-descriptor": { @@ -1573,7 +1752,7 @@ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "kind-of": "6.0.2" } }, "is-data-descriptor": { @@ -1582,7 +1761,7 @@ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "kind-of": "6.0.2" } }, "is-descriptor": { @@ -1591,9 +1770,9 @@ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" } } } @@ -1609,10 +1788,10 @@ "integrity": "sha512-k9oEhlyc0FrVh25qYuSELjr8oxsCoc4/LEZfg2iJJrfEk/tZL9bCoJE47gqAvI2m/AUjluCS4+3I0eTx8n3AEw==", "dev": true, "requires": { - "ansi-gray": "^0.1.1", - "color-support": "^1.1.3", - "parse-node-version": "^1.0.0", - "time-stamp": "^1.0.0" + "ansi-gray": "0.1.1", + "color-support": "1.1.3", + "parse-node-version": "1.0.1", + "time-stamp": "1.1.0" } }, "fast-deep-equal": { @@ -1631,10 +1810,10 @@ "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", "dev": true, "requires": { - "extend-shallow": "^2.0.1", - "is-number": "^3.0.0", - "repeat-string": "^1.6.1", - "to-regex-range": "^2.1.0" + "extend-shallow": "2.0.1", + "is-number": "3.0.0", + "repeat-string": "1.6.1", + "to-regex-range": "2.1.1" }, "dependencies": { "extend-shallow": { @@ -1643,7 +1822,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "is-extendable": "0.1.1" } } } @@ -1654,9 +1833,9 @@ "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", "dev": true, "requires": { - "commondir": "^1.0.1", - "make-dir": "^2.0.0", - "pkg-dir": "^3.0.0" + "commondir": "1.0.1", + "make-dir": "2.1.0", + "pkg-dir": "3.0.0" } }, "find-up": { @@ -1665,8 +1844,8 @@ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" + "path-exists": "2.1.0", + "pinkie-promise": "2.0.1" } }, "findup-sync": { @@ -1675,10 +1854,10 @@ "integrity": "sha512-YbffarhcicEhOrm4CtrwdKBdCuz576RLdhJDsIfvNtxUuhdRet1qZcsMjqbePtAseKdAnDyM/IyXbu7PRPRLYg==", "dev": true, "requires": { - "detect-file": "^1.0.0", - "is-glob": "^4.0.0", - "micromatch": "^3.0.4", - "resolve-dir": "^1.0.1" + "detect-file": "1.0.0", + "is-glob": "4.0.1", + "micromatch": "3.1.10", + "resolve-dir": "1.0.1" } }, "fined": { @@ -1687,11 +1866,11 @@ "integrity": "sha512-ZYDqPLGxDkDhDZBjZBb+oD1+j0rA4E0pXY50eplAAOPg2N/gUBSSk5IM1/QhPfyVo19lJ+CvXpqfvk+b2p/8Ng==", "dev": true, "requires": { - "expand-tilde": "^2.0.2", - "is-plain-object": "^2.0.3", - "object.defaults": "^1.1.0", - "object.pick": "^1.2.0", - "parse-filepath": "^1.0.1" + "expand-tilde": "2.0.2", + "is-plain-object": "2.0.4", + "object.defaults": "1.1.0", + "object.pick": "1.3.0", + "parse-filepath": "1.0.2" } }, "flagged-respawn": { @@ -1706,8 +1885,8 @@ "integrity": "sha512-3Z4XhFZ3992uIq0XOqb9AreonueSYphE6oYbpt5+3u06JWklbsPkNv3ZKkP9Bz/r+1MWCaMoSQ28P85+1Yc77w==", "dev": true, "requires": { - "inherits": "^2.0.3", - "readable-stream": "^2.3.6" + "inherits": "2.0.3", + "readable-stream": "2.3.6" } }, "for-in": { @@ -1722,7 +1901,7 @@ "integrity": "sha1-xjMy9BXO3EsE2/5wz4NklMU8tEs=", "dev": true, "requires": { - "for-in": "^1.0.1" + "for-in": "1.0.2" } }, "foreground-child": { @@ -1731,8 +1910,8 @@ "integrity": "sha1-T9ca0t/elnibmApcCilZN8svXOk=", "dev": true, "requires": { - "cross-spawn": "^4", - "signal-exit": "^3.0.0" + "cross-spawn": "4.0.2", + "signal-exit": "3.0.2" } }, "forever-agent": { @@ -1745,9 +1924,9 @@ "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.2.tgz", "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", "requires": { - "asynckit": "^0.4.0", + "asynckit": "0.4.0", "combined-stream": "1.0.6", - "mime-types": "^2.1.12" + "mime-types": "2.1.18" } }, "fragment-cache": { @@ -1756,7 +1935,7 @@ "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", "dev": true, "requires": { - "map-cache": "^0.2.2" + "map-cache": "0.2.2" } }, "fs-mkdirp-stream": { @@ -1765,8 +1944,8 @@ "integrity": "sha1-C3gV/DIBxqaeFNuYzgmMFpNSWes=", "dev": true, "requires": { - "graceful-fs": "^4.1.11", - "through2": "^2.0.3" + "graceful-fs": "4.1.15", + "through2": "2.0.5" } }, "fs.realpath": { @@ -1782,8 +1961,8 @@ "dev": true, "optional": true, "requires": { - "nan": "^2.12.1", - "node-pre-gyp": "^0.12.0" + "nan": "2.13.2", + "node-pre-gyp": "0.12.0" }, "dependencies": { "abbrev": { @@ -1795,8 +1974,7 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "aproba": { "version": "1.2.0", @@ -1810,23 +1988,21 @@ "dev": true, "optional": true, "requires": { - "delegates": "^1.0.0", - "readable-stream": "^2.0.6" + "delegates": "1.0.0", + "readable-stream": "2.3.6" } }, "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, - "optional": true, "requires": { - "balanced-match": "^1.0.0", + "balanced-match": "1.0.0", "concat-map": "0.0.1" } }, @@ -1839,20 +2015,17 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "core-util-is": { "version": "1.0.2", @@ -1866,7 +2039,7 @@ "dev": true, "optional": true, "requires": { - "ms": "^2.1.1" + "ms": "2.1.1" } }, "deep-extend": { @@ -1893,7 +2066,7 @@ "dev": true, "optional": true, "requires": { - "minipass": "^2.2.1" + "minipass": "2.3.5" } }, "fs.realpath": { @@ -1908,14 +2081,14 @@ "dev": true, "optional": true, "requires": { - "aproba": "^1.0.3", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.0", - "object-assign": "^4.1.0", - "signal-exit": "^3.0.0", - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wide-align": "^1.1.0" + "aproba": "1.2.0", + "console-control-strings": "1.1.0", + "has-unicode": "2.0.1", + "object-assign": "4.1.1", + "signal-exit": "3.0.2", + "string-width": "1.0.2", + "strip-ansi": "3.0.1", + "wide-align": "1.1.3" } }, "glob": { @@ -1924,12 +2097,12 @@ "dev": true, "optional": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, "has-unicode": { @@ -1944,7 +2117,7 @@ "dev": true, "optional": true, "requires": { - "safer-buffer": ">= 2.1.2 < 3" + "safer-buffer": "2.1.2" } }, "ignore-walk": { @@ -1953,7 +2126,7 @@ "dev": true, "optional": true, "requires": { - "minimatch": "^3.0.4" + "minimatch": "3.0.4" } }, "inflight": { @@ -1962,15 +2135,14 @@ "dev": true, "optional": true, "requires": { - "once": "^1.3.0", - "wrappy": "1" + "once": "1.4.0", + "wrappy": "1.0.2" } }, "inherits": { "version": "2.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "ini": { "version": "1.3.5", @@ -1982,9 +2154,8 @@ "version": "1.0.0", "bundled": true, "dev": true, - "optional": true, "requires": { - "number-is-nan": "^1.0.0" + "number-is-nan": "1.0.1" } }, "isarray": { @@ -1997,25 +2168,22 @@ "version": "3.0.4", "bundled": true, "dev": true, - "optional": true, "requires": { - "brace-expansion": "^1.1.7" + "brace-expansion": "1.1.11" } }, "minimist": { "version": "0.0.8", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, - "optional": true, "requires": { - "safe-buffer": "^5.1.2", - "yallist": "^3.0.0" + "safe-buffer": "5.1.2", + "yallist": "3.0.3" } }, "minizlib": { @@ -2024,14 +2192,13 @@ "dev": true, "optional": true, "requires": { - "minipass": "^2.2.1" + "minipass": "2.3.5" } }, "mkdirp": { "version": "0.5.1", "bundled": true, "dev": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -2055,9 +2222,9 @@ "dev": true, "optional": true, "requires": { - "debug": "^4.1.0", - "iconv-lite": "^0.4.4", - "sax": "^1.2.4" + "debug": "4.1.1", + "iconv-lite": "0.4.24", + "sax": "1.2.4" } }, "node-pre-gyp": { @@ -2066,16 +2233,16 @@ "dev": true, "optional": true, "requires": { - "detect-libc": "^1.0.2", - "mkdirp": "^0.5.1", - "needle": "^2.2.1", - "nopt": "^4.0.1", - "npm-packlist": "^1.1.6", - "npmlog": "^4.0.2", - "rc": "^1.2.7", - "rimraf": "^2.6.1", - "semver": "^5.3.0", - "tar": "^4" + "detect-libc": "1.0.3", + "mkdirp": "0.5.1", + "needle": "2.3.0", + "nopt": "4.0.1", + "npm-packlist": "1.4.1", + "npmlog": "4.1.2", + "rc": "1.2.8", + "rimraf": "2.6.3", + "semver": "5.7.0", + "tar": "4.4.8" } }, "nopt": { @@ -2084,8 +2251,8 @@ "dev": true, "optional": true, "requires": { - "abbrev": "1", - "osenv": "^0.1.4" + "abbrev": "1.1.1", + "osenv": "0.1.5" } }, "npm-bundled": { @@ -2100,8 +2267,8 @@ "dev": true, "optional": true, "requires": { - "ignore-walk": "^3.0.1", - "npm-bundled": "^1.0.1" + "ignore-walk": "3.0.1", + "npm-bundled": "1.0.6" } }, "npmlog": { @@ -2110,17 +2277,16 @@ "dev": true, "optional": true, "requires": { - "are-we-there-yet": "~1.1.2", - "console-control-strings": "~1.1.0", - "gauge": "~2.7.3", - "set-blocking": "~2.0.0" + "are-we-there-yet": "1.1.5", + "console-control-strings": "1.1.0", + "gauge": "2.7.4", + "set-blocking": "2.0.0" } }, "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "object-assign": { "version": "4.1.1", @@ -2132,9 +2298,8 @@ "version": "1.4.0", "bundled": true, "dev": true, - "optional": true, "requires": { - "wrappy": "1" + "wrappy": "1.0.2" } }, "os-homedir": { @@ -2155,8 +2320,8 @@ "dev": true, "optional": true, "requires": { - "os-homedir": "^1.0.0", - "os-tmpdir": "^1.0.0" + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" } }, "path-is-absolute": { @@ -2177,10 +2342,10 @@ "dev": true, "optional": true, "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" + "deep-extend": "0.6.0", + "ini": "1.3.5", + "minimist": "1.2.0", + "strip-json-comments": "2.0.1" }, "dependencies": { "minimist": { @@ -2197,13 +2362,13 @@ "dev": true, "optional": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.2", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" } }, "rimraf": { @@ -2212,14 +2377,13 @@ "dev": true, "optional": true, "requires": { - "glob": "^7.1.3" + "glob": "7.1.3" } }, "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "safer-buffer": { "version": "2.1.2", @@ -2255,11 +2419,10 @@ "version": "1.0.2", "bundled": true, "dev": true, - "optional": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" } }, "string_decoder": { @@ -2268,16 +2431,15 @@ "dev": true, "optional": true, "requires": { - "safe-buffer": "~5.1.0" + "safe-buffer": "5.1.2" } }, "strip-ansi": { "version": "3.0.1", "bundled": true, "dev": true, - "optional": true, "requires": { - "ansi-regex": "^2.0.0" + "ansi-regex": "2.1.1" } }, "strip-json-comments": { @@ -2292,13 +2454,13 @@ "dev": true, "optional": true, "requires": { - "chownr": "^1.1.1", - "fs-minipass": "^1.2.5", - "minipass": "^2.3.4", - "minizlib": "^1.1.1", - "mkdirp": "^0.5.0", - "safe-buffer": "^5.1.2", - "yallist": "^3.0.2" + "chownr": "1.1.1", + "fs-minipass": "1.2.5", + "minipass": "2.3.5", + "minizlib": "1.2.1", + "mkdirp": "0.5.1", + "safe-buffer": "5.1.2", + "yallist": "3.0.3" } }, "util-deprecate": { @@ -2313,20 +2475,18 @@ "dev": true, "optional": true, "requires": { - "string-width": "^1.0.2 || 2" + "string-width": "1.0.2" } }, "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true, - "optional": true + "dev": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true, - "optional": true + "dev": true } } }, @@ -2359,7 +2519,7 @@ "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "requires": { - "assert-plus": "^1.0.0" + "assert-plus": "1.0.0" } }, "glob": { @@ -2368,12 +2528,12 @@ "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, "glob-parent": { @@ -2382,8 +2542,8 @@ "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { - "is-glob": "^3.1.0", - "path-dirname": "^1.0.0" + "is-glob": "3.1.0", + "path-dirname": "1.0.2" }, "dependencies": { "is-glob": { @@ -2392,7 +2552,7 @@ "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "dev": true, "requires": { - "is-extglob": "^2.1.0" + "is-extglob": "2.1.1" } } } @@ -2403,16 +2563,16 @@ "integrity": "sha1-cEXJlBOz65SIjYOrRtC0BMx73eQ=", "dev": true, "requires": { - "extend": "^3.0.0", - "glob": "^7.1.1", - "glob-parent": "^3.1.0", - "is-negated-glob": "^1.0.0", - "ordered-read-streams": "^1.0.0", - "pumpify": "^1.3.5", - "readable-stream": "^2.1.5", - "remove-trailing-separator": "^1.0.1", - "to-absolute-glob": "^2.0.0", - "unique-stream": "^2.0.2" + "extend": "3.0.2", + "glob": "7.1.2", + "glob-parent": "3.1.0", + "is-negated-glob": "1.0.0", + "ordered-read-streams": "1.0.1", + "pumpify": "1.5.1", + "readable-stream": "2.3.6", + "remove-trailing-separator": "1.1.0", + "to-absolute-glob": "2.0.2", + "unique-stream": "2.3.1" } }, "glob-watcher": { @@ -2421,12 +2581,12 @@ "integrity": "sha512-8tWsULNEPHKQ2MR4zXuzSmqbdyV5PtwwCaWSGQ1WwHsJ07ilNeN1JB8ntxhckbnpSHaf9dXFUHzIWvm1I13dsg==", "dev": true, "requires": { - "anymatch": "^2.0.0", - "async-done": "^1.2.0", - "chokidar": "^2.0.0", - "is-negated-glob": "^1.0.0", - "just-debounce": "^1.0.0", - "object.defaults": "^1.1.0" + "anymatch": "2.0.0", + "async-done": "1.3.1", + "chokidar": "2.1.6", + "is-negated-glob": "1.0.0", + "just-debounce": "1.0.0", + "object.defaults": "1.1.0" } }, "global-modules": { @@ -2435,9 +2595,9 @@ "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", "dev": true, "requires": { - "global-prefix": "^1.0.1", - "is-windows": "^1.0.1", - "resolve-dir": "^1.0.0" + "global-prefix": "1.0.2", + "is-windows": "1.0.2", + "resolve-dir": "1.0.1" } }, "global-prefix": { @@ -2446,11 +2606,11 @@ "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=", "dev": true, "requires": { - "expand-tilde": "^2.0.2", - "homedir-polyfill": "^1.0.1", - "ini": "^1.3.4", - "is-windows": "^1.0.1", - "which": "^1.2.14" + "expand-tilde": "2.0.2", + "homedir-polyfill": "1.0.3", + "ini": "1.3.5", + "is-windows": "1.0.2", + "which": "1.3.1" } }, "globals": { @@ -2465,7 +2625,7 @@ "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", "dev": true, "requires": { - "sparkles": "^1.0.0" + "sparkles": "1.0.1" } }, "graceful-fs": { @@ -2486,10 +2646,10 @@ "integrity": "sha512-dvEs27SCZt2ibF29xYgmnwwCYZxdxhQ/+LFWlbAW8y7jt68L/65402Lz3+CKy0Ov4rOs+NERmDq7YlZaDqUIfA==", "dev": true, "requires": { - "glob-watcher": "^5.0.3", - "gulp-cli": "^2.2.0", - "undertaker": "^1.2.1", - "vinyl-fs": "^3.0.0" + "glob-watcher": "5.0.3", + "gulp-cli": "2.2.0", + "undertaker": "1.2.1", + "vinyl-fs": "3.0.3" }, "dependencies": { "gulp-cli": { @@ -2498,24 +2658,24 @@ "integrity": "sha512-rGs3bVYHdyJpLqR0TUBnlcZ1O5O++Zs4bA0ajm+zr3WFCfiSLjGwoCBqFs18wzN+ZxahT9DkOK5nDf26iDsWjA==", "dev": true, "requires": { - "ansi-colors": "^1.0.1", - "archy": "^1.0.0", - "array-sort": "^1.0.0", - "color-support": "^1.1.3", - "concat-stream": "^1.6.0", - "copy-props": "^2.0.1", - "fancy-log": "^1.3.2", - "gulplog": "^1.0.0", - "interpret": "^1.1.0", - "isobject": "^3.0.1", - "liftoff": "^3.1.0", - "matchdep": "^2.0.0", - "mute-stdout": "^1.0.0", - "pretty-hrtime": "^1.0.0", - "replace-homedir": "^1.0.0", - "semver-greatest-satisfied-range": "^1.1.0", - "v8flags": "^3.0.1", - "yargs": "^7.1.0" + "ansi-colors": "1.1.0", + "archy": "1.0.0", + "array-sort": "1.0.0", + "color-support": "1.1.3", + "concat-stream": "1.6.2", + "copy-props": "2.0.4", + "fancy-log": "1.3.3", + "gulplog": "1.0.0", + "interpret": "1.2.0", + "isobject": "3.0.1", + "liftoff": "3.1.0", + "matchdep": "2.0.0", + "mute-stdout": "1.0.1", + "pretty-hrtime": "1.0.3", + "replace-homedir": "1.0.0", + "semver-greatest-satisfied-range": "1.1.0", + "v8flags": "3.1.3", + "yargs": "7.1.0" } } } @@ -2526,12 +2686,12 @@ "integrity": "sha512-YuMMlylyJtUSHG1/wuSVTrZp60k1dMEFKYOvDf7OvbAJWrDtxxD4oZon4ancdWwzjj30ztiidhe4VXJniF0pIQ==", "dev": true, "requires": { - "ansi-colors": "^3.0.5", - "plugin-error": "^1.0.1", - "source-map": "^0.7.3", - "through2": "^3.0.0", - "vinyl": "^2.1.0", - "vinyl-fs": "^3.0.3" + "ansi-colors": "3.2.4", + "plugin-error": "1.0.1", + "source-map": "0.7.3", + "through2": "3.0.1", + "vinyl": "2.2.0", + "vinyl-fs": "3.0.3" }, "dependencies": { "ansi-colors": { @@ -2552,7 +2712,7 @@ "integrity": "sha512-M96dvTalPT3YbYLaKaCuwu+j06D/8Jfib0o/PxbVt6Amhv3dUAtW6rTV1jPgJSBG83I/e04Y6xkVdVhSRhi0ww==", "dev": true, "requires": { - "readable-stream": "2 || 3" + "readable-stream": "2.3.6" } } } @@ -2563,7 +2723,7 @@ "integrity": "sha1-4oxNRdBey77YGDY86PnFkmIp/+U=", "dev": true, "requires": { - "glogg": "^1.0.0" + "glogg": "1.0.2" } }, "handlebars": { @@ -2572,10 +2732,10 @@ "integrity": "sha512-VupOxR91xcGojfINrzMqrvlyYbBs39sXIrWa7YdaQWeBudOlvKEGvCczMfJPgnuwHE/zyH1M6J+IUP6cgDVyxg==", "dev": true, "requires": { - "neo-async": "^2.6.0", - "optimist": "^0.6.1", - "source-map": "^0.6.1", - "uglify-js": "^3.1.4" + "neo-async": "2.6.1", + "optimist": "0.6.1", + "source-map": "0.6.1", + "uglify-js": "3.6.0" }, "dependencies": { "source-map": { @@ -2596,17 +2756,16 @@ "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", "requires": { - "ajv": "^6.5.5", - "har-schema": "^2.0.0" + "ajv": "6.10.2", + "har-schema": "2.0.0" } }, "has-ansi": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", - "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "ansi-regex": "2.1.1" } }, "has-flag": { @@ -2627,9 +2786,9 @@ "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", "dev": true, "requires": { - "get-value": "^2.0.6", - "has-values": "^1.0.0", - "isobject": "^3.0.0" + "get-value": "2.0.6", + "has-values": "1.0.0", + "isobject": "3.0.1" } }, "has-values": { @@ -2638,8 +2797,8 @@ "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", "dev": true, "requires": { - "is-number": "^3.0.0", - "kind-of": "^4.0.0" + "is-number": "3.0.0", + "kind-of": "4.0.0" }, "dependencies": { "kind-of": { @@ -2648,7 +2807,7 @@ "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "is-buffer": "1.1.6" } } } @@ -2658,8 +2817,8 @@ "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.0.4.tgz", "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", "requires": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "inherits": "2.0.3", + "safe-buffer": "5.1.1" } }, "hasha": { @@ -2668,7 +2827,7 @@ "integrity": "sha1-UqMvq4Vp1BymmmH/GiFPjrfIvTk=", "dev": true, "requires": { - "is-stream": "^1.0.1" + "is-stream": "1.1.0" } }, "he": { @@ -2677,13 +2836,22 @@ "integrity": "sha1-k0EP0hsAlzUVH4howvJx80J+I/0=", "dev": true }, + "home-or-tmp": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/home-or-tmp/-/home-or-tmp-2.0.0.tgz", + "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", + "requires": { + "os-homedir": "1.0.2", + "os-tmpdir": "1.0.2" + } + }, "homedir-polyfill": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", "dev": true, "requires": { - "parse-passwd": "^1.0.0" + "parse-passwd": "1.0.0" } }, "hosted-git-info": { @@ -2697,9 +2865,9 @@ "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "requires": { - "assert-plus": "^1.0.0", - "jsprim": "^1.2.2", - "sshpk": "^1.7.0" + "assert-plus": "1.0.0", + "jsprim": "1.4.1", + "sshpk": "1.14.1" } }, "imurmurhash": { @@ -2714,8 +2882,8 @@ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { - "once": "^1.3.0", - "wrappy": "1" + "once": "1.4.0", + "wrappy": "1.0.2" } }, "inherits": { @@ -2735,6 +2903,14 @@ "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", "dev": true }, + "invariant": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", + "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", + "requires": { + "loose-envify": "1.4.0" + } + }, "invert-kv": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", @@ -2747,8 +2923,8 @@ "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", "dev": true, "requires": { - "is-relative": "^1.0.0", - "is-windows": "^1.0.1" + "is-relative": "1.0.0", + "is-windows": "1.0.2" } }, "is-accessor-descriptor": { @@ -2757,7 +2933,7 @@ "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "dev": true, "requires": { - "kind-of": "^3.0.2" + "kind-of": "3.2.2" }, "dependencies": { "kind-of": { @@ -2766,7 +2942,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "is-buffer": "1.1.6" } } } @@ -2783,7 +2959,7 @@ "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", "dev": true, "requires": { - "binary-extensions": "^1.0.0" + "binary-extensions": "1.13.1" } }, "is-buffer": { @@ -2798,7 +2974,7 @@ "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "dev": true, "requires": { - "kind-of": "^3.0.2" + "kind-of": "3.2.2" }, "dependencies": { "kind-of": { @@ -2807,7 +2983,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "is-buffer": "1.1.6" } } } @@ -2818,9 +2994,9 @@ "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", "dev": true, "requires": { - "is-accessor-descriptor": "^0.1.6", - "is-data-descriptor": "^0.1.4", - "kind-of": "^5.0.0" + "is-accessor-descriptor": "0.1.6", + "is-data-descriptor": "0.1.4", + "kind-of": "5.1.0" }, "dependencies": { "kind-of": { @@ -2843,13 +3019,21 @@ "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", "dev": true }, + "is-finite": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-finite/-/is-finite-1.0.2.tgz", + "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", + "requires": { + "number-is-nan": "1.0.1" + } + }, "is-fullwidth-code-point": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "^1.0.0" + "number-is-nan": "1.0.1" } }, "is-glob": { @@ -2858,7 +3042,7 @@ "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", "dev": true, "requires": { - "is-extglob": "^2.1.1" + "is-extglob": "2.1.1" } }, "is-negated-glob": { @@ -2873,7 +3057,7 @@ "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { - "kind-of": "^3.0.2" + "kind-of": "3.2.2" }, "dependencies": { "kind-of": { @@ -2882,7 +3066,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "is-buffer": "1.1.6" } } } @@ -2893,7 +3077,7 @@ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, "requires": { - "isobject": "^3.0.1" + "isobject": "3.0.1" } }, "is-relative": { @@ -2902,7 +3086,7 @@ "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", "dev": true, "requires": { - "is-unc-path": "^1.0.0" + "is-unc-path": "1.0.0" } }, "is-stream": { @@ -2922,7 +3106,7 @@ "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", "dev": true, "requires": { - "unc-path-regex": "^0.1.2" + "unc-path-regex": "0.1.2" } }, "is-utf8": { @@ -2978,7 +3162,7 @@ "integrity": "sha512-vrRztU9VRRFDyC+aklfLoeXyNdTfga2EI3udDGn4cZ6fpSXpHLV9X6CHvfoMCPtggg8zvDDmC4b9xfu0z6/llA==", "dev": true, "requires": { - "append-transform": "^1.0.0" + "append-transform": "1.0.0" } }, "istanbul-lib-instrument": { @@ -2987,13 +3171,13 @@ "integrity": "sha512-5nnIN4vo5xQZHdXno/YDXJ0G+I3dAm4XgzfSVTPLQpj/zAV2dV6Juy0yaf10/zrJOJeHoN3fraFe+XRq2bFVZA==", "dev": true, "requires": { - "@babel/generator": "^7.4.0", - "@babel/parser": "^7.4.3", - "@babel/template": "^7.4.0", - "@babel/traverse": "^7.4.3", - "@babel/types": "^7.4.0", - "istanbul-lib-coverage": "^2.0.5", - "semver": "^6.0.0" + "@babel/generator": "7.6.2", + "@babel/parser": "7.6.2", + "@babel/template": "7.6.0", + "@babel/traverse": "7.6.2", + "@babel/types": "7.6.1", + "istanbul-lib-coverage": "2.0.5", + "semver": "6.3.0" }, "dependencies": { "semver": { @@ -3010,9 +3194,9 @@ "integrity": "sha512-fHBeG573EIihhAblwgxrSenp0Dby6tJMFR/HvlerBsrCTD5bkUuoNtn3gVh29ZCS824cGGBPn7Sg7cNk+2xUsQ==", "dev": true, "requires": { - "istanbul-lib-coverage": "^2.0.5", - "make-dir": "^2.1.0", - "supports-color": "^6.1.0" + "istanbul-lib-coverage": "2.0.5", + "make-dir": "2.1.0", + "supports-color": "6.1.0" }, "dependencies": { "has-flag": { @@ -3027,7 +3211,7 @@ "integrity": "sha512-qe1jfm1Mg7Nq/NSh6XE24gPXROEVsWHxC1LIx//XNlD9iw7YZQGjZNjYN7xGaEG6iKdA8EtNFW6R0gjnVXp+wQ==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "3.0.0" } } } @@ -3038,11 +3222,11 @@ "integrity": "sha512-R47KzMtDJH6X4/YW9XTx+jrLnZnscW4VpNN+1PViSYTejLVPWv7oov+Duf8YQSPyVRUvueQqz1TcsC6mooZTXw==", "dev": true, "requires": { - "debug": "^4.1.1", - "istanbul-lib-coverage": "^2.0.5", - "make-dir": "^2.1.0", - "rimraf": "^2.6.3", - "source-map": "^0.6.1" + "debug": "4.1.1", + "istanbul-lib-coverage": "2.0.5", + "make-dir": "2.1.0", + "rimraf": "2.7.1", + "source-map": "0.6.1" }, "dependencies": { "source-map": { @@ -3059,7 +3243,7 @@ "integrity": "sha512-SKi4rnMyLBKe0Jy2uUdx28h8oG7ph2PPuQPvIAh31d+Ci+lSiEu4C+h3oBPuJ9+mPKhOyW0M8gY4U5NM1WLeXA==", "dev": true, "requires": { - "handlebars": "^4.1.2" + "handlebars": "4.3.3" } }, "js-joda": { @@ -3080,8 +3264,7 @@ "js-tokens": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz", - "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=", - "dev": true + "integrity": "sha1-mGbfOVECEw449/mWvOtlRDIJwls=" }, "js-yaml": { "version": "3.13.1", @@ -3089,8 +3272,8 @@ "integrity": "sha512-YfbcO7jXDdyj0DGxYVSlSeQNHbD7XPWvrVWeVUujrQEoZzWJIRrCPoyk6kL6IAjAG2IolMK4T0hNUe0HOUs5Jw==", "dev": true, "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" + "argparse": "1.0.10", + "esprima": "4.0.1" } }, "jsbn": { @@ -3132,6 +3315,11 @@ "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" }, + "json5": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/json5/-/json5-0.5.1.tgz", + "integrity": "sha1-Hq3nrMASA0rYTiOWdn6tn6VJWCE=" + }, "jsprim": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", @@ -3161,8 +3349,8 @@ "integrity": "sha1-RblpQsF7HHnHchmCWbqUO+v4yls=", "dev": true, "requires": { - "default-resolution": "^2.0.0", - "es6-weak-map": "^2.0.1" + "default-resolution": "2.0.0", + "es6-weak-map": "2.0.2" } }, "lazystream": { @@ -3171,7 +3359,7 @@ "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", "dev": true, "requires": { - "readable-stream": "^2.0.5" + "readable-stream": "2.3.6" } }, "lcid": { @@ -3180,7 +3368,7 @@ "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "dev": true, "requires": { - "invert-kv": "^1.0.0" + "invert-kv": "1.0.0" } }, "lcov-parse": { @@ -3195,7 +3383,7 @@ "integrity": "sha1-bxT5mje+Op3XhPVJVpDlkDRm7kI=", "dev": true, "requires": { - "flush-write-stream": "^1.0.2" + "flush-write-stream": "1.1.1" } }, "liftoff": { @@ -3204,14 +3392,14 @@ "integrity": "sha512-DlIPlJUkCV0Ips2zf2pJP0unEoT1kwYhiiPUGF3s/jtxTCjziNLoiVVh+jqWOWeFi6mmwQ5fNxvAUyPad4Dfog==", "dev": true, "requires": { - "extend": "^3.0.0", - "findup-sync": "^3.0.0", - "fined": "^1.0.1", - "flagged-respawn": "^1.0.0", - "is-plain-object": "^2.0.4", - "object.map": "^1.0.0", - "rechoir": "^0.6.2", - "resolve": "^1.1.7" + "extend": "3.0.2", + "findup-sync": "3.0.0", + "fined": "1.2.0", + "flagged-respawn": "1.0.1", + "is-plain-object": "2.0.4", + "object.map": "1.0.1", + "rechoir": "0.6.2", + "resolve": "1.6.0" } }, "load-json-file": { @@ -3220,11 +3408,11 @@ "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" + "graceful-fs": "4.1.15", + "parse-json": "2.2.0", + "pify": "2.3.0", + "pinkie-promise": "2.0.1", + "strip-bom": "2.0.0" } }, "locate-path": { @@ -3233,8 +3421,8 @@ "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" + "p-locate": "3.0.0", + "path-exists": "3.0.0" }, "dependencies": { "path-exists": { @@ -3267,14 +3455,22 @@ "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" }, + "loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "requires": { + "js-tokens": "3.0.2" + } + }, "lru-cache": { "version": "4.1.5", "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", "dev": true, "requires": { - "pseudomap": "^1.0.2", - "yallist": "^2.1.2" + "pseudomap": "1.0.2", + "yallist": "2.1.2" } }, "make-dir": { @@ -3283,8 +3479,8 @@ "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", "dev": true, "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" + "pify": "4.0.1", + "semver": "5.7.1" }, "dependencies": { "pify": { @@ -3313,7 +3509,7 @@ "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", "dev": true, "requires": { - "kind-of": "^6.0.2" + "kind-of": "6.0.2" } }, "map-cache": { @@ -3328,7 +3524,7 @@ "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", "dev": true, "requires": { - "object-visit": "^1.0.0" + "object-visit": "1.0.1" } }, "matchdep": { @@ -3337,9 +3533,9 @@ "integrity": "sha1-xvNINKDY28OzfCfui7yyfHd1WC4=", "dev": true, "requires": { - "findup-sync": "^2.0.0", - "micromatch": "^3.0.4", - "resolve": "^1.4.0", + "findup-sync": "2.0.0", + "micromatch": "3.1.10", + "resolve": "1.6.0", "stack-trace": "0.0.10" }, "dependencies": { @@ -3349,10 +3545,10 @@ "integrity": "sha1-kyaxSIwi0aYIhlCoaQGy2akKLLw=", "dev": true, "requires": { - "detect-file": "^1.0.0", - "is-glob": "^3.1.0", - "micromatch": "^3.0.4", - "resolve-dir": "^1.0.1" + "detect-file": "1.0.0", + "is-glob": "3.1.0", + "micromatch": "3.1.10", + "resolve-dir": "1.0.1" } }, "is-glob": { @@ -3361,7 +3557,7 @@ "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "dev": true, "requires": { - "is-extglob": "^2.1.0" + "is-extglob": "2.1.1" } } } @@ -3372,7 +3568,7 @@ "integrity": "sha512-Qkcp7P2ygktpMPh2mCQZaf3jhN6D3Z/qVZHSdWvQ+2Ef5HgRAPBO57A77+ENm0CPx2+1Ce/MYKi3ymqdfuqibw==", "dev": true, "requires": { - "source-map": "^0.6.1" + "source-map": "0.6.1" }, "dependencies": { "source-map": { @@ -3389,19 +3585,19 @@ "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "dev": true, "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "braces": "^2.3.1", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "extglob": "^2.0.4", - "fragment-cache": "^0.2.1", - "kind-of": "^6.0.2", - "nanomatch": "^1.2.9", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.2" + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "braces": "2.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "extglob": "2.0.4", + "fragment-cache": "0.2.1", + "kind-of": "6.0.2", + "nanomatch": "1.2.13", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" } }, "mime-db": { @@ -3414,16 +3610,15 @@ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.18.tgz", "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "requires": { - "mime-db": "~1.33.0" + "mime-db": "1.33.0" } }, "minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, "requires": { - "brace-expansion": "^1.1.7" + "brace-expansion": "1.1.11" } }, "minimist": { @@ -3438,8 +3633,8 @@ "integrity": "sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA==", "dev": true, "requires": { - "for-in": "^1.0.2", - "is-extendable": "^1.0.1" + "for-in": "1.0.2", + "is-extendable": "1.0.1" }, "dependencies": { "is-extendable": { @@ -3448,7 +3643,7 @@ "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, "requires": { - "is-plain-object": "^2.0.4" + "is-plain-object": "2.0.4" } } } @@ -3457,7 +3652,6 @@ "version": "0.5.1", "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", - "dev": true, "requires": { "minimist": "0.0.8" }, @@ -3465,8 +3659,7 @@ "minimist": { "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", - "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" } } }, @@ -3509,7 +3702,7 @@ "integrity": "sha512-rKC3+DyXWgK0ZLKwmRsrkyHVZAjNkfzeehuFWdGGcqGDTZFH73+RH6S/RDAAxl9GusSjZSUWYLmT9N5pzXFOXQ==", "dev": true, "requires": { - "has-flag": "^2.0.0" + "has-flag": "2.0.0" } } } @@ -3517,8 +3710,7 @@ "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", - "dev": true + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=" }, "mute-stdout": { "version": "1.0.1", @@ -3532,17 +3724,29 @@ "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", "dev": true, "requires": { - "arr-diff": "^4.0.0", - "array-unique": "^0.3.2", - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "fragment-cache": "^0.2.1", - "is-windows": "^1.0.2", - "kind-of": "^6.0.2", - "object.pick": "^1.3.0", - "regex-not": "^1.0.0", - "snapdragon": "^0.8.1", - "to-regex": "^3.0.1" + "arr-diff": "4.0.0", + "array-unique": "0.3.2", + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "fragment-cache": "0.2.1", + "is-windows": "1.0.2", + "kind-of": "6.0.2", + "object.pick": "1.3.0", + "regex-not": "1.0.2", + "snapdragon": "0.8.2", + "to-regex": "3.0.2" + } + }, + "nem2-sdk-openapi-typescript-node-client": { + "version": "0.7.2-0.1", + "resolved": "https://registry.npmjs.org/nem2-sdk-openapi-typescript-node-client/-/nem2-sdk-openapi-typescript-node-client-0.7.2-0.1.tgz", + "integrity": "sha512-MJLf3ndSaUr/hFLyxxfapdkAfDkdQ15YUQGvKtmwE5BS/V2MLxZP86se5hSCkntcvQ354z6mXcd8K7D7rKzcoA==", + "requires": { + "@types/bluebird": "3.5.28", + "@types/request": "2.47.0", + "bluebird": "3.5.5", + "request": "2.88.0", + "rewire": "3.0.2" } }, "neo-async": { @@ -3569,10 +3773,10 @@ "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", "dev": true, "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" + "hosted-git-info": "2.7.1", + "resolve": "1.11.0", + "semver": "5.5.0", + "validate-npm-package-license": "3.0.4" }, "dependencies": { "path-parse": { @@ -3587,7 +3791,7 @@ "integrity": "sha512-WL2pBDjqT6pGUNSUzMw00o4T7If+z4H2x3Gz893WoUQ5KW8Vr9txp00ykiP16VBaZF5+j/OcXJHZ9+PCvdiDKw==", "dev": true, "requires": { - "path-parse": "^1.0.6" + "path-parse": "1.0.6" } } } @@ -3598,7 +3802,7 @@ "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, "requires": { - "remove-trailing-separator": "^1.0.1" + "remove-trailing-separator": "1.1.0" } }, "now-and-later": { @@ -3607,14 +3811,13 @@ "integrity": "sha512-KGvQ0cB70AQfg107Xvs/Fbu+dGmZoTRJp2TaPwcwQm3/7PteUyN2BCgk8KBMPGBUXZdVwyWS8fDCGFygBm19UQ==", "dev": true, "requires": { - "once": "^1.3.2" + "once": "1.4.0" } }, "number-is-nan": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", - "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=" }, "nyc": { "version": "14.1.1", @@ -3622,31 +3825,31 @@ "integrity": "sha512-OI0vm6ZGUnoGZv/tLdZ2esSVzDwUC88SNs+6JoSOMVxA+gKMB8Tk7jBwgemLx4O40lhhvZCVw1C+OYLOBOPXWw==", "dev": true, "requires": { - "archy": "^1.0.0", - "caching-transform": "^3.0.2", - "convert-source-map": "^1.6.0", - "cp-file": "^6.2.0", - "find-cache-dir": "^2.1.0", - "find-up": "^3.0.0", - "foreground-child": "^1.5.6", - "glob": "^7.1.3", - "istanbul-lib-coverage": "^2.0.5", - "istanbul-lib-hook": "^2.0.7", - "istanbul-lib-instrument": "^3.3.0", - "istanbul-lib-report": "^2.0.8", - "istanbul-lib-source-maps": "^3.0.6", - "istanbul-reports": "^2.2.4", - "js-yaml": "^3.13.1", - "make-dir": "^2.1.0", - "merge-source-map": "^1.1.0", - "resolve-from": "^4.0.0", - "rimraf": "^2.6.3", - "signal-exit": "^3.0.2", - "spawn-wrap": "^1.4.2", - "test-exclude": "^5.2.3", - "uuid": "^3.3.2", - "yargs": "^13.2.2", - "yargs-parser": "^13.0.0" + "archy": "1.0.0", + "caching-transform": "3.0.2", + "convert-source-map": "1.6.0", + "cp-file": "6.2.0", + "find-cache-dir": "2.1.0", + "find-up": "3.0.0", + "foreground-child": "1.5.6", + "glob": "7.1.4", + "istanbul-lib-coverage": "2.0.5", + "istanbul-lib-hook": "2.0.7", + "istanbul-lib-instrument": "3.3.0", + "istanbul-lib-report": "2.0.8", + "istanbul-lib-source-maps": "3.0.6", + "istanbul-reports": "2.2.6", + "js-yaml": "3.13.1", + "make-dir": "2.1.0", + "merge-source-map": "1.1.0", + "resolve-from": "4.0.0", + "rimraf": "2.7.1", + "signal-exit": "3.0.2", + "spawn-wrap": "1.4.3", + "test-exclude": "5.2.3", + "uuid": "3.3.3", + "yargs": "13.3.0", + "yargs-parser": "13.1.1" }, "dependencies": { "ansi-regex": { @@ -3661,7 +3864,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "^1.9.0" + "color-convert": "1.9.1" } }, "camelcase": { @@ -3676,9 +3879,9 @@ "integrity": "sha512-PYeGSEmmHM6zvoef2w8TPzlrnNpXIjTipYK780YswmIP9vjxmd6Y2a3CB2Ks6/AU8NHjZugXvo8w3oWM2qnwXA==", "dev": true, "requires": { - "string-width": "^3.1.0", - "strip-ansi": "^5.2.0", - "wrap-ansi": "^5.1.0" + "string-width": "3.1.0", + "strip-ansi": "5.2.0", + "wrap-ansi": "5.1.0" } }, "find-up": { @@ -3687,7 +3890,7 @@ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { - "locate-path": "^3.0.0" + "locate-path": "3.0.0" } }, "get-caller-file": { @@ -3702,17 +3905,17 @@ "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, "is-fullwidth-code-point": { "version": "2.0.0", - "resolved": false, + "resolved": "", "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", "dev": true }, @@ -3728,9 +3931,9 @@ "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", "dev": true, "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" + "emoji-regex": "7.0.3", + "is-fullwidth-code-point": "2.0.0", + "strip-ansi": "5.2.0" } }, "strip-ansi": { @@ -3739,7 +3942,7 @@ "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", "dev": true, "requires": { - "ansi-regex": "^4.1.0" + "ansi-regex": "4.1.0" } }, "uuid": { @@ -3750,7 +3953,7 @@ }, "which-module": { "version": "2.0.0", - "resolved": false, + "resolved": "", "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", "dev": true }, @@ -3760,9 +3963,9 @@ "integrity": "sha512-QC1/iN/2/RPVJ5jYK8BGttj5z83LmSKmvbvrXPNCLZSEb32KKVDJDl/MOt2N01qU2H/FkzEa9PKto1BqDjtd7Q==", "dev": true, "requires": { - "ansi-styles": "^3.2.0", - "string-width": "^3.0.0", - "strip-ansi": "^5.0.0" + "ansi-styles": "3.2.1", + "string-width": "3.1.0", + "strip-ansi": "5.2.0" } }, "y18n": { @@ -3777,16 +3980,16 @@ "integrity": "sha512-2eehun/8ALW8TLoIl7MVaRUrg+yCnenu8B4kBlRxj3GJGDKU1Og7sMXPNm1BYyM1DOJmTZ4YeN/Nwxv+8XJsUA==", "dev": true, "requires": { - "cliui": "^5.0.0", - "find-up": "^3.0.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^3.0.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^13.1.1" + "cliui": "5.0.0", + "find-up": "3.0.0", + "get-caller-file": "2.0.5", + "require-directory": "2.1.1", + "require-main-filename": "2.0.0", + "set-blocking": "2.0.0", + "string-width": "3.1.0", + "which-module": "2.0.0", + "y18n": "4.0.0", + "yargs-parser": "13.1.1" } }, "yargs-parser": { @@ -3795,8 +3998,8 @@ "integrity": "sha512-oVAVsHz6uFrg3XQheFII8ESO2ssAf9luWuAd6Wexsu4F3OtIW0o8IribPXYrD4WC24LWtPrJlGy87y5udK+dxQ==", "dev": true, "requires": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" + "camelcase": "5.3.1", + "decamelize": "1.2.0" } } } @@ -3812,9 +4015,9 @@ "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", "dev": true, "requires": { - "copy-descriptor": "^0.1.0", - "define-property": "^0.2.5", - "kind-of": "^3.0.3" + "copy-descriptor": "0.1.1", + "define-property": "0.2.5", + "kind-of": "3.2.2" }, "dependencies": { "define-property": { @@ -3823,7 +4026,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "^0.1.0" + "is-descriptor": "0.1.6" } }, "kind-of": { @@ -3832,7 +4035,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "is-buffer": "1.1.6" } } } @@ -3849,7 +4052,7 @@ "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", "dev": true, "requires": { - "isobject": "^3.0.0" + "isobject": "3.0.1" } }, "object.assign": { @@ -3858,10 +4061,10 @@ "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", "dev": true, "requires": { - "define-properties": "^1.1.2", - "function-bind": "^1.1.1", - "has-symbols": "^1.0.0", - "object-keys": "^1.0.11" + "define-properties": "1.1.3", + "function-bind": "1.1.1", + "has-symbols": "1.0.0", + "object-keys": "1.1.1" } }, "object.defaults": { @@ -3870,10 +4073,10 @@ "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=", "dev": true, "requires": { - "array-each": "^1.0.1", - "array-slice": "^1.0.0", - "for-own": "^1.0.0", - "isobject": "^3.0.0" + "array-each": "1.0.1", + "array-slice": "1.1.0", + "for-own": "1.0.0", + "isobject": "3.0.1" } }, "object.map": { @@ -3882,8 +4085,8 @@ "integrity": "sha1-z4Plncj8wK1fQlDh94s7gb2AHTc=", "dev": true, "requires": { - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" + "for-own": "1.0.0", + "make-iterator": "1.0.1" } }, "object.pick": { @@ -3892,7 +4095,7 @@ "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, "requires": { - "isobject": "^3.0.1" + "isobject": "3.0.1" } }, "object.reduce": { @@ -3901,8 +4104,8 @@ "integrity": "sha1-b+NI8qx/oPlcpiEiZZkJaCW7A60=", "dev": true, "requires": { - "for-own": "^1.0.0", - "make-iterator": "^1.0.0" + "for-own": "1.0.0", + "make-iterator": "1.0.1" } }, "once": { @@ -3911,7 +4114,7 @@ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { - "wrappy": "1" + "wrappy": "1.0.2" } }, "optimist": { @@ -3920,8 +4123,8 @@ "integrity": "sha1-2j6nRob6IaGaERwybpDrFaAZZoY=", "dev": true, "requires": { - "minimist": "~0.0.1", - "wordwrap": "~0.0.2" + "minimist": "0.0.10", + "wordwrap": "0.0.3" }, "dependencies": { "minimist": { @@ -3938,14 +4141,13 @@ "integrity": "sha1-d8DLN8QVJdZBZtmQ/61+xqDhNj4=", "dev": true, "requires": { - "readable-stream": "^2.0.1" + "readable-stream": "2.3.6" } }, "os-homedir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", - "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", - "dev": true + "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=" }, "os-locale": { "version": "1.4.0", @@ -3953,16 +4155,21 @@ "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", "dev": true, "requires": { - "lcid": "^1.0.0" + "lcid": "1.0.0" } }, + "os-tmpdir": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=" + }, "p-limit": { "version": "2.2.1", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.2.1.tgz", "integrity": "sha512-85Tk+90UCVWvbDavCLKPOLC9vvY8OwEX/RtKF+/1OADJMVlFfEHOiMTPVyxg7mk/dKa+ipdHm0OUkTvCpMTuwg==", "dev": true, "requires": { - "p-try": "^2.0.0" + "p-try": "2.2.0" } }, "p-locate": { @@ -3971,7 +4178,7 @@ "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dev": true, "requires": { - "p-limit": "^2.0.0" + "p-limit": "2.2.1" } }, "p-try": { @@ -3986,10 +4193,10 @@ "integrity": "sha512-lOtmukMDVvtkL84rJHI7dpTYq+0rli8N2wlnqUcBuDWCfVhRUfOmnR9SsoHFMLpACvEV60dX7rd0rFaYDZI+FA==", "dev": true, "requires": { - "graceful-fs": "^4.1.15", - "hasha": "^3.0.0", - "lodash.flattendeep": "^4.4.0", - "release-zalgo": "^1.0.0" + "graceful-fs": "4.1.15", + "hasha": "3.0.0", + "lodash.flattendeep": "4.4.0", + "release-zalgo": "1.0.0" } }, "parse-filepath": { @@ -3998,9 +4205,9 @@ "integrity": "sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE=", "dev": true, "requires": { - "is-absolute": "^1.0.0", - "map-cache": "^0.2.0", - "path-root": "^0.1.1" + "is-absolute": "1.0.0", + "map-cache": "0.2.2", + "path-root": "0.1.1" } }, "parse-json": { @@ -4009,7 +4216,7 @@ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "requires": { - "error-ex": "^1.2.0" + "error-ex": "1.3.2" } }, "parse-node-version": { @@ -4042,14 +4249,13 @@ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { - "pinkie-promise": "^2.0.0" + "pinkie-promise": "2.0.1" } }, "path-is-absolute": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=" }, "path-parse": { "version": "1.0.5", @@ -4063,7 +4269,7 @@ "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=", "dev": true, "requires": { - "path-root-regex": "^0.1.0" + "path-root-regex": "0.1.2" } }, "path-root-regex": { @@ -4078,9 +4284,9 @@ "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" + "graceful-fs": "4.1.15", + "pify": "2.3.0", + "pinkie-promise": "2.0.1" } }, "pathval": { @@ -4112,7 +4318,7 @@ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { - "pinkie": "^2.0.0" + "pinkie": "2.0.4" } }, "pkg-dir": { @@ -4121,7 +4327,7 @@ "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", "dev": true, "requires": { - "find-up": "^3.0.0" + "find-up": "3.0.0" }, "dependencies": { "find-up": { @@ -4130,7 +4336,7 @@ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { - "locate-path": "^3.0.0" + "locate-path": "3.0.0" } } } @@ -4141,10 +4347,10 @@ "integrity": "sha512-L1zP0dk7vGweZME2i+EeakvUNqSrdiI3F91TwEoYiGrAfUXmVv6fJIq4g82PAXxNsWOp0J7ZqQy/3Szz0ajTxA==", "dev": true, "requires": { - "ansi-colors": "^1.0.1", - "arr-diff": "^4.0.0", - "arr-union": "^3.1.0", - "extend-shallow": "^3.0.2" + "ansi-colors": "1.1.0", + "arr-diff": "4.0.0", + "arr-union": "3.1.0", + "extend-shallow": "3.0.2" } }, "posix-character-classes": { @@ -4159,6 +4365,11 @@ "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", "dev": true }, + "private": { + "version": "0.1.8", + "resolved": "https://registry.npmjs.org/private/-/private-0.1.8.tgz", + "integrity": "sha512-VvivMrbvd2nKkiG38qjULzlc+4Vx4wm/whI9pQD35YrARNnhxeiRktSOhSukRLFNlzg6Br/cJPet5J/u19r/mg==" + }, "process-nextick-args": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", @@ -4182,8 +4393,8 @@ "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", "dev": true, "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" + "end-of-stream": "1.4.1", + "once": "1.4.0" } }, "pumpify": { @@ -4192,9 +4403,9 @@ "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", "dev": true, "requires": { - "duplexify": "^3.6.0", - "inherits": "^2.0.3", - "pump": "^2.0.0" + "duplexify": "3.7.1", + "inherits": "2.0.3", + "pump": "2.0.1" } }, "punycode": { @@ -4213,9 +4424,9 @@ "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", "dev": true, "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" + "load-json-file": "1.1.0", + "normalize-package-data": "2.5.0", + "path-type": "1.1.0" } }, "read-pkg-up": { @@ -4224,8 +4435,8 @@ "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", "dev": true, "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" + "find-up": "1.1.2", + "read-pkg": "1.1.0" } }, "readable-stream": { @@ -4234,13 +4445,13 @@ "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { - "core-util-is": "~1.0.0", - "inherits": "~2.0.3", - "isarray": "~1.0.0", - "process-nextick-args": "~2.0.0", - "safe-buffer": "~5.1.1", - "string_decoder": "~1.1.1", - "util-deprecate": "~1.0.1" + "core-util-is": "1.0.2", + "inherits": "2.0.3", + "isarray": "1.0.0", + "process-nextick-args": "2.0.0", + "safe-buffer": "5.1.1", + "string_decoder": "1.1.1", + "util-deprecate": "1.0.2" } }, "readdirp": { @@ -4249,9 +4460,9 @@ "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", "dev": true, "requires": { - "graceful-fs": "^4.1.11", - "micromatch": "^3.1.10", - "readable-stream": "^2.0.2" + "graceful-fs": "4.1.15", + "micromatch": "3.1.10", + "readable-stream": "2.3.6" } }, "rechoir": { @@ -4260,17 +4471,22 @@ "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", "dev": true, "requires": { - "resolve": "^1.1.6" + "resolve": "1.6.0" } }, + "regenerator-runtime": { + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", + "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==" + }, "regex-not": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", "dev": true, "requires": { - "extend-shallow": "^3.0.2", - "safe-regex": "^1.1.0" + "extend-shallow": "3.0.2", + "safe-regex": "1.1.0" } }, "release-zalgo": { @@ -4279,7 +4495,7 @@ "integrity": "sha1-CXALflB0Mpc5Mw5TXFqQ+2eFFzA=", "dev": true, "requires": { - "es6-error": "^4.0.1" + "es6-error": "4.1.1" } }, "remove-bom-buffer": { @@ -4288,8 +4504,8 @@ "integrity": "sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==", "dev": true, "requires": { - "is-buffer": "^1.1.5", - "is-utf8": "^0.2.1" + "is-buffer": "1.1.6", + "is-utf8": "0.2.1" } }, "remove-bom-stream": { @@ -4298,9 +4514,9 @@ "integrity": "sha1-BfGlk/FuQuH7kOv1nejlaVJflSM=", "dev": true, "requires": { - "remove-bom-buffer": "^3.0.0", - "safe-buffer": "^5.1.0", - "through2": "^2.0.3" + "remove-bom-buffer": "3.0.0", + "safe-buffer": "5.1.1", + "through2": "2.0.5" } }, "remove-trailing-separator": { @@ -4321,6 +4537,14 @@ "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", "dev": true }, + "repeating": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/repeating/-/repeating-2.0.1.tgz", + "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", + "requires": { + "is-finite": "1.0.2" + } + }, "replace-ext": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", @@ -4333,9 +4557,9 @@ "integrity": "sha1-6H9tUTuSjd6AgmDBK+f+xv9ueYw=", "dev": true, "requires": { - "homedir-polyfill": "^1.0.1", - "is-absolute": "^1.0.0", - "remove-trailing-separator": "^1.1.0" + "homedir-polyfill": "1.0.3", + "is-absolute": "1.0.0", + "remove-trailing-separator": "1.1.0" } }, "request": { @@ -4343,26 +4567,26 @@ "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", "requires": { - "aws-sign2": "~0.7.0", - "aws4": "^1.8.0", - "caseless": "~0.12.0", - "combined-stream": "~1.0.6", - "extend": "~3.0.2", - "forever-agent": "~0.6.1", - "form-data": "~2.3.2", - "har-validator": "~5.1.0", - "http-signature": "~1.2.0", - "is-typedarray": "~1.0.0", - "isstream": "~0.1.2", - "json-stringify-safe": "~5.0.1", - "mime-types": "~2.1.19", - "oauth-sign": "~0.9.0", - "performance-now": "^2.1.0", - "qs": "~6.5.2", - "safe-buffer": "^5.1.2", - "tough-cookie": "~2.4.3", - "tunnel-agent": "^0.6.0", - "uuid": "^3.3.2" + "aws-sign2": "0.7.0", + "aws4": "1.8.0", + "caseless": "0.12.0", + "combined-stream": "1.0.6", + "extend": "3.0.2", + "forever-agent": "0.6.1", + "form-data": "2.3.2", + "har-validator": "5.1.3", + "http-signature": "1.2.0", + "is-typedarray": "1.0.0", + "isstream": "0.1.2", + "json-stringify-safe": "5.0.1", + "mime-types": "2.1.24", + "oauth-sign": "0.9.0", + "performance-now": "2.1.0", + "qs": "6.5.2", + "safe-buffer": "5.2.0", + "tough-cookie": "2.4.3", + "tunnel-agent": "0.6.0", + "uuid": "3.3.3" }, "dependencies": { "mime-db": { @@ -4388,8 +4612,8 @@ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", "requires": { - "psl": "^1.1.24", - "punycode": "^1.4.1" + "psl": "1.4.0", + "punycode": "1.4.1" } } } @@ -4399,7 +4623,7 @@ "resolved": "https://registry.npmjs.org/request-promise-core/-/request-promise-core-1.1.1.tgz", "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", "requires": { - "lodash": "^4.13.1" + "lodash": "4.17.15" } }, "request-promise-native": { @@ -4408,8 +4632,8 @@ "integrity": "sha1-UoF3D2jgyXGeUWP9P6tIIhX0/aU=", "requires": { "request-promise-core": "1.1.1", - "stealthy-require": "^1.1.0", - "tough-cookie": ">=2.3.3" + "stealthy-require": "1.1.1", + "tough-cookie": "2.3.4" } }, "require-directory": { @@ -4430,7 +4654,7 @@ "integrity": "sha512-mw7JQNu5ExIkcw4LPih0owX/TZXjD/ZUF/ZQ/pDnkw3ZKhDcZZw5klmBlj6gVMwjQ3Pz5Jgu7F3d0jcDVuEWdw==", "dev": true, "requires": { - "path-parse": "^1.0.5" + "path-parse": "1.0.5" } }, "resolve-dir": { @@ -4439,8 +4663,8 @@ "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=", "dev": true, "requires": { - "expand-tilde": "^2.0.0", - "global-modules": "^1.0.0" + "expand-tilde": "2.0.2", + "global-modules": "1.0.0" } }, "resolve-from": { @@ -4455,7 +4679,7 @@ "integrity": "sha1-MrueOcBtZzONyTeMDW1gdFZq0TE=", "dev": true, "requires": { - "value-or-function": "^3.0.0" + "value-or-function": "3.0.0" } }, "resolve-url": { @@ -4470,13 +4694,22 @@ "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", "dev": true }, + "rewire": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rewire/-/rewire-3.0.2.tgz", + "integrity": "sha512-ejkkt3qYnsQ38ifc9llAAzuHiGM7kR8N5/mL3aHWgmWwet0OMFcmJB8aTsMV2PBHCWxNVTLCeRfBpEa8X2+1fw==", + "requires": { + "babel-core": "6.26.3", + "babel-plugin-transform-es2015-block-scoping": "6.26.0" + } + }, "rimraf": { "version": "2.7.1", "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.7.1.tgz", "integrity": "sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w==", "dev": true, "requires": { - "glob": "^7.1.3" + "glob": "7.1.4" }, "dependencies": { "glob": { @@ -4485,12 +4718,12 @@ "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } } } @@ -4500,8 +4733,8 @@ "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", "requires": { - "hash-base": "^3.0.0", - "inherits": "^2.0.1" + "hash-base": "3.0.4", + "inherits": "2.0.3" } }, "rxjs": { @@ -4509,7 +4742,7 @@ "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.2.1.tgz", "integrity": "sha512-OwMxHxmnmHTUpgO+V7dZChf3Tixf4ih95cmXjzzadULziVl/FKhHScGLj4goEw9weePVOH2Q0+GcCBUhKCZc/g==", "requires": { - "tslib": "^1.9.0" + "tslib": "1.9.0" } }, "rxjs-compat": { @@ -4528,7 +4761,7 @@ "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, "requires": { - "ret": "~0.1.10" + "ret": "0.1.15" } }, "secure-random": { @@ -4549,7 +4782,7 @@ "integrity": "sha1-E+jCZYq5aRywzXEJMkAoDTb3els=", "dev": true, "requires": { - "sver-compat": "^1.5.0" + "sver-compat": "1.5.0" } }, "set-blocking": { @@ -4564,10 +4797,10 @@ "integrity": "sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw==", "dev": true, "requires": { - "extend-shallow": "^2.0.1", - "is-extendable": "^0.1.1", - "is-plain-object": "^2.0.3", - "split-string": "^3.0.1" + "extend-shallow": "2.0.1", + "is-extendable": "0.1.1", + "is-plain-object": "2.0.4", + "split-string": "3.1.0" }, "dependencies": { "extend-shallow": { @@ -4576,7 +4809,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "is-extendable": "0.1.1" } } } @@ -4587,20 +4820,25 @@ "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true }, + "slash": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/slash/-/slash-1.0.0.tgz", + "integrity": "sha1-xB8vbDn8FtHNF61LXYlhFK5HDVU=" + }, "snapdragon": { "version": "0.8.2", "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", "dev": true, "requires": { - "base": "^0.11.1", - "debug": "^2.2.0", - "define-property": "^0.2.5", - "extend-shallow": "^2.0.1", - "map-cache": "^0.2.2", - "source-map": "^0.5.6", - "source-map-resolve": "^0.5.0", - "use": "^3.1.0" + "base": "0.11.2", + "debug": "2.6.9", + "define-property": "0.2.5", + "extend-shallow": "2.0.1", + "map-cache": "0.2.2", + "source-map": "0.5.7", + "source-map-resolve": "0.5.2", + "use": "3.1.1" }, "dependencies": { "debug": { @@ -4618,7 +4856,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "^0.1.0" + "is-descriptor": "0.1.6" } }, "extend-shallow": { @@ -4627,7 +4865,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "^0.1.0" + "is-extendable": "0.1.1" } } } @@ -4638,9 +4876,9 @@ "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", "dev": true, "requires": { - "define-property": "^1.0.0", - "isobject": "^3.0.0", - "snapdragon-util": "^3.0.1" + "define-property": "1.0.0", + "isobject": "3.0.1", + "snapdragon-util": "3.0.1" }, "dependencies": { "define-property": { @@ -4649,7 +4887,7 @@ "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "is-descriptor": "^1.0.0" + "is-descriptor": "1.0.2" } }, "is-accessor-descriptor": { @@ -4658,7 +4896,7 @@ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "kind-of": "6.0.2" } }, "is-data-descriptor": { @@ -4667,7 +4905,7 @@ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "kind-of": "^6.0.0" + "kind-of": "6.0.2" } }, "is-descriptor": { @@ -4676,9 +4914,9 @@ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "is-accessor-descriptor": "^1.0.0", - "is-data-descriptor": "^1.0.0", - "kind-of": "^6.0.2" + "is-accessor-descriptor": "1.0.0", + "is-data-descriptor": "1.0.0", + "kind-of": "6.0.2" } } } @@ -4689,7 +4927,7 @@ "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", "dev": true, "requires": { - "kind-of": "^3.2.0" + "kind-of": "3.2.2" }, "dependencies": { "kind-of": { @@ -4698,7 +4936,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "is-buffer": "1.1.6" } } } @@ -4706,8 +4944,7 @@ "source-map": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=" }, "source-map-resolve": { "version": "0.5.2", @@ -4715,11 +4952,19 @@ "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", "dev": true, "requires": { - "atob": "^2.1.1", - "decode-uri-component": "^0.2.0", - "resolve-url": "^0.2.1", - "source-map-url": "^0.4.0", - "urix": "^0.1.0" + "atob": "2.1.2", + "decode-uri-component": "0.2.0", + "resolve-url": "0.2.1", + "source-map-url": "0.4.0", + "urix": "0.1.0" + } + }, + "source-map-support": { + "version": "0.4.18", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.4.18.tgz", + "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", + "requires": { + "source-map": "0.5.7" } }, "source-map-url": { @@ -4740,12 +4985,12 @@ "integrity": "sha512-IgB8md0QW/+tWqcavuFgKYR/qIRvJkRLPJDFaoXtLLUaVcCDK0+HeFTkmQHj3eprcYhc+gOl0aEA1w7qZlYezw==", "dev": true, "requires": { - "foreground-child": "^1.5.6", - "mkdirp": "^0.5.0", - "os-homedir": "^1.0.1", - "rimraf": "^2.6.2", - "signal-exit": "^3.0.2", - "which": "^1.3.0" + "foreground-child": "1.5.6", + "mkdirp": "0.5.1", + "os-homedir": "1.0.2", + "rimraf": "2.7.1", + "signal-exit": "3.0.2", + "which": "1.3.1" } }, "spdx-correct": { @@ -4754,8 +4999,8 @@ "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", "dev": true, "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" + "spdx-expression-parse": "3.0.0", + "spdx-license-ids": "3.0.4" } }, "spdx-exceptions": { @@ -4770,8 +5015,8 @@ "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "dev": true, "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" + "spdx-exceptions": "2.2.0", + "spdx-license-ids": "3.0.4" } }, "spdx-license-ids": { @@ -4786,7 +5031,7 @@ "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", "dev": true, "requires": { - "extend-shallow": "^3.0.0" + "extend-shallow": "3.0.2" } }, "sprintf-js": { @@ -4800,14 +5045,14 @@ "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.14.1.tgz", "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", "requires": { - "asn1": "~0.2.3", - "assert-plus": "^1.0.0", - "bcrypt-pbkdf": "^1.0.0", - "dashdash": "^1.12.0", - "ecc-jsbn": "~0.1.1", - "getpass": "^0.1.1", - "jsbn": "~0.1.0", - "tweetnacl": "~0.14.0" + "asn1": "0.2.3", + "assert-plus": "1.0.0", + "bcrypt-pbkdf": "1.0.1", + "dashdash": "1.14.1", + "ecc-jsbn": "0.1.1", + "getpass": "0.1.7", + "jsbn": "0.1.1", + "tweetnacl": "0.14.5" } }, "stack-trace": { @@ -4822,8 +5067,8 @@ "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", "dev": true, "requires": { - "define-property": "^0.2.5", - "object-copy": "^0.1.0" + "define-property": "0.2.5", + "object-copy": "0.1.0" }, "dependencies": { "define-property": { @@ -4832,7 +5077,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "^0.1.0" + "is-descriptor": "0.1.6" } } } @@ -4860,9 +5105,9 @@ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "^1.0.0", - "is-fullwidth-code-point": "^1.0.0", - "strip-ansi": "^3.0.0" + "code-point-at": "1.1.0", + "is-fullwidth-code-point": "1.0.0", + "strip-ansi": "3.0.1" } }, "string_decoder": { @@ -4871,16 +5116,15 @@ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { - "safe-buffer": "~5.1.0" + "safe-buffer": "5.1.1" } }, "strip-ansi": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", - "dev": true, "requires": { - "ansi-regex": "^2.0.0" + "ansi-regex": "2.1.1" } }, "strip-bom": { @@ -4889,14 +5133,13 @@ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { - "is-utf8": "^0.2.0" + "is-utf8": "0.2.1" } }, "supports-color": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true + "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=" }, "sver-compat": { "version": "1.5.0", @@ -4904,8 +5147,8 @@ "integrity": "sha1-PPh9/rTQe0o/FIJ7wYaz/QxkXNg=", "dev": true, "requires": { - "es6-iterator": "^2.0.1", - "es6-symbol": "^3.1.1" + "es6-iterator": "2.0.3", + "es6-symbol": "3.1.1" } }, "test-exclude": { @@ -4914,10 +5157,10 @@ "integrity": "sha512-M+oxtseCFO3EDtAaGH7iiej3CBkzXqFMbzqYAACdzKui4eZA+pq3tZEwChvOdNfa7xxy8BfbmgJSIr43cC/+2g==", "dev": true, "requires": { - "glob": "^7.1.3", - "minimatch": "^3.0.4", - "read-pkg-up": "^4.0.0", - "require-main-filename": "^2.0.0" + "glob": "7.1.4", + "minimatch": "3.0.4", + "read-pkg-up": "4.0.0", + "require-main-filename": "2.0.0" }, "dependencies": { "find-up": { @@ -4926,7 +5169,7 @@ "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, "requires": { - "locate-path": "^3.0.0" + "locate-path": "3.0.0" } }, "glob": { @@ -4935,12 +5178,12 @@ "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", "dev": true, "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" + "fs.realpath": "1.0.0", + "inflight": "1.0.6", + "inherits": "2.0.3", + "minimatch": "3.0.4", + "once": "1.4.0", + "path-is-absolute": "1.0.1" } }, "load-json-file": { @@ -4949,10 +5192,10 @@ "integrity": "sha1-L19Fq5HjMhYjT9U62rZo607AmTs=", "dev": true, "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^4.0.0", - "pify": "^3.0.0", - "strip-bom": "^3.0.0" + "graceful-fs": "4.1.15", + "parse-json": "4.0.0", + "pify": "3.0.0", + "strip-bom": "3.0.0" } }, "parse-json": { @@ -4961,8 +5204,8 @@ "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", "dev": true, "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" + "error-ex": "1.3.2", + "json-parse-better-errors": "1.0.2" } }, "path-type": { @@ -4971,7 +5214,7 @@ "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", "dev": true, "requires": { - "pify": "^3.0.0" + "pify": "3.0.0" } }, "pify": { @@ -4986,9 +5229,9 @@ "integrity": "sha1-nLxoaXj+5l0WwA4rGcI3/Pbjg4k=", "dev": true, "requires": { - "load-json-file": "^4.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^3.0.0" + "load-json-file": "4.0.0", + "normalize-package-data": "2.5.0", + "path-type": "3.0.0" } }, "read-pkg-up": { @@ -4997,8 +5240,8 @@ "integrity": "sha512-6etQSH7nJGsK0RbG/2TeDzZFa8shjQ1um+SwQQ5cwKy0dhSXdOncEhb1CPpvQG4h7FyOV6EB6YlV0yJvZQNAkA==", "dev": true, "requires": { - "find-up": "^3.0.0", - "read-pkg": "^3.0.0" + "find-up": "3.0.0", + "read-pkg": "3.0.0" } }, "require-main-filename": { @@ -5021,8 +5264,8 @@ "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", "dev": true, "requires": { - "readable-stream": "~2.3.6", - "xtend": "~4.0.1" + "readable-stream": "2.3.6", + "xtend": "4.0.1" } }, "through2-filter": { @@ -5031,8 +5274,8 @@ "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", "dev": true, "requires": { - "through2": "~2.0.0", - "xtend": "~4.0.0" + "through2": "2.0.5", + "xtend": "4.0.1" } }, "time-stamp": { @@ -5047,8 +5290,8 @@ "integrity": "sha1-GGX0PZ50sIItufFFt4z/fQ98hJs=", "dev": true, "requires": { - "is-absolute": "^1.0.0", - "is-negated-glob": "^1.0.0" + "is-absolute": "1.0.0", + "is-negated-glob": "1.0.0" } }, "to-fast-properties": { @@ -5063,7 +5306,7 @@ "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", "dev": true, "requires": { - "kind-of": "^3.0.2" + "kind-of": "3.2.2" }, "dependencies": { "kind-of": { @@ -5072,7 +5315,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "^1.1.5" + "is-buffer": "1.1.6" } } } @@ -5083,10 +5326,10 @@ "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", "dev": true, "requires": { - "define-property": "^2.0.2", - "extend-shallow": "^3.0.2", - "regex-not": "^1.0.2", - "safe-regex": "^1.1.0" + "define-property": "2.0.2", + "extend-shallow": "3.0.2", + "regex-not": "1.0.2", + "safe-regex": "1.1.0" } }, "to-regex-range": { @@ -5095,8 +5338,8 @@ "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", "dev": true, "requires": { - "is-number": "^3.0.0", - "repeat-string": "^1.6.1" + "is-number": "3.0.0", + "repeat-string": "1.6.1" } }, "to-through": { @@ -5105,7 +5348,7 @@ "integrity": "sha1-/JKtq6ByZHvAtn1rA2ZKoZUJOvY=", "dev": true, "requires": { - "through2": "^2.0.3" + "through2": "2.0.5" } }, "tough-cookie": { @@ -5113,16 +5356,21 @@ "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.3.4.tgz", "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", "requires": { - "punycode": "^1.4.1" + "punycode": "1.4.1" } }, + "trim-right": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/trim-right/-/trim-right-1.0.1.tgz", + "integrity": "sha1-yy4SAwZ+DI3h9hQJS5/kVwTqYAM=" + }, "ts-mockito": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/ts-mockito/-/ts-mockito-2.3.0.tgz", "integrity": "sha512-IB37YP8DppTHUf/aJeayUa7fZp7mn7HK+NYalzdyoy0z0vOpZwO+HiUKLUkK+c9ERcRlOdwm8Do99ndYsvm+Bw==", "dev": true, "requires": { - "lodash": "^4.17.5" + "lodash": "4.17.15" } }, "ts-node": { @@ -5131,14 +5379,14 @@ "integrity": "sha512-XK7QmDcNHVmZkVtkiwNDWiERRHPyU8nBqZB1+iv2UhOG0q3RQ9HsZ2CMqISlFbxjrYFGfG2mX7bW4dAyxBVzUw==", "dev": true, "requires": { - "arrify": "^1.0.0", - "chalk": "^2.3.0", - "diff": "^3.1.0", - "make-error": "^1.1.1", - "minimist": "^1.2.0", - "mkdirp": "^0.5.1", - "source-map-support": "^0.5.3", - "yn": "^2.0.0" + "arrify": "1.0.1", + "chalk": "2.3.2", + "diff": "3.3.1", + "make-error": "1.3.4", + "minimist": "1.2.0", + "mkdirp": "0.5.1", + "source-map-support": "0.5.4", + "yn": "2.0.0" }, "dependencies": { "ansi-styles": { @@ -5147,7 +5395,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "^1.9.0" + "color-convert": "1.9.1" } }, "chalk": { @@ -5156,9 +5404,9 @@ "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", "dev": true, "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" } }, "has-flag": { @@ -5179,7 +5427,7 @@ "integrity": "sha512-PETSPG6BjY1AHs2t64vS2aqAgu6dMIMXJULWFBGbh2Gr8nVLbCFDo6i/RMMvviIQ2h1Z8+5gQhVKSn2je9nmdg==", "dev": true, "requires": { - "source-map": "^0.6.0" + "source-map": "0.6.1" } }, "supports-color": { @@ -5188,7 +5436,7 @@ "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "3.0.0" } } } @@ -5204,18 +5452,18 @@ "integrity": "sha1-ElX4ej/1frCw4fDmEKi0dIBGya4=", "dev": true, "requires": { - "babel-code-frame": "^6.22.0", - "builtin-modules": "^1.1.1", - "chalk": "^2.3.0", - "commander": "^2.12.1", - "diff": "^3.2.0", - "glob": "^7.1.1", - "js-yaml": "^3.7.0", - "minimatch": "^3.0.4", - "resolve": "^1.3.2", - "semver": "^5.3.0", - "tslib": "^1.8.0", - "tsutils": "^2.12.1" + "babel-code-frame": "6.26.0", + "builtin-modules": "1.1.1", + "chalk": "2.3.2", + "commander": "2.15.1", + "diff": "3.3.1", + "glob": "7.1.2", + "js-yaml": "3.13.1", + "minimatch": "3.0.4", + "resolve": "1.6.0", + "semver": "5.5.0", + "tslib": "1.9.0", + "tsutils": "2.22.2" }, "dependencies": { "ansi-styles": { @@ -5224,7 +5472,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "^1.9.0" + "color-convert": "1.9.1" } }, "chalk": { @@ -5233,9 +5481,9 @@ "integrity": "sha512-ZM4j2/ld/YZDc3Ma8PgN7gyAk+kHMMMyzLNryCPGhWrsfAuDVeuid5bpRFTDgMH9JBK2lA4dyyAkkZYF/WcqDQ==", "dev": true, "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "3.2.1", + "escape-string-regexp": "1.0.5", + "supports-color": "5.3.0" } }, "has-flag": { @@ -5250,7 +5498,7 @@ "integrity": "sha512-0aP01LLIskjKs3lq52EC0aGBAJhLq7B2Rd8HC/DR/PtNNpcLilNmHC12O+hu0usQpo7wtHNRqtrhBwtDb0+dNg==", "dev": true, "requires": { - "has-flag": "^3.0.0" + "has-flag": "3.0.0" } } } @@ -5261,7 +5509,7 @@ "integrity": "sha512-u06FUSulCJ+Y8a2ftuqZN6kIGqdP2yJjUPEngXqmdPND4UQfb04igcotH+dw+IFr417yP6muCLE8/5/Qlfnx0w==", "dev": true, "requires": { - "tslib": "^1.8.1" + "tslib": "1.9.0" } }, "tunnel-agent": { @@ -5269,7 +5517,7 @@ "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "requires": { - "safe-buffer": "^5.0.1" + "safe-buffer": "5.1.1" } }, "tweetnacl": { @@ -5291,9 +5539,9 @@ "dev": true }, "typescript": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.7.2.tgz", - "integrity": "sha512-p5TCYZDAO0m4G344hD+wx/LATebLWZNkkh2asWUFqSsD2OrDNhbAHuSjobrmsUmdzjJjEeZVU9g1h3O6vpstnw==", + "version": "2.9.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-2.9.2.tgz", + "integrity": "sha512-Gr4p6nFNaoufRIY4NMdpQRNmgxVIGMs4Fcu/ujdYk3nAZqk7supzBE9idmvfZIlH/Cuj//dvi+019qEue9lV0w==", "dev": true }, "typescript-require": { @@ -5302,7 +5550,7 @@ "integrity": "sha1-ZiTBr5HXbyVhPQ9cZn0gQ6bs7cQ=", "dev": true, "requires": { - "typescript": ">= 0.8.2" + "typescript": "2.9.2" } }, "uglify-js": { @@ -5312,8 +5560,8 @@ "dev": true, "optional": true, "requires": { - "commander": "~2.20.0", - "source-map": "~0.6.1" + "commander": "2.20.0", + "source-map": "0.6.1" }, "dependencies": { "commander": { @@ -5344,15 +5592,15 @@ "integrity": "sha512-71WxIzDkgYk9ZS+spIB8iZXchFhAdEo2YU8xYqBYJ39DIUIqziK78ftm26eecoIY49X0J2MLhG4hr18Yp6/CMA==", "dev": true, "requires": { - "arr-flatten": "^1.0.1", - "arr-map": "^2.0.0", - "bach": "^1.0.0", - "collection-map": "^1.0.0", - "es6-weak-map": "^2.0.1", - "last-run": "^1.1.0", - "object.defaults": "^1.0.0", - "object.reduce": "^1.0.0", - "undertaker-registry": "^1.0.0" + "arr-flatten": "1.1.0", + "arr-map": "2.0.2", + "bach": "1.2.0", + "collection-map": "1.0.0", + "es6-weak-map": "2.0.2", + "last-run": "1.1.1", + "object.defaults": "1.1.0", + "object.reduce": "1.0.1", + "undertaker-registry": "1.0.1" } }, "undertaker-registry": { @@ -5367,10 +5615,10 @@ "integrity": "sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg==", "dev": true, "requires": { - "arr-union": "^3.1.0", - "get-value": "^2.0.6", - "is-extendable": "^0.1.1", - "set-value": "^2.0.1" + "arr-union": "3.1.0", + "get-value": "2.0.6", + "is-extendable": "0.1.1", + "set-value": "2.0.1" } }, "unique-stream": { @@ -5379,8 +5627,8 @@ "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==", "dev": true, "requires": { - "json-stable-stringify-without-jsonify": "^1.0.1", - "through2-filter": "^3.0.0" + "json-stable-stringify-without-jsonify": "1.0.1", + "through2-filter": "3.0.0" } }, "unset-value": { @@ -5389,8 +5637,8 @@ "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", "dev": true, "requires": { - "has-value": "^0.3.1", - "isobject": "^3.0.0" + "has-value": "0.3.1", + "isobject": "3.0.1" }, "dependencies": { "has-value": { @@ -5399,9 +5647,9 @@ "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", "dev": true, "requires": { - "get-value": "^2.0.3", - "has-values": "^0.1.4", - "isobject": "^2.0.0" + "get-value": "2.0.6", + "has-values": "0.1.4", + "isobject": "2.1.0" }, "dependencies": { "isobject": { @@ -5434,7 +5682,7 @@ "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "requires": { - "punycode": "^2.1.0" + "punycode": "2.1.1" }, "dependencies": { "punycode": { @@ -5495,7 +5743,7 @@ "integrity": "sha512-amh9CCg3ZxkzQ48Mhcb8iX7xpAfYJgePHxWMQCBWECpOSqJUXgY26ncA61UTV0BkPqfhcy6mzwCIoP4ygxpW8w==", "dev": true, "requires": { - "homedir-polyfill": "^1.0.1" + "homedir-polyfill": "1.0.3" } }, "validate-npm-package-license": { @@ -5504,8 +5752,8 @@ "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", "dev": true, "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" + "spdx-correct": "3.1.0", + "spdx-expression-parse": "3.0.0" } }, "value-or-function": { @@ -5519,9 +5767,9 @@ "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "requires": { - "assert-plus": "^1.0.0", + "assert-plus": "1.0.0", "core-util-is": "1.0.2", - "extsprintf": "^1.2.0" + "extsprintf": "1.3.0" } }, "vinyl": { @@ -5530,12 +5778,12 @@ "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", "dev": true, "requires": { - "clone": "^2.1.1", - "clone-buffer": "^1.0.0", - "clone-stats": "^1.0.0", - "cloneable-readable": "^1.0.0", - "remove-trailing-separator": "^1.0.1", - "replace-ext": "^1.0.0" + "clone": "2.1.2", + "clone-buffer": "1.0.0", + "clone-stats": "1.0.0", + "cloneable-readable": "1.1.2", + "remove-trailing-separator": "1.1.0", + "replace-ext": "1.0.0" } }, "vinyl-fs": { @@ -5544,23 +5792,23 @@ "integrity": "sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==", "dev": true, "requires": { - "fs-mkdirp-stream": "^1.0.0", - "glob-stream": "^6.1.0", - "graceful-fs": "^4.0.0", - "is-valid-glob": "^1.0.0", - "lazystream": "^1.0.0", - "lead": "^1.0.0", - "object.assign": "^4.0.4", - "pumpify": "^1.3.5", - "readable-stream": "^2.3.3", - "remove-bom-buffer": "^3.0.0", - "remove-bom-stream": "^1.2.0", - "resolve-options": "^1.1.0", - "through2": "^2.0.0", - "to-through": "^2.0.0", - "value-or-function": "^3.0.0", - "vinyl": "^2.0.0", - "vinyl-sourcemap": "^1.1.0" + "fs-mkdirp-stream": "1.0.0", + "glob-stream": "6.1.0", + "graceful-fs": "4.1.15", + "is-valid-glob": "1.0.0", + "lazystream": "1.0.0", + "lead": "1.0.0", + "object.assign": "4.1.0", + "pumpify": "1.5.1", + "readable-stream": "2.3.6", + "remove-bom-buffer": "3.0.0", + "remove-bom-stream": "1.2.0", + "resolve-options": "1.1.0", + "through2": "2.0.5", + "to-through": "2.0.0", + "value-or-function": "3.0.0", + "vinyl": "2.2.0", + "vinyl-sourcemap": "1.1.0" } }, "vinyl-sourcemap": { @@ -5569,13 +5817,13 @@ "integrity": "sha1-kqgAWTo4cDqM2xHYswCtS+Y7PhY=", "dev": true, "requires": { - "append-buffer": "^1.0.2", - "convert-source-map": "^1.5.0", - "graceful-fs": "^4.1.6", - "normalize-path": "^2.1.1", - "now-and-later": "^2.0.0", - "remove-bom-buffer": "^3.0.0", - "vinyl": "^2.0.0" + "append-buffer": "1.0.2", + "convert-source-map": "1.6.0", + "graceful-fs": "4.1.15", + "normalize-path": "2.1.1", + "now-and-later": "2.0.1", + "remove-bom-buffer": "3.0.0", + "vinyl": "2.2.0" } }, "which": { @@ -5584,7 +5832,7 @@ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, "requires": { - "isexe": "^2.0.0" + "isexe": "2.0.0" } }, "which-module": { @@ -5605,8 +5853,8 @@ "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "dev": true, "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1" + "string-width": "1.0.2", + "strip-ansi": "3.0.1" } }, "wrappy": { @@ -5621,9 +5869,9 @@ "integrity": "sha512-GaETH5wwsX+GcnzhPgKcKjJ6M2Cq3/iZp1WyY/X1CSqrW+jVNM9Y7D8EC2sM4ZG/V8wZlSniJnCKWPmBYAucRQ==", "dev": true, "requires": { - "graceful-fs": "^4.1.11", - "imurmurhash": "^0.1.4", - "signal-exit": "^3.0.2" + "graceful-fs": "4.1.15", + "imurmurhash": "0.1.4", + "signal-exit": "3.0.2" } }, "ws": { @@ -5631,7 +5879,7 @@ "resolved": "https://registry.npmjs.org/ws/-/ws-5.2.0.tgz", "integrity": "sha512-c18dMeW+PEQdDFzkhDsnBAlS4Z8KGStBQQUcQ5mf7Nf689jyGk0594L+i9RaQuf4gog6SvWLJorz2NfSaqxZ7w==", "requires": { - "async-limiter": "~1.0.0" + "async-limiter": "1.0.0" } }, "xtend": { @@ -5658,19 +5906,19 @@ "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", "dev": true, "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^5.0.0" + "camelcase": "3.0.0", + "cliui": "3.2.0", + "decamelize": "1.2.0", + "get-caller-file": "1.0.3", + "os-locale": "1.4.0", + "read-pkg-up": "1.0.1", + "require-directory": "2.1.1", + "require-main-filename": "1.0.1", + "set-blocking": "2.0.0", + "string-width": "1.0.2", + "which-module": "1.0.0", + "y18n": "3.2.1", + "yargs-parser": "5.0.0" } }, "yargs-parser": { @@ -5679,7 +5927,7 @@ "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", "dev": true, "requires": { - "camelcase": "^3.0.0" + "camelcase": "3.0.0" } }, "yn": { diff --git a/package.json b/package.json index 10be886a6e..9e02d5ac84 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "ts-mockito": "^2.2.7", "ts-node": "^5.0.1", "tslint": "^5.8.0", - "typescript": "^2.5.3", + "typescript": "^2.9.2", "typescript-require": "^0.2.9-1" }, "dependencies": { @@ -62,6 +62,7 @@ "js-sha256": "^0.9.0", "js-sha3": "^0.8.0", "long": "^4.0.0", + "nem2-sdk-openapi-typescript-node-client": "0.7.2-0.1", "request": "^2.88.0", "request-promise-native": "^1.0.5", "ripemd160": "^2.0.2", diff --git a/src/infrastructure/AccountHttp.ts b/src/infrastructure/AccountHttp.ts index 467eca76c2..7b639c2e16 100644 --- a/src/infrastructure/AccountHttp.ts +++ b/src/infrastructure/AccountHttp.ts @@ -15,37 +15,34 @@ */ import { ClientResponse } from 'http'; -import {from as observableFrom, Observable, throwError} from 'rxjs'; -import {catchError, map, mergeMap} from 'rxjs/operators'; -import { DtoMapping } from '../core/utils/DtoMapping'; -import {AccountInfo} from '../model/account/AccountInfo'; +import { from as observableFrom, Observable, throwError } from 'rxjs'; +import { catchError, map, mergeMap } from 'rxjs/operators'; +import { AccountInfo } from '../model/account/AccountInfo'; import { AccountNames } from '../model/account/AccountNames'; import { ActivityBucket } from '../model/account/ActivityBucket'; -import {Address} from '../model/account/Address'; -import {MultisigAccountGraphInfo} from '../model/account/MultisigAccountGraphInfo'; -import {MultisigAccountInfo} from '../model/account/MultisigAccountInfo'; -import {PublicAccount} from '../model/account/PublicAccount'; -import {Mosaic} from '../model/mosaic/Mosaic'; -import {MosaicId} from '../model/mosaic/MosaicId'; +import { Address } from '../model/account/Address'; +import { MultisigAccountGraphInfo } from '../model/account/MultisigAccountGraphInfo'; +import { MultisigAccountInfo } from '../model/account/MultisigAccountInfo'; +import { PublicAccount } from '../model/account/PublicAccount'; +import { Mosaic } from '../model/mosaic/Mosaic'; +import { MosaicId } from '../model/mosaic/MosaicId'; import { NamespaceId } from '../model/namespace/NamespaceId'; import { NamespaceName } from '../model/namespace/NamespaceName'; -import { AccountRestrictionsInfo } from '../model/restriction/AccountRestrictionsInfo'; -import {AggregateTransaction} from '../model/transaction/AggregateTransaction'; -import {Transaction} from '../model/transaction/Transaction'; +import { AggregateTransaction } from '../model/transaction/AggregateTransaction'; +import { Transaction } from '../model/transaction/Transaction'; import { UInt64 } from '../model/UInt64'; -import {AccountRepository} from './AccountRepository'; -import { AccountInfoDTO, - AccountNamesDTO, - AccountRestrictionsInfoDTO, - AccountRoutesApi, - MosaicDTO, - MultisigAccountGraphInfoDTO, - MultisigAccountInfoDTO, - TransactionInfoDTO } from './api'; -import {Http} from './Http'; -import {NetworkHttp} from './NetworkHttp'; -import {QueryParams} from './QueryParams'; -import {CreateTransactionFromDTO} from './transaction/CreateTransactionFromDTO'; +import { AccountRepository } from './AccountRepository'; +import { + AccountInfoDTO, + AccountRoutesApi, + MultisigAccountGraphInfoDTO, + MultisigAccountInfoDTO, + TransactionInfoDTO +} from 'nem2-sdk-openapi-typescript-node-client'; +import { Http } from './Http'; +import { NetworkHttp } from './NetworkHttp'; +import { QueryParams } from './QueryParams'; +import { CreateTransactionFromDTO } from './transaction/CreateTransactionFromDTO'; /** * Account http repository. diff --git a/src/infrastructure/BlockHttp.ts b/src/infrastructure/BlockHttp.ts index c01b14a7c6..7203b41b9d 100644 --- a/src/infrastructure/BlockHttp.ts +++ b/src/infrastructure/BlockHttp.ts @@ -15,26 +15,31 @@ */ import { ClientResponse } from 'http'; -import {from as observableFrom, Observable, throwError} from 'rxjs'; -import {catchError, map, mergeMap} from 'rxjs/operators'; -import {PublicAccount} from '../model/account/PublicAccount'; -import {BlockInfo} from '../model/blockchain/BlockInfo'; +import { from as observableFrom, Observable, throwError } from 'rxjs'; +import { catchError, map, mergeMap } from 'rxjs/operators'; +import { PublicAccount } from '../model/account/PublicAccount'; +import { BlockInfo } from '../model/blockchain/BlockInfo'; import { MerklePathItem } from '../model/blockchain/MerklePathItem'; import { MerkleProofInfo } from '../model/blockchain/MerkleProofInfo'; import { Statement } from '../model/receipt/Statement'; -import {Transaction} from '../model/transaction/Transaction'; -import {UInt64} from '../model/UInt64'; -import { BlockInfoDTO, - BlockRoutesApi, - MerkleProofInfoDTO, - StatementsDTO, - TransactionInfoDTO } from './api'; -import {BlockRepository} from './BlockRepository'; -import {Http} from './Http'; +import { Transaction } from '../model/transaction/Transaction'; +import { UInt64 } from '../model/UInt64'; +import { + BlockInfoDTO, + BlockRoutesApi, + MerkleProofInfoDTO, + StatementsDTO, + TransactionInfoDTO +} from 'nem2-sdk-openapi-typescript-node-client'; +import { BlockRepository } from './BlockRepository'; +import { Http } from './Http'; import { NetworkHttp } from './NetworkHttp'; -import {QueryParams} from './QueryParams'; +import { QueryParams } from './QueryParams'; import { CreateStatementFromDTO } from './receipt/CreateReceiptFromDTO'; -import {CreateTransactionFromDTO, extractBeneficiary} from './transaction/CreateTransactionFromDTO'; +import { + CreateTransactionFromDTO, + extractBeneficiary +} from './transaction/CreateTransactionFromDTO'; /** * Blocks returned limits: diff --git a/src/infrastructure/ChainHttp.ts b/src/infrastructure/ChainHttp.ts index a5664a42e6..36d48bcd6e 100644 --- a/src/infrastructure/ChainHttp.ts +++ b/src/infrastructure/ChainHttp.ts @@ -15,15 +15,17 @@ */ import { ClientResponse } from 'http'; -import {from as observableFrom, Observable, throwError} from 'rxjs'; -import {catchError, map} from 'rxjs/operators'; -import {BlockchainScore} from '../model/blockchain/BlockchainScore'; -import {UInt64} from '../model/UInt64'; -import { ChainRoutesApi, - HeightInfoDTO } from './api'; +import { from as observableFrom, Observable, throwError } from 'rxjs'; +import { catchError, map } from 'rxjs/operators'; +import { BlockchainScore } from '../model/blockchain/BlockchainScore'; +import { UInt64 } from '../model/UInt64'; +import { + ChainRoutesApi, + ChainScoreDTO, + HeightInfoDTO +} from 'nem2-sdk-openapi-typescript-node-client'; import { ChainRepository } from './ChainRepository'; -import {Http} from './Http'; -import { ChainScoreDTO } from './model/chainScoreDTO'; +import { Http } from './Http'; /** * Chian http repository. @@ -52,11 +54,11 @@ export class ChainHttp extends Http implements ChainRepository { */ public getBlockchainHeight(): Observable { return observableFrom(this.chainRoutesApi.getBlockchainHeight()).pipe( - map((response: { response: ClientResponse; body: HeightInfoDTO; } ) => { + map((response: { response: ClientResponse; body: HeightInfoDTO; }) => { const heightDTO = response.body; return UInt64.fromNumericString(heightDTO.height); }), - catchError((error) => throwError(this.errorHandling(error))), + catchError((error) => throwError(this.errorHandling(error))), ); } @@ -66,14 +68,14 @@ export class ChainHttp extends Http implements ChainRepository { */ public getChainScore(): Observable { return observableFrom(this.chainRoutesApi.getChainScore()).pipe( - map((response: { response: ClientResponse; body: ChainScoreDTO; } ) => { + map((response: { response: ClientResponse; body: ChainScoreDTO; }) => { const blockchainScoreDTO = response.body; return new BlockchainScore( UInt64.fromNumericString(blockchainScoreDTO.scoreLow), UInt64.fromNumericString(blockchainScoreDTO.scoreHigh), ); }), - catchError((error) => throwError(this.errorHandling(error))), + catchError((error) => throwError(this.errorHandling(error))), ); } } diff --git a/src/infrastructure/DiagnosticHttp.ts b/src/infrastructure/DiagnosticHttp.ts index 0af049602a..950fa59316 100644 --- a/src/infrastructure/DiagnosticHttp.ts +++ b/src/infrastructure/DiagnosticHttp.ts @@ -19,7 +19,7 @@ import {from as observableFrom, Observable, throwError} from 'rxjs'; import {catchError, map} from 'rxjs/operators'; import {BlockchainStorageInfo} from '../model/blockchain/BlockchainStorageInfo'; import { ServerInfo } from '../model/diagnostic/ServerInfo'; -import { DiagnosticRoutesApi, ServerDTO, StorageInfoDTO } from './api'; +import { DiagnosticRoutesApi, ServerDTO, StorageInfoDTO } from 'nem2-sdk-openapi-typescript-node-client'; import {DiagnosticRepository} from './DiagnosticRepository'; import {Http} from './Http'; diff --git a/src/infrastructure/MetadataHttp.ts b/src/infrastructure/MetadataHttp.ts index b0cf337628..666b528a8d 100644 --- a/src/infrastructure/MetadataHttp.ts +++ b/src/infrastructure/MetadataHttp.ts @@ -25,7 +25,7 @@ import { MetadataType } from '../model/metadata/MetadataType'; import {MosaicId} from '../model/mosaic/MosaicId'; import {NamespaceId} from '../model/namespace/NamespaceId'; import {UInt64} from '../model/UInt64'; -import { MetadataDTO, MetadataEntriesDTO, MetadataRoutesApi } from './api'; +import { MetadataDTO, MetadataEntriesDTO, MetadataRoutesApi } from 'nem2-sdk-openapi-typescript-node-client'; import {Http} from './Http'; import { MetadataRepository } from './MetadataRepository'; import {NetworkHttp} from './NetworkHttp'; @@ -243,10 +243,10 @@ export class MetadataHttp extends Http implements MetadataRepository { switch (metadataEntry.metadataType.valueOf()) { case MetadataType.Mosaic: - targetId = new MosaicId(metadataEntry.targetId); + targetId = new MosaicId(metadataEntry.targetId as any); break; case MetadataType.Namespace: - targetId = NamespaceId.createFromEncoded(metadataEntry.targetId); + targetId = NamespaceId.createFromEncoded(metadataEntry.targetId as any); break; default: targetId = undefined; diff --git a/src/infrastructure/MosaicHttp.ts b/src/infrastructure/MosaicHttp.ts index 28eae72a02..a215b09c44 100644 --- a/src/infrastructure/MosaicHttp.ts +++ b/src/infrastructure/MosaicHttp.ts @@ -25,7 +25,7 @@ import { MosaicNames } from '../model/mosaic/MosaicNames'; import {NamespaceId} from '../model/namespace/NamespaceId'; import { NamespaceName } from '../model/namespace/NamespaceName'; import {UInt64} from '../model/UInt64'; -import { MosaicInfoDTO, MosaicNamesDTO, MosaicRoutesApi, MosaicsNamesDTO } from './api'; +import { MosaicInfoDTO, MosaicNamesDTO, MosaicRoutesApi, MosaicsNamesDTO } from 'nem2-sdk-openapi-typescript-node-client'; import {Http} from './Http'; import {MosaicRepository} from './MosaicRepository'; import {NetworkHttp} from './NetworkHttp'; diff --git a/src/infrastructure/NamespaceHttp.ts b/src/infrastructure/NamespaceHttp.ts index 785903f142..13d87c8b8c 100644 --- a/src/infrastructure/NamespaceHttp.ts +++ b/src/infrastructure/NamespaceHttp.ts @@ -29,7 +29,7 @@ import {NamespaceId} from '../model/namespace/NamespaceId'; import {NamespaceInfo} from '../model/namespace/NamespaceInfo'; import {NamespaceName} from '../model/namespace/NamespaceName'; import {UInt64} from '../model/UInt64'; -import { NamespaceInfoDTO, NamespaceNameDTO, NamespaceRoutesApi } from './api'; +import { NamespaceInfoDTO, NamespaceNameDTO, NamespaceRoutesApi } from 'nem2-sdk-openapi-typescript-node-client'; import {Http} from './Http'; import {NamespaceRepository} from './NamespaceRepository'; import {NetworkHttp} from './NetworkHttp'; diff --git a/src/infrastructure/NetworkHttp.ts b/src/infrastructure/NetworkHttp.ts index 243f11236b..81ebb01de4 100644 --- a/src/infrastructure/NetworkHttp.ts +++ b/src/infrastructure/NetworkHttp.ts @@ -14,14 +14,14 @@ * limitations under the License. */ -import { ClientResponse } from 'http'; -import {from as observableFrom, Observable, throwError} from 'rxjs'; -import {catchError, map} from 'rxjs/operators'; -import {NetworkType} from '../model/blockchain/NetworkType'; +import { from as observableFrom, Observable, throwError } from 'rxjs'; +import { catchError, map } from 'rxjs/operators'; +import { NetworkType } from '../model/blockchain/NetworkType'; import { NodeInfo } from '../model/node/NodeInfo'; -import {Http} from './Http'; -import {NetworkRepository} from './NetworkRepository'; -import { NodeHttp } from './NodeHttp'; +import { Http } from './Http'; +import { NetworkRepository } from './NetworkRepository'; +import { NetworkRoutesApi, NetworkTypeNameEnum } from "nem2-sdk-openapi-typescript-node-client"; +import { NetworkTypeDTO } from "nem2-sdk-openapi-typescript-node-client/model/networkTypeDTO"; /** * Network http repository. @@ -31,9 +31,9 @@ import { NodeHttp } from './NodeHttp'; export class NetworkHttp extends Http implements NetworkRepository { /** * @internal - * Nem2 Library account routes api + * Nem2 Library network routes api */ - private nodeHttp: NodeHttp; + private networkRoutesApi: NetworkRoutesApi; /** * Constructor @@ -41,7 +41,7 @@ export class NetworkHttp extends Http implements NetworkRepository { */ constructor(url: string) { super(); - this.nodeHttp = new NodeHttp(url); + this.networkRoutesApi = new NetworkRoutesApi(url); } @@ -51,11 +51,22 @@ export class NetworkHttp extends Http implements NetworkRepository { * @return network type enum. */ public getNetworkType(): Observable { - return observableFrom(this.nodeHttp.getNodeInfo()).pipe( - map(((nodeInfo: NodeInfo) => { - return nodeInfo.networkIdentifier; - }), - catchError((error) => throwError(this.errorHandling(error)))), + return observableFrom(this.networkRoutesApi.getNetworkType()).pipe( + map((({body}) => { + switch (body.name) { + case NetworkTypeNameEnum.Mijin: + return NetworkType.MIJIN; + case NetworkTypeNameEnum.MijinTest: + return NetworkType.MIJIN_TEST; + case NetworkTypeNameEnum.Public: + return NetworkType.MAIN_NET; + case NetworkTypeNameEnum.PublicTest: + return NetworkType.TEST_NET; + default: + throw new Error(`Unknown NetworkType with name ${body.name}`); + } + }), + catchError((error) => throwError(this.errorHandling(error)))), ); } } diff --git a/src/infrastructure/NodeHttp.ts b/src/infrastructure/NodeHttp.ts index 0c7080a327..ad15956d2a 100644 --- a/src/infrastructure/NodeHttp.ts +++ b/src/infrastructure/NodeHttp.ts @@ -15,13 +15,13 @@ */ import { ClientResponse } from 'http'; -import {from as observableFrom, Observable, throwError} from 'rxjs'; -import {catchError, map} from 'rxjs/operators'; +import { from as observableFrom, Observable, throwError } from 'rxjs'; +import { catchError, map } from 'rxjs/operators'; import { NodeInfo } from '../model/node/NodeInfo'; import { NodeTime } from '../model/node/NodeTime'; -import { NodeInfoDTO, NodeRoutesApi, NodeTimeDTO } from './api'; -import {Http} from './Http'; -import {NodeRepository} from './NodeRepository'; +import { NodeInfoDTO, NodeRoutesApi, NodeTimeDTO } from 'nem2-sdk-openapi-typescript-node-client'; +import { Http } from './Http'; +import { NodeRepository } from './NodeRepository'; import { UInt64 } from '../model/UInt64'; /** @@ -52,7 +52,7 @@ export class NodeHttp extends Http implements NodeRepository { */ public getNodeInfo(): Observable { return observableFrom(this.nodeRoutesApi.getNodeInfo()).pipe( - map((response: { response: ClientResponse; body: NodeInfoDTO; } ) => { + map((response: { response: ClientResponse; body: NodeInfoDTO; }) => { const nodeInfoDTO = response.body; return new NodeInfo( nodeInfoDTO.publicKey, @@ -64,7 +64,7 @@ export class NodeHttp extends Http implements NodeRepository { nodeInfoDTO.friendlyName, ); }), - catchError((error) => throwError(this.errorHandling(error))), + catchError((error) => throwError(this.errorHandling(error))), ); } @@ -74,15 +74,15 @@ export class NodeHttp extends Http implements NodeRepository { */ public getNodeTime(): Observable { return observableFrom(this.nodeRoutesApi.getNodeTime()).pipe( - map((response: { response: ClientResponse; body: NodeTimeDTO; } ) => { + map((response: { response: ClientResponse; body: NodeTimeDTO; }) => { const nodeTimeDTO = response.body; if (nodeTimeDTO.communicationTimestamps.sendTimestamp && nodeTimeDTO.communicationTimestamps.receiveTimestamp) { return new NodeTime(UInt64.fromNumericString(nodeTimeDTO.communicationTimestamps.sendTimestamp).toDTO(), - UInt64.fromNumericString(nodeTimeDTO.communicationTimestamps.receiveTimestamp).toDTO()); + UInt64.fromNumericString(nodeTimeDTO.communicationTimestamps.receiveTimestamp).toDTO()); } - throw Error ('Node time not available'); + throw Error('Node time not available'); }), - catchError((error) => throwError(this.errorHandling(error))), + catchError((error) => throwError(this.errorHandling(error))), ); } } diff --git a/src/infrastructure/RestrictionHttp.ts b/src/infrastructure/RestrictionHttp.ts index 88801573a3..4c197c7e15 100644 --- a/src/infrastructure/RestrictionHttp.ts +++ b/src/infrastructure/RestrictionHttp.ts @@ -29,7 +29,7 @@ import { MosaicGlobalRestrictionItem } from '../model/restriction/MosaicGlobalRe import { AccountRestrictionsInfoDTO, MosaicAddressRestrictionDTO, MosaicGlobalRestrictionDTO, - RestrictionRoutesApi } from './api'; + RestrictionRoutesApi } from 'nem2-sdk-openapi-typescript-node-client'; import {Http} from './Http'; import { RestrictionRepository } from './RestrictionRepository'; diff --git a/src/infrastructure/TransactionHttp.ts b/src/infrastructure/TransactionHttp.ts index 3d4612a923..b53d8a8445 100644 --- a/src/infrastructure/TransactionHttp.ts +++ b/src/infrastructure/TransactionHttp.ts @@ -33,7 +33,7 @@ import { AnnounceTransactionInfoDTO, BlockInfoDTO, BlockRoutesApi, TransactionInfoDTO, TransactionRoutesApi, - TransactionStatusDTO } from './api'; + TransactionStatusDTO } from 'nem2-sdk-openapi-typescript-node-client'; import {Http} from './Http'; import {CreateTransactionFromDTO} from './transaction/CreateTransactionFromDTO'; import {TransactionRepository} from './TransactionRepository'; diff --git a/src/infrastructure/api.ts b/src/infrastructure/api.ts deleted file mode 100644 index 590b4eacdd..0000000000 --- a/src/infrastructure/api.ts +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.16 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -// This is the entrypoint for the package -export * from './api/apis'; -export * from './model/models'; \ No newline at end of file diff --git a/src/infrastructure/api/accountRoutesApi.ts b/src/infrastructure/api/accountRoutesApi.ts deleted file mode 100644 index bf064a7840..0000000000 --- a/src/infrastructure/api/accountRoutesApi.ts +++ /dev/null @@ -1,748 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { AccountIds } from '../model/accountIds'; -import { AccountInfoDTO } from '../model/accountInfoDTO'; -import { AccountsNamesDTO } from '../model/accountsNamesDTO'; -import { ModelError } from '../model/modelError'; -import { MultisigAccountGraphInfoDTO } from '../model/multisigAccountGraphInfoDTO'; -import { MultisigAccountInfoDTO } from '../model/multisigAccountInfoDTO'; -import { TransactionInfoDTO } from '../model/transactionInfoDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum AccountRoutesApiApiKeys { -} - -export class AccountRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: AccountRoutesApiApiKeys, value: string) { - (this.authentications as any)[AccountRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Returns the account information. - * @summary Get account information - * @param accountId Account public key or address. - */ - public async getAccountInfo (accountId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: AccountInfoDTO; }> { - const localVarPath = this.basePath + '/account/{accountId}' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getAccountInfo.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: AccountInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "AccountInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the multisig account information. - * @summary Get multisig account information - * @param accountId Account public key or address. - */ - public async getAccountMultisig (accountId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MultisigAccountInfoDTO; }> { - const localVarPath = this.basePath + '/account/{accountId}/multisig' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getAccountMultisig.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MultisigAccountInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MultisigAccountInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the multisig account graph. - * @summary Get multisig account graph information - * @param accountId Account public key or address. - */ - public async getAccountMultisigGraph (accountId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/{accountId}/multisig/graph' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getAccountMultisigGraph.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the account information for an array of accounts. - * @summary Get accounts information - * @param accountIds - */ - public async getAccountsInfo (accountIds?: AccountIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(accountIds, "AccountIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns friendly names for accounts. - * @summary Get readable names for a set of accountIds - * @param accountIds - */ - public async getAccountsNames (accountIds?: AccountIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: AccountsNamesDTO; }> { - const localVarPath = this.basePath + '/account/names'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(accountIds, "AccountIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: AccountsNamesDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "AccountsNamesDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets an array of incoming transactions. A transaction is said to be incoming with respect to an account if the account is the recipient of the transaction. - * @summary Get incoming transactions - * @param accountId Account public key or address. - * @param pageSize Number of transactions to return for each request. - * @param id Transaction identifier up to which transactions are returned. - * @param ordering Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. - */ - public async incomingTransactions (accountId: string, pageSize?: number, id?: string, ordering?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/{accountId}/transactions/incoming' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling incomingTransactions.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - if (ordering !== undefined) { - localVarQueryParameters['ordering'] = ObjectSerializer.serialize(ordering, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets an array of outgoing transactions. A transaction is said to be outgoing with respect to an account if the account is the sender of the transaction. - * @summary Get outgoing transactions - * @param accountId Account public key or address. - * @param pageSize Number of transactions to return for each request. - * @param id Transaction identifier up to which transactions are returned. - * @param ordering Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. - */ - public async outgoingTransactions (accountId: string, pageSize?: number, id?: string, ordering?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/{accountId}/transactions/outgoing' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling outgoingTransactions.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - if (ordering !== undefined) { - localVarQueryParameters['ordering'] = ObjectSerializer.serialize(ordering, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets an array of aggregate bonded transactions where the account is the sender or requires to cosign the transaction. - * @summary Get aggregate bonded transactions information - * @param accountId Account public key or address. - * @param pageSize Number of transactions to return for each request. - * @param id Transaction identifier up to which transactions are returned. - * @param ordering Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. - */ - public async partialTransactions (accountId: string, pageSize?: number, id?: string, ordering?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/{accountId}/transactions/partial' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling partialTransactions.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - if (ordering !== undefined) { - localVarQueryParameters['ordering'] = ObjectSerializer.serialize(ordering, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets an array of transactions for which an account is the sender or receiver. - * @summary Get confirmed transactions - * @param accountId Account public key or address. - * @param pageSize Number of transactions to return for each request. - * @param id Transaction identifier up to which transactions are returned. - * @param ordering Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. - */ - public async transactions (accountId: string, pageSize?: number, id?: string, ordering?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/{accountId}/transactions' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling transactions.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - if (ordering !== undefined) { - localVarQueryParameters['ordering'] = ObjectSerializer.serialize(ordering, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets the array of transactions not included in a block where an account is the sender or receiver. - * @summary Get unconfirmed transactions - * @param accountId Account public key or address. - * @param pageSize Number of transactions to return for each request. - * @param id Transaction identifier up to which transactions are returned. - * @param ordering Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. - */ - public async unconfirmedTransactions (accountId: string, pageSize?: number, id?: string, ordering?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/{accountId}/transactions/unconfirmed' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling unconfirmedTransactions.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - if (ordering !== undefined) { - localVarQueryParameters['ordering'] = ObjectSerializer.serialize(ordering, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/apis.ts b/src/infrastructure/api/apis.ts deleted file mode 100644 index e7f6371f82..0000000000 --- a/src/infrastructure/api/apis.ts +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -export * from './accountRoutesApi'; -import { AccountRoutesApi } from './accountRoutesApi'; -export * from './blockRoutesApi'; -import { BlockRoutesApi } from './blockRoutesApi'; -export * from './chainRoutesApi'; -import { ChainRoutesApi } from './chainRoutesApi'; -export * from './diagnosticRoutesApi'; -import { DiagnosticRoutesApi } from './diagnosticRoutesApi'; -export * from './metadataRoutesApi'; -import { MetadataRoutesApi } from './metadataRoutesApi'; -export * from './mosaicRoutesApi'; -import { MosaicRoutesApi } from './mosaicRoutesApi'; -export * from './namespaceRoutesApi'; -import { NamespaceRoutesApi } from './namespaceRoutesApi'; -export * from './networkRoutesApi'; -import { NetworkRoutesApi } from './networkRoutesApi'; -export * from './nodeRoutesApi'; -import { NodeRoutesApi } from './nodeRoutesApi'; -export * from './restrictionRoutesApi'; -import { RestrictionRoutesApi } from './restrictionRoutesApi'; -export * from './transactionRoutesApi'; -import { TransactionRoutesApi } from './transactionRoutesApi'; -export const APIS = [AccountRoutesApi, BlockRoutesApi, ChainRoutesApi, DiagnosticRoutesApi, MetadataRoutesApi, MosaicRoutesApi, NamespaceRoutesApi, NetworkRoutesApi, NodeRoutesApi, RestrictionRoutesApi, TransactionRoutesApi]; diff --git a/src/infrastructure/api/blockRoutesApi.ts b/src/infrastructure/api/blockRoutesApi.ts deleted file mode 100644 index 89f55b8a4d..0000000000 --- a/src/infrastructure/api/blockRoutesApi.ts +++ /dev/null @@ -1,481 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { BlockInfoDTO } from '../model/blockInfoDTO'; -import { MerkleProofInfoDTO } from '../model/merkleProofInfoDTO'; -import { ModelError } from '../model/modelError'; -import { StatementsDTO } from '../model/statementsDTO'; -import { TransactionInfoDTO } from '../model/transactionInfoDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum BlockRoutesApiApiKeys { -} - -export class BlockRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: BlockRoutesApiApiKeys, value: string) { - (this.authentications as any)[BlockRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Gets a block from the chain that has the given height. - * @summary Get block information - * @param height Block height. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. - */ - public async getBlockByHeight (height: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: BlockInfoDTO; }> { - const localVarPath = this.basePath + '/block/{height}' - .replace('{' + 'height' + '}', encodeURIComponent(String(height))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'height' is not null or undefined - if (height === null || height === undefined) { - throw new Error('Required parameter height was null or undefined when calling getBlockByHeight.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: BlockInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "BlockInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the receipts linked to a block. - * @summary Get receipts from a block - * @param height Block height. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. - */ - public async getBlockReceipts (height: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: StatementsDTO; }> { - const localVarPath = this.basePath + '/block/{height}/receipts' - .replace('{' + 'height' + '}', encodeURIComponent(String(height))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'height' is not null or undefined - if (height === null || height === undefined) { - throw new Error('Required parameter height was null or undefined when calling getBlockReceipts.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: StatementsDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "StatementsDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns an array of transactions included in a block for a given block height. - * @summary Get transactions from a block - * @param height Block height. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. - * @param pageSize Number of transactions to return for each request. - * @param id Transaction identifier up to which transactions are returned. - * @param ordering Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. - */ - public async getBlockTransactions (height: number, pageSize?: number, id?: string, ordering?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/block/{height}/transactions' - .replace('{' + 'height' + '}', encodeURIComponent(String(height))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'height' is not null or undefined - if (height === null || height === undefined) { - throw new Error('Required parameter height was null or undefined when calling getBlockTransactions.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - if (ordering !== undefined) { - localVarQueryParameters['ordering'] = ObjectSerializer.serialize(ordering, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets up to limit number of blocks after given block height. - * @summary Get blocks information - * @param height Block height. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. - * @param limit Number of elements to be returned. - */ - public async getBlocksByHeightWithLimit (height: number, limit: 25 | 50 | 75 | 100, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/blocks/{height}/limit/{limit}' - .replace('{' + 'height' + '}', encodeURIComponent(String(height))) - .replace('{' + 'limit' + '}', encodeURIComponent(String(limit))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'height' is not null or undefined - if (height === null || height === undefined) { - throw new Error('Required parameter height was null or undefined when calling getBlocksByHeightWithLimit.'); - } - - // verify required parameter 'limit' is not null or undefined - if (limit === null || limit === undefined) { - throw new Error('Required parameter limit was null or undefined when calling getBlocksByHeightWithLimit.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the merkle path for a receipt statement or resolution linked to a block. The path is the complementary data needed to calculate the merkle root. A client can compare if the calculated root equals the one recorded in the block header, verifying that the receipt was linked with the block. - * @summary Get the merkle path for a given a receipt statement hash and block - * @param height Block height. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. - * @param hash Receipt hash. - */ - public async getMerkleReceipts (height: number, hash: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MerkleProofInfoDTO; }> { - const localVarPath = this.basePath + '/block/{height}/receipt/{hash}/merkle' - .replace('{' + 'height' + '}', encodeURIComponent(String(height))) - .replace('{' + 'hash' + '}', encodeURIComponent(String(hash))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'height' is not null or undefined - if (height === null || height === undefined) { - throw new Error('Required parameter height was null or undefined when calling getMerkleReceipts.'); - } - - // verify required parameter 'hash' is not null or undefined - if (hash === null || hash === undefined) { - throw new Error('Required parameter hash was null or undefined when calling getMerkleReceipts.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MerkleProofInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MerkleProofInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the merkle path for a transaction included in a block. The path is the complementary data needed to calculate the merkle root. A client can compare if the calculated root equals the one recorded in the block header, verifying that the transaction was included in the block. - * @summary Get the merkle path for a given a transaction and block - * @param height Block height. If height -1 is not a multiple of the limit provided, the inferior closest multiple + 1 is used instead. - * @param hash Transaction hash. - */ - public async getMerkleTransaction (height: number, hash: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MerkleProofInfoDTO; }> { - const localVarPath = this.basePath + '/block/{height}/transaction/{hash}/merkle' - .replace('{' + 'height' + '}', encodeURIComponent(String(height))) - .replace('{' + 'hash' + '}', encodeURIComponent(String(hash))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'height' is not null or undefined - if (height === null || height === undefined) { - throw new Error('Required parameter height was null or undefined when calling getMerkleTransaction.'); - } - - // verify required parameter 'hash' is not null or undefined - if (hash === null || hash === undefined) { - throw new Error('Required parameter hash was null or undefined when calling getMerkleTransaction.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MerkleProofInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MerkleProofInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/chainRoutesApi.ts b/src/infrastructure/api/chainRoutesApi.ts deleted file mode 100644 index a80a978a67..0000000000 --- a/src/infrastructure/api/chainRoutesApi.ts +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { ChainScoreDTO } from '../model/chainScoreDTO'; -import { HeightInfoDTO } from '../model/heightInfoDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum ChainRoutesApiApiKeys { -} - -export class ChainRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: ChainRoutesApiApiKeys, value: string) { - (this.authentications as any)[ChainRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Returns the current height of the blockchain. - * @summary Get the current height of the chain - */ - public async getBlockchainHeight (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: HeightInfoDTO; }> { - const localVarPath = this.basePath + '/chain/height'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: HeightInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "HeightInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets the current score of the blockchain. The higher the score, the better the chain. During synchronization, nodes try to get the best blockchain in the network. The score for a block is derived from its difficulty and the time (in seconds) that has elapsed since the last block: block score = difficulty − time elapsed since last block - * @summary Get the current score of the chain - */ - public async getChainScore (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: ChainScoreDTO; }> { - const localVarPath = this.basePath + '/chain/score'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: ChainScoreDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "ChainScoreDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/diagnosticRoutesApi.ts b/src/infrastructure/api/diagnosticRoutesApi.ts deleted file mode 100644 index 45cc06fe2d..0000000000 --- a/src/infrastructure/api/diagnosticRoutesApi.ts +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { ServerDTO } from '../model/serverDTO'; -import { StorageInfoDTO } from '../model/storageInfoDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum DiagnosticRoutesApiApiKeys { -} - -export class DiagnosticRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: DiagnosticRoutesApiApiKeys, value: string) { - (this.authentications as any)[DiagnosticRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Returns diagnostic information about the node storage. - * @summary Get the storage information of the node - */ - public async getDiagnosticStorage (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: StorageInfoDTO; }> { - const localVarPath = this.basePath + '/diagnostic/storage'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: StorageInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "StorageInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the version of the running catapult-rest component. - * @summary Get the version of the running rest component - */ - public async getServerInfo (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: ServerDTO; }> { - const localVarPath = this.basePath + '/diagnostic/server'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: ServerDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "ServerDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/metadataRoutesApi.ts b/src/infrastructure/api/metadataRoutesApi.ts deleted file mode 100644 index 39b8937699..0000000000 --- a/src/infrastructure/api/metadataRoutesApi.ts +++ /dev/null @@ -1,727 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { MetadataDTO } from '../model/metadataDTO'; -import { MetadataEntriesDTO } from '../model/metadataEntriesDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MetadataRoutesApiApiKeys { -} - -export class MetadataRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MetadataRoutesApiApiKeys, value: string) { - (this.authentications as any)[MetadataRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Returns the account metadata given an account id. - * @summary Get account metadata - * @param accountId Account public key or address. - * @param pageSize Number of transactions to return for each request. - * @param id Metadata identifier up to which metadata are returned. - * @param ordering Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. - */ - public async getAccountMetadata (accountId: string, pageSize?: number, id?: string, ordering?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }> { - const localVarPath = this.basePath + '/metadata/account/{accountId}' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getAccountMetadata.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - if (ordering !== undefined) { - localVarQueryParameters['ordering'] = ObjectSerializer.serialize(ordering, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MetadataEntriesDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the account metadata given an account id and a key - * @summary Get account metadata - * @param accountId Account public key or address. - * @param key Metadata key. - */ - public async getAccountMetadataByKey (accountId: string, key: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }> { - const localVarPath = this.basePath + '/metadata/account/{accountId}/key/{key}' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))) - .replace('{' + 'key' + '}', encodeURIComponent(String(key))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getAccountMetadataByKey.'); - } - - // verify required parameter 'key' is not null or undefined - if (key === null || key === undefined) { - throw new Error('Required parameter key was null or undefined when calling getAccountMetadataByKey.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MetadataEntriesDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the account metadata given an account id, a key, and a sender - * @summary Get account metadata - * @param accountId Account public key or address. - * @param key Metadata key. - * @param publicKey Account public key - */ - public async getAccountMetadataByKeyAndSender (accountId: string, key: string, publicKey: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MetadataDTO; }> { - const localVarPath = this.basePath + '/metadata/account/{accountId}/key/{key}/sender/{publicKey}' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))) - .replace('{' + 'key' + '}', encodeURIComponent(String(key))) - .replace('{' + 'publicKey' + '}', encodeURIComponent(String(publicKey))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getAccountMetadataByKeyAndSender.'); - } - - // verify required parameter 'key' is not null or undefined - if (key === null || key === undefined) { - throw new Error('Required parameter key was null or undefined when calling getAccountMetadataByKeyAndSender.'); - } - - // verify required parameter 'publicKey' is not null or undefined - if (publicKey === null || publicKey === undefined) { - throw new Error('Required parameter publicKey was null or undefined when calling getAccountMetadataByKeyAndSender.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MetadataDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MetadataDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the mosaic metadata given a mosaic id. - * @summary Get mosaic metadata - * @param mosaicId Mosaic identifier. - * @param pageSize Number of transactions to return for each request. - * @param id Metadata identifier up to which metadata are returned. - * @param ordering Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. - */ - public async getMosaicMetadata (mosaicId: string, pageSize?: number, id?: string, ordering?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }> { - const localVarPath = this.basePath + '/metadata/mosaic/{mosaicId}' - .replace('{' + 'mosaicId' + '}', encodeURIComponent(String(mosaicId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicId' is not null or undefined - if (mosaicId === null || mosaicId === undefined) { - throw new Error('Required parameter mosaicId was null or undefined when calling getMosaicMetadata.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - if (ordering !== undefined) { - localVarQueryParameters['ordering'] = ObjectSerializer.serialize(ordering, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MetadataEntriesDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the mosaic metadata given a mosaic id and a key - * @summary Get mosaic metadata - * @param mosaicId Mosaic identifier. - * @param key Metadata key. - */ - public async getMosaicMetadataByKey (mosaicId: string, key: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }> { - const localVarPath = this.basePath + '/metadata/mosaic/{mosaicId}/key/{key}' - .replace('{' + 'mosaicId' + '}', encodeURIComponent(String(mosaicId))) - .replace('{' + 'key' + '}', encodeURIComponent(String(key))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicId' is not null or undefined - if (mosaicId === null || mosaicId === undefined) { - throw new Error('Required parameter mosaicId was null or undefined when calling getMosaicMetadataByKey.'); - } - - // verify required parameter 'key' is not null or undefined - if (key === null || key === undefined) { - throw new Error('Required parameter key was null or undefined when calling getMosaicMetadataByKey.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MetadataEntriesDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the mosaic metadata given a mosaic id, a key, and a sender - * @summary Get mosaic metadata - * @param mosaicId Mosaic identifier. - * @param key Metadata key. - * @param publicKey Account public key - */ - public async getMosaicMetadataByKeyAndSender (mosaicId: string, key: string, publicKey: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MetadataDTO; }> { - const localVarPath = this.basePath + '/metadata/mosaic/{mosaicId}/key/{key}/sender/{publicKey}' - .replace('{' + 'mosaicId' + '}', encodeURIComponent(String(mosaicId))) - .replace('{' + 'key' + '}', encodeURIComponent(String(key))) - .replace('{' + 'publicKey' + '}', encodeURIComponent(String(publicKey))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicId' is not null or undefined - if (mosaicId === null || mosaicId === undefined) { - throw new Error('Required parameter mosaicId was null or undefined when calling getMosaicMetadataByKeyAndSender.'); - } - - // verify required parameter 'key' is not null or undefined - if (key === null || key === undefined) { - throw new Error('Required parameter key was null or undefined when calling getMosaicMetadataByKeyAndSender.'); - } - - // verify required parameter 'publicKey' is not null or undefined - if (publicKey === null || publicKey === undefined) { - throw new Error('Required parameter publicKey was null or undefined when calling getMosaicMetadataByKeyAndSender.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MetadataDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MetadataDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the namespace metadata given a namespace id. - * @summary Get namespace metadata - * @param namespaceId Namespace identifier. - * @param pageSize Number of transactions to return for each request. - * @param id Metadata identifier up to which metadata are returned. - * @param ordering Ordering criteria: * -id - Descending order by id. * id - Ascending order by id. - */ - public async getNamespaceMetadata (namespaceId: string, pageSize?: number, id?: string, ordering?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }> { - const localVarPath = this.basePath + '/metadata/namespace/{namespaceId}' - .replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'namespaceId' is not null or undefined - if (namespaceId === null || namespaceId === undefined) { - throw new Error('Required parameter namespaceId was null or undefined when calling getNamespaceMetadata.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - if (ordering !== undefined) { - localVarQueryParameters['ordering'] = ObjectSerializer.serialize(ordering, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MetadataEntriesDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the namespace metadata given a namespace id and a key - * @summary Get namespace metadata - * @param namespaceId Namespace identifier. - * @param key Metadata key. - */ - public async getNamespaceMetadataByKey (namespaceId: string, key: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }> { - const localVarPath = this.basePath + '/metadata/namespace/{namespaceId}/key/{key}' - .replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId))) - .replace('{' + 'key' + '}', encodeURIComponent(String(key))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'namespaceId' is not null or undefined - if (namespaceId === null || namespaceId === undefined) { - throw new Error('Required parameter namespaceId was null or undefined when calling getNamespaceMetadataByKey.'); - } - - // verify required parameter 'key' is not null or undefined - if (key === null || key === undefined) { - throw new Error('Required parameter key was null or undefined when calling getNamespaceMetadataByKey.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MetadataEntriesDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MetadataEntriesDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the namespace metadata given a namespace id, a key, and a sender - * @summary Get namespace metadata - * @param namespaceId Namespace identifier. - * @param key Metadata key. - * @param publicKey Account public key - */ - public async getNamespaceMetadataByKeyAndSender (namespaceId: string, key: string, publicKey: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MetadataDTO; }> { - const localVarPath = this.basePath + '/metadata/namespace/{namespaceId}/key/{key}/sender/{publicKey}' - .replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId))) - .replace('{' + 'key' + '}', encodeURIComponent(String(key))) - .replace('{' + 'publicKey' + '}', encodeURIComponent(String(publicKey))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'namespaceId' is not null or undefined - if (namespaceId === null || namespaceId === undefined) { - throw new Error('Required parameter namespaceId was null or undefined when calling getNamespaceMetadataByKeyAndSender.'); - } - - // verify required parameter 'key' is not null or undefined - if (key === null || key === undefined) { - throw new Error('Required parameter key was null or undefined when calling getNamespaceMetadataByKeyAndSender.'); - } - - // verify required parameter 'publicKey' is not null or undefined - if (publicKey === null || publicKey === undefined) { - throw new Error('Required parameter publicKey was null or undefined when calling getNamespaceMetadataByKeyAndSender.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MetadataDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MetadataDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/mosaicRoutesApi.ts b/src/infrastructure/api/mosaicRoutesApi.ts deleted file mode 100644 index e4ea723372..0000000000 --- a/src/infrastructure/api/mosaicRoutesApi.ts +++ /dev/null @@ -1,391 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { AccountIds } from '../model/accountIds'; -import { ModelError } from '../model/modelError'; -import { MosaicIds } from '../model/mosaicIds'; -import { MosaicInfoDTO } from '../model/mosaicInfoDTO'; -import { MosaicsNamesDTO } from '../model/mosaicsNamesDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum MosaicRoutesApiApiKeys { -} - -export class MosaicRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: MosaicRoutesApiApiKeys, value: string) { - (this.authentications as any)[MosaicRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Gets the mosaic definition for a given mosaic identifier. - * @summary Get mosaic information - * @param mosaicId Mosaic identifier. - */ - public async getMosaic (mosaicId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MosaicInfoDTO; }> { - const localVarPath = this.basePath + '/mosaic/{mosaicId}' - .replace('{' + 'mosaicId' + '}', encodeURIComponent(String(mosaicId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicId' is not null or undefined - if (mosaicId === null || mosaicId === undefined) { - throw new Error('Required parameter mosaicId was null or undefined when calling getMosaic.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MosaicInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MosaicInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets an array of mosaic definition. - * @summary Get mosaics information for an array of mosaics - * @param mosaicIds - */ - public async getMosaics (mosaicIds: MosaicIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/mosaic'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicIds' is not null or undefined - if (mosaicIds === null || mosaicIds === undefined) { - throw new Error('Required parameter mosaicIds was null or undefined when calling getMosaics.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(mosaicIds, "MosaicIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets an array of mosaics created for a given account address. - * @summary Get mosaics created by an account - * @param accountId Account public key or address. - * @param pageSize Number of transactions to return for each request. - * @param id Mosaic identifier up to which transactions are returned. - */ - public async getMosaicsFromAccount (accountId: string, pageSize?: number, id?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/{accountId}/mosaics' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getMosaicsFromAccount.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets mosaics created for a given array of addresses. - * @summary Get mosaics created for given array of addresses - * @param accountIds - */ - public async getMosaicsFromAccounts (accountIds?: AccountIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/mosaics'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(accountIds, "AccountIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns friendly names for mosaics. - * @summary Get readable names for a set of mosaics - * @param mosaicIds - */ - public async getMosaicsNames (mosaicIds: MosaicIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MosaicsNamesDTO; }> { - const localVarPath = this.basePath + '/mosaic/names'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicIds' is not null or undefined - if (mosaicIds === null || mosaicIds === undefined) { - throw new Error('Required parameter mosaicIds was null or undefined when calling getMosaicsNames.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(mosaicIds, "MosaicIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MosaicsNamesDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MosaicsNamesDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/namespaceRoutesApi.ts b/src/infrastructure/api/namespaceRoutesApi.ts deleted file mode 100644 index d1419b0adc..0000000000 --- a/src/infrastructure/api/namespaceRoutesApi.ts +++ /dev/null @@ -1,332 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { AccountIds } from '../model/accountIds'; -import { ModelError } from '../model/modelError'; -import { NamespaceIds } from '../model/namespaceIds'; -import { NamespaceInfoDTO } from '../model/namespaceInfoDTO'; -import { NamespaceNameDTO } from '../model/namespaceNameDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum NamespaceRoutesApiApiKeys { -} - -export class NamespaceRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: NamespaceRoutesApiApiKeys, value: string) { - (this.authentications as any)[NamespaceRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Gets the namespace for a given namespace identifier. - * @summary Get namespace information - * @param namespaceId Namespace identifier. - */ - public async getNamespace (namespaceId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: NamespaceInfoDTO; }> { - const localVarPath = this.basePath + '/namespace/{namespaceId}' - .replace('{' + 'namespaceId' + '}', encodeURIComponent(String(namespaceId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'namespaceId' is not null or undefined - if (namespaceId === null || namespaceId === undefined) { - throw new Error('Required parameter namespaceId was null or undefined when calling getNamespace.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: NamespaceInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "NamespaceInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets an array of namespaces for a given account address. - * @summary Get namespaces owned by an account - * @param accountId Account public key or address. - * @param pageSize Number of transactions to return for each request. - * @param id Namespace identifier up to which transactions are returned. - */ - public async getNamespacesFromAccount (accountId: string, pageSize?: number, id?: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/{accountId}/namespaces' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getNamespacesFromAccount.'); - } - - if (pageSize !== undefined) { - localVarQueryParameters['pageSize'] = ObjectSerializer.serialize(pageSize, "number"); - } - - if (id !== undefined) { - localVarQueryParameters['id'] = ObjectSerializer.serialize(id, "string"); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets namespaces for a given array of addresses. - * @summary Get namespaces for given array of addresses - * @param accountIds - */ - public async getNamespacesFromAccounts (accountIds?: AccountIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/account/namespaces'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(accountIds, "AccountIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns friendly names for namespaces. - * @summary Get readable names for a set of namespaces - * @param namespaceIds - */ - public async getNamespacesNames (namespaceIds: NamespaceIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/namespace/names'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'namespaceIds' is not null or undefined - if (namespaceIds === null || namespaceIds === undefined) { - throw new Error('Required parameter namespaceIds was null or undefined when calling getNamespacesNames.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(namespaceIds, "NamespaceIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/networkRoutesApi.ts b/src/infrastructure/api/networkRoutesApi.ts deleted file mode 100644 index 9c75f2014c..0000000000 --- a/src/infrastructure/api/networkRoutesApi.ts +++ /dev/null @@ -1,139 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { NetworkTypeDTO } from '../model/networkTypeDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum NetworkRoutesApiApiKeys { -} - -export class NetworkRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: NetworkRoutesApiApiKeys, value: string) { - (this.authentications as any)[NetworkRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Returns the current network type. - * @summary Get the current network type of the chain - */ - public async getNetworkType (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: NetworkTypeDTO; }> { - const localVarPath = this.basePath + '/network'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: NetworkTypeDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "NetworkTypeDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/nodeRoutesApi.ts b/src/infrastructure/api/nodeRoutesApi.ts deleted file mode 100644 index bd3502da65..0000000000 --- a/src/infrastructure/api/nodeRoutesApi.ts +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { NodeInfoDTO } from '../model/nodeInfoDTO'; -import { NodeTimeDTO } from '../model/nodeTimeDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum NodeRoutesApiApiKeys { -} - -export class NodeRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: NodeRoutesApiApiKeys, value: string) { - (this.authentications as any)[NodeRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Supplies additional information about the application running on a node. - * @summary Get the node information - */ - public async getNodeInfo (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: NodeInfoDTO; }> { - const localVarPath = this.basePath + '/node/info'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: NodeInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "NodeInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Gets the node time at the moment the reply was sent and received. - * @summary Get the node time - */ - public async getNodeTime (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: NodeTimeDTO; }> { - const localVarPath = this.basePath + '/node/time'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: NodeTimeDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "NodeTimeDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/restrictionRoutesApi.ts b/src/infrastructure/api/restrictionRoutesApi.ts deleted file mode 100644 index f2e82f3adf..0000000000 --- a/src/infrastructure/api/restrictionRoutesApi.ts +++ /dev/null @@ -1,450 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { AccountIds } from '../model/accountIds'; -import { AccountRestrictionsInfoDTO } from '../model/accountRestrictionsInfoDTO'; -import { ModelError } from '../model/modelError'; -import { MosaicAddressRestrictionDTO } from '../model/mosaicAddressRestrictionDTO'; -import { MosaicGlobalRestrictionDTO } from '../model/mosaicGlobalRestrictionDTO'; -import { MosaicIds } from '../model/mosaicIds'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum RestrictionRoutesApiApiKeys { -} - -export class RestrictionRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: RestrictionRoutesApiApiKeys, value: string) { - (this.authentications as any)[RestrictionRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Returns the account restrictions for a given account. - * @summary Get the account restrictions - * @param accountId Account public key or address. - */ - public async getAccountRestrictions (accountId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: AccountRestrictionsInfoDTO; }> { - const localVarPath = this.basePath + '/restrictions/account/{accountId}' - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getAccountRestrictions.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: AccountRestrictionsInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "AccountRestrictionsInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the account restrictions for a given array of addresses. - * @summary Get account restrictions for given array of addresses - * @param accountIds - */ - public async getAccountRestrictionsFromAccounts (accountIds?: AccountIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/restrictions/account'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(accountIds, "AccountIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Get mosaic address restriction. - * @summary Get mosaic address restrictions for a given mosaic and account identifier. - * @param mosaicId Mosaic identifier. - * @param accountId Account public key or address. - */ - public async getMosaicAddressRestriction (mosaicId: string, accountId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MosaicAddressRestrictionDTO; }> { - const localVarPath = this.basePath + '/restrictions/mosaic/{mosaicId}/address/{accountId}' - .replace('{' + 'mosaicId' + '}', encodeURIComponent(String(mosaicId))) - .replace('{' + 'accountId' + '}', encodeURIComponent(String(accountId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicId' is not null or undefined - if (mosaicId === null || mosaicId === undefined) { - throw new Error('Required parameter mosaicId was null or undefined when calling getMosaicAddressRestriction.'); - } - - // verify required parameter 'accountId' is not null or undefined - if (accountId === null || accountId === undefined) { - throw new Error('Required parameter accountId was null or undefined when calling getMosaicAddressRestriction.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MosaicAddressRestrictionDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MosaicAddressRestrictionDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Get mosaic address restrictions. - * @summary Get mosaic address restrictions for a given mosaic and account identifiers array. - * @param mosaicId Mosaic identifier. - * @param accountIds - */ - public async getMosaicAddressRestrictions (mosaicId: string, accountIds?: AccountIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/restrictions/mosaic/{mosaicId}' - .replace('{' + 'mosaicId' + '}', encodeURIComponent(String(mosaicId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicId' is not null or undefined - if (mosaicId === null || mosaicId === undefined) { - throw new Error('Required parameter mosaicId was null or undefined when calling getMosaicAddressRestrictions.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(accountIds, "AccountIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Get mosaic global restriction. - * @summary Get mosaic global restriction for a given mosaic identifier. - * @param mosaicId Mosaic identifier. - */ - public async getMosaicGlobalRestriction (mosaicId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: MosaicGlobalRestrictionDTO; }> { - const localVarPath = this.basePath + '/restrictions/mosaic/{mosaicId}' - .replace('{' + 'mosaicId' + '}', encodeURIComponent(String(mosaicId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicId' is not null or undefined - if (mosaicId === null || mosaicId === undefined) { - throw new Error('Required parameter mosaicId was null or undefined when calling getMosaicGlobalRestriction.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: MosaicGlobalRestrictionDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "MosaicGlobalRestrictionDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Get mosaic global restrictions. - * @summary Get mosaic global restrictions for an array of mosaics. - * @param mosaicIds - */ - public async getMosaicGlobalRestrictions (mosaicIds: MosaicIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/restrictions/mosaic'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'mosaicIds' is not null or undefined - if (mosaicIds === null || mosaicIds === undefined) { - throw new Error('Required parameter mosaicIds was null or undefined when calling getMosaicGlobalRestrictions.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(mosaicIds, "MosaicIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/api/transactionRoutesApi.ts b/src/infrastructure/api/transactionRoutesApi.ts deleted file mode 100644 index 0a9a15a058..0000000000 --- a/src/infrastructure/api/transactionRoutesApi.ts +++ /dev/null @@ -1,507 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import localVarRequest = require('request'); -import http = require('http'); - -/* tslint:disable:no-unused-locals */ -import { AnnounceTransactionInfoDTO } from '../model/announceTransactionInfoDTO'; -import { Cosignature } from '../model/cosignature'; -import { ModelError } from '../model/modelError'; -import { TransactionHashes } from '../model/transactionHashes'; -import { TransactionIds } from '../model/transactionIds'; -import { TransactionInfoDTO } from '../model/transactionInfoDTO'; -import { TransactionPayload } from '../model/transactionPayload'; -import { TransactionStatusDTO } from '../model/transactionStatusDTO'; - -import { ObjectSerializer, Authentication, VoidAuth } from '../model/models'; - -let defaultBasePath = 'http://localhost:3000'; - -// =============================================== -// This file is autogenerated - Please do not edit -// =============================================== - -export enum TransactionRoutesApiApiKeys { -} - -export class TransactionRoutesApi { - protected _basePath = defaultBasePath; - protected defaultHeaders : any = {}; - protected _useQuerystring : boolean = false; - - protected authentications = { - 'default': new VoidAuth(), - } - - constructor(basePath?: string); - constructor(basePathOrUsername: string, password?: string, basePath?: string) { - if (password) { - if (basePath) { - this.basePath = basePath; - } - } else { - if (basePathOrUsername) { - this.basePath = basePathOrUsername - } - } - } - - set useQuerystring(value: boolean) { - this._useQuerystring = value; - } - - set basePath(basePath: string) { - this._basePath = basePath; - } - - get basePath() { - return this._basePath; - } - - public setDefaultAuthentication(auth: Authentication) { - this.authentications.default = auth; - } - - public setApiKey(key: TransactionRoutesApiApiKeys, value: string) { - (this.authentications as any)[TransactionRoutesApiApiKeys[key]].apiKey = value; - } - - /** - * Announces a cosignature transaction to the network. - * @summary Announce a cosignature transaction - * @param cosignature - */ - public async announceCosignatureTransaction (cosignature: Cosignature, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: AnnounceTransactionInfoDTO; }> { - const localVarPath = this.basePath + '/transaction/cosignature'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'cosignature' is not null or undefined - if (cosignature === null || cosignature === undefined) { - throw new Error('Required parameter cosignature was null or undefined when calling announceCosignatureTransaction.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'PUT', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(cosignature, "Cosignature") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: AnnounceTransactionInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "AnnounceTransactionInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Announces an aggregate bonded transaction to the network. - * @summary Announce an aggregate bonded transaction - * @param transactionPayload - */ - public async announcePartialTransaction (transactionPayload: TransactionPayload, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: AnnounceTransactionInfoDTO; }> { - const localVarPath = this.basePath + '/transaction/partial'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'transactionPayload' is not null or undefined - if (transactionPayload === null || transactionPayload === undefined) { - throw new Error('Required parameter transactionPayload was null or undefined when calling announcePartialTransaction.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'PUT', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(transactionPayload, "TransactionPayload") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: AnnounceTransactionInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "AnnounceTransactionInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Announces a transaction to the network. We recommended to use the NEM2-SDK to announce transactions as they should be serialized. - * @summary Announce a new transaction - * @param transactionPayload - */ - public async announceTransaction (transactionPayload: TransactionPayload, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: AnnounceTransactionInfoDTO; }> { - const localVarPath = this.basePath + '/transaction'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'transactionPayload' is not null or undefined - if (transactionPayload === null || transactionPayload === undefined) { - throw new Error('Required parameter transactionPayload was null or undefined when calling announceTransaction.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'PUT', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(transactionPayload, "TransactionPayload") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: AnnounceTransactionInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "AnnounceTransactionInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns transaction information given a transactionId or hash. - * @summary Get transaction information - * @param transactionId Transaction identifier or hash. - */ - public async getTransaction (transactionId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: TransactionInfoDTO; }> { - const localVarPath = this.basePath + '/transaction/{transactionId}' - .replace('{' + 'transactionId' + '}', encodeURIComponent(String(transactionId))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'transactionId' is not null or undefined - if (transactionId === null || transactionId === undefined) { - throw new Error('Required parameter transactionId was null or undefined when calling getTransaction.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: TransactionInfoDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "TransactionInfoDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns the transaction status for a given hash. - * @summary Get transaction status - * @param hash Transaction hash. - */ - public async getTransactionStatus (hash: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: TransactionStatusDTO; }> { - const localVarPath = this.basePath + '/transaction/{hash}/status' - .replace('{' + 'hash' + '}', encodeURIComponent(String(hash))); - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'hash' is not null or undefined - if (hash === null || hash === undefined) { - throw new Error('Required parameter hash was null or undefined when calling getTransactionStatus.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'GET', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: TransactionStatusDTO; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "TransactionStatusDTO"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns transactions information for a given array of transactionIds. - * @summary Get transactions information - * @param transactionIds - */ - public async getTransactions (transactionIds: TransactionIds, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/transaction'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'transactionIds' is not null or undefined - if (transactionIds === null || transactionIds === undefined) { - throw new Error('Required parameter transactionIds was null or undefined when calling getTransactions.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(transactionIds, "TransactionIds") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } - /** - * Returns an array of transaction statuses for a given array of transaction hashes. - * @summary Get transactions status - * @param transactionHashes - */ - public async getTransactionsStatuses (transactionHashes: TransactionHashes, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ response: http.ClientResponse; body: Array; }> { - const localVarPath = this.basePath + '/transaction/statuses'; - let localVarQueryParameters: any = {}; - let localVarHeaderParams: any = (Object).assign({}, this.defaultHeaders); - let localVarFormParams: any = {}; - - // verify required parameter 'transactionHashes' is not null or undefined - if (transactionHashes === null || transactionHashes === undefined) { - throw new Error('Required parameter transactionHashes was null or undefined when calling getTransactionsStatuses.'); - } - - (Object).assign(localVarHeaderParams, options.headers); - - let localVarUseFormData = false; - - let localVarRequestOptions: localVarRequest.Options = { - method: 'POST', - qs: localVarQueryParameters, - headers: localVarHeaderParams, - uri: localVarPath, - useQuerystring: this._useQuerystring, - json: true, - body: ObjectSerializer.serialize(transactionHashes, "TransactionHashes") - }; - - let authenticationPromise = Promise.resolve(); - authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions)); - return authenticationPromise.then(() => { - if (Object.keys(localVarFormParams).length) { - if (localVarUseFormData) { - (localVarRequestOptions).formData = localVarFormParams; - } else { - localVarRequestOptions.form = localVarFormParams; - } - } - return new Promise<{ response: http.ClientResponse; body: Array; }>((resolve, reject) => { - localVarRequest(localVarRequestOptions, (error, response, body) => { - if (error) { - reject(error); - } else { - body = ObjectSerializer.deserialize(body, "Array"); - if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { - resolve({ response: response, body: body }); - } else { - reject({ response: { - statusCode: response.statusCode, - statusMessage: response.statusMessage, - }, body: response.body }); - } - } - }); - }); - }); - } -} diff --git a/src/infrastructure/model/accountAddressRestrictionModificationDTO.ts b/src/infrastructure/model/accountAddressRestrictionModificationDTO.ts deleted file mode 100644 index 49778df63c..0000000000 --- a/src/infrastructure/model/accountAddressRestrictionModificationDTO.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountRestrictionModificationActionEnum } from './accountRestrictionModificationActionEnum'; - -export class AccountAddressRestrictionModificationDTO { - 'modificationAction': AccountRestrictionModificationActionEnum; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "modificationAction", - "baseName": "modificationAction", - "type": "AccountRestrictionModificationActionEnum" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AccountAddressRestrictionModificationDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountAddressRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/accountAddressRestrictionTransactionBodyDTO.ts deleted file mode 100644 index b0a0335185..0000000000 --- a/src/infrastructure/model/accountAddressRestrictionTransactionBodyDTO.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountAddressRestrictionModificationDTO } from './accountAddressRestrictionModificationDTO'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; - -export class AccountAddressRestrictionTransactionBodyDTO { - 'restrictionType': AccountRestrictionTypeEnum; - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountAddressRestrictionTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountAddressRestrictionTransactionDTO.ts b/src/infrastructure/model/accountAddressRestrictionTransactionDTO.ts deleted file mode 100644 index 3ac642f172..0000000000 --- a/src/infrastructure/model/accountAddressRestrictionTransactionDTO.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountAddressRestrictionModificationDTO } from './accountAddressRestrictionModificationDTO'; -import { AccountAddressRestrictionTransactionBodyDTO } from './accountAddressRestrictionTransactionBodyDTO'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to prevent incoming and outgoing transactions for a given a set of addresses. -*/ -export class AccountAddressRestrictionTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'restrictionType': AccountRestrictionTypeEnum; - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountAddressRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountDTO.ts b/src/infrastructure/model/accountDTO.ts deleted file mode 100644 index da98d36999..0000000000 --- a/src/infrastructure/model/accountDTO.ts +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountTypeEnum } from './accountTypeEnum'; -import { ActivityBucketDTO } from './activityBucketDTO'; -import { Mosaic } from './mosaic'; - -export class AccountDTO { - /** - * Decoded address. - */ - 'address': string; - /** - * Height of the blockchain. - */ - 'addressHeight': string; - 'publicKey': string; - /** - * Height of the blockchain. - */ - 'publicKeyHeight': string; - 'accountType': AccountTypeEnum; - 'linkedAccountKey': string; - 'activityBuckets': Array; - /** - * Mosaic units owned. The amount is represented in absolute amount. Thus a balance of 123456789 for a mosaic with divisibility 6 (absolute) means the account owns 123.456789. - */ - 'mosaics': Array; - /** - * Probability of an account to harvest the next block. - */ - 'importance': string; - /** - * Height of the blockchain. - */ - 'importanceHeight': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "address", - "baseName": "address", - "type": "string" - }, - { - "name": "addressHeight", - "baseName": "addressHeight", - "type": "string" - }, - { - "name": "publicKey", - "baseName": "publicKey", - "type": "string" - }, - { - "name": "publicKeyHeight", - "baseName": "publicKeyHeight", - "type": "string" - }, - { - "name": "accountType", - "baseName": "accountType", - "type": "AccountTypeEnum" - }, - { - "name": "linkedAccountKey", - "baseName": "linkedAccountKey", - "type": "string" - }, - { - "name": "activityBuckets", - "baseName": "activityBuckets", - "type": "Array" - }, - { - "name": "mosaics", - "baseName": "mosaics", - "type": "Array" - }, - { - "name": "importance", - "baseName": "importance", - "type": "string" - }, - { - "name": "importanceHeight", - "baseName": "importanceHeight", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AccountDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountIds.ts b/src/infrastructure/model/accountIds.ts deleted file mode 100644 index 370f46fa31..0000000000 --- a/src/infrastructure/model/accountIds.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class AccountIds { - /** - * Array of public keys. - */ - 'publicKeys'?: Array; - /** - * Array of addresses. - */ - 'addresses'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "publicKeys", - "baseName": "publicKeys", - "type": "Array" - }, - { - "name": "addresses", - "baseName": "addresses", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountIds.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountInfoDTO.ts b/src/infrastructure/model/accountInfoDTO.ts deleted file mode 100644 index 503c28436a..0000000000 --- a/src/infrastructure/model/accountInfoDTO.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountDTO } from './accountDTO'; - -export class AccountInfoDTO { - 'account': AccountDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "account", - "baseName": "account", - "type": "AccountDTO" - } ]; - - static getAttributeTypeMap() { - return AccountInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountLinkActionEnum.ts b/src/infrastructure/model/accountLinkActionEnum.ts deleted file mode 100644 index 5cfa176ce9..0000000000 --- a/src/infrastructure/model/accountLinkActionEnum.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of action: * 0 - Unlink. * 1 - Link. -*/ -export enum AccountLinkActionEnum { - NUMBER_0 = 0, - NUMBER_1 = 1 -} diff --git a/src/infrastructure/model/accountLinkTransactionBodyDTO.ts b/src/infrastructure/model/accountLinkTransactionBodyDTO.ts deleted file mode 100644 index 915d285a14..0000000000 --- a/src/infrastructure/model/accountLinkTransactionBodyDTO.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountLinkActionEnum } from './accountLinkActionEnum'; - -export class AccountLinkTransactionBodyDTO { - 'remotePublicKey': string; - 'linkAction': AccountLinkActionEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "remotePublicKey", - "baseName": "remotePublicKey", - "type": "string" - }, - { - "name": "linkAction", - "baseName": "linkAction", - "type": "AccountLinkActionEnum" - } ]; - - static getAttributeTypeMap() { - return AccountLinkTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountLinkTransactionDTO.ts b/src/infrastructure/model/accountLinkTransactionDTO.ts deleted file mode 100644 index 1f21f0e4b9..0000000000 --- a/src/infrastructure/model/accountLinkTransactionDTO.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountLinkActionEnum } from './accountLinkActionEnum'; -import { AccountLinkTransactionBodyDTO } from './accountLinkTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Delegates the account importance score to a proxy account. -*/ -export class AccountLinkTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'remotePublicKey': string; - 'linkAction': AccountLinkActionEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "remotePublicKey", - "baseName": "remotePublicKey", - "type": "string" - }, - { - "name": "linkAction", - "baseName": "linkAction", - "type": "AccountLinkActionEnum" - } ]; - - static getAttributeTypeMap() { - return AccountLinkTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountMetadataTransactionBodyDTO.ts b/src/infrastructure/model/accountMetadataTransactionBodyDTO.ts deleted file mode 100644 index 00a3ad3bea..0000000000 --- a/src/infrastructure/model/accountMetadataTransactionBodyDTO.ts +++ /dev/null @@ -1,81 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class AccountMetadataTransactionBodyDTO { - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AccountMetadataTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountMetadataTransactionDTO.ts b/src/infrastructure/model/accountMetadataTransactionDTO.ts deleted file mode 100644 index 073d4b69b1..0000000000 --- a/src/infrastructure/model/accountMetadataTransactionDTO.ts +++ /dev/null @@ -1,134 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountMetadataTransactionBodyDTO } from './accountMetadataTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to create or modify a multisig account. -*/ -export class AccountMetadataTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AccountMetadataTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountMosaicRestrictionModificationDTO.ts b/src/infrastructure/model/accountMosaicRestrictionModificationDTO.ts deleted file mode 100644 index 31bbb90a84..0000000000 --- a/src/infrastructure/model/accountMosaicRestrictionModificationDTO.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountRestrictionModificationActionEnum } from './accountRestrictionModificationActionEnum'; - -export class AccountMosaicRestrictionModificationDTO { - 'modificationAction': AccountRestrictionModificationActionEnum; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "modificationAction", - "baseName": "modificationAction", - "type": "AccountRestrictionModificationActionEnum" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AccountMosaicRestrictionModificationDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountMosaicRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/accountMosaicRestrictionTransactionBodyDTO.ts deleted file mode 100644 index c1ad286d39..0000000000 --- a/src/infrastructure/model/accountMosaicRestrictionTransactionBodyDTO.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountMosaicRestrictionModificationDTO } from './accountMosaicRestrictionModificationDTO'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; - -export class AccountMosaicRestrictionTransactionBodyDTO { - 'restrictionType': AccountRestrictionTypeEnum; - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountMosaicRestrictionTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountMosaicRestrictionTransactionDTO.ts b/src/infrastructure/model/accountMosaicRestrictionTransactionDTO.ts deleted file mode 100644 index 722eea9c4b..0000000000 --- a/src/infrastructure/model/accountMosaicRestrictionTransactionDTO.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountMosaicRestrictionModificationDTO } from './accountMosaicRestrictionModificationDTO'; -import { AccountMosaicRestrictionTransactionBodyDTO } from './accountMosaicRestrictionTransactionBodyDTO'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to prevent incoming transactions containing a given set of mosaics. -*/ -export class AccountMosaicRestrictionTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'restrictionType': AccountRestrictionTypeEnum; - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountMosaicRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountNamesDTO.ts b/src/infrastructure/model/accountNamesDTO.ts deleted file mode 100644 index 91bd0c5f97..0000000000 --- a/src/infrastructure/model/accountNamesDTO.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class AccountNamesDTO { - /** - * Decoded address. - */ - 'address': string; - /** - * Account linked namespace names. - */ - 'names': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "address", - "baseName": "address", - "type": "string" - }, - { - "name": "names", - "baseName": "names", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountNamesDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountOperationRestrictionModificationDTO.ts b/src/infrastructure/model/accountOperationRestrictionModificationDTO.ts deleted file mode 100644 index 66b4d82388..0000000000 --- a/src/infrastructure/model/accountOperationRestrictionModificationDTO.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountRestrictionModificationActionEnum } from './accountRestrictionModificationActionEnum'; -import { TransactionTypeEnum } from './transactionTypeEnum'; - -export class AccountOperationRestrictionModificationDTO { - 'modificationAction': AccountRestrictionModificationActionEnum; - 'value': TransactionTypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "modificationAction", - "baseName": "modificationAction", - "type": "AccountRestrictionModificationActionEnum" - }, - { - "name": "value", - "baseName": "value", - "type": "TransactionTypeEnum" - } ]; - - static getAttributeTypeMap() { - return AccountOperationRestrictionModificationDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountOperationRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/accountOperationRestrictionTransactionBodyDTO.ts deleted file mode 100644 index 3b599045ce..0000000000 --- a/src/infrastructure/model/accountOperationRestrictionTransactionBodyDTO.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountOperationRestrictionModificationDTO } from './accountOperationRestrictionModificationDTO'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; - -export class AccountOperationRestrictionTransactionBodyDTO { - 'restrictionType': AccountRestrictionTypeEnum; - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountOperationRestrictionTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountOperationRestrictionTransactionDTO.ts b/src/infrastructure/model/accountOperationRestrictionTransactionDTO.ts deleted file mode 100644 index 2487495569..0000000000 --- a/src/infrastructure/model/accountOperationRestrictionTransactionDTO.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountOperationRestrictionModificationDTO } from './accountOperationRestrictionModificationDTO'; -import { AccountOperationRestrictionTransactionBodyDTO } from './accountOperationRestrictionTransactionBodyDTO'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to prevent outgoing transactions by transaction type. -*/ -export class AccountOperationRestrictionTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'restrictionType': AccountRestrictionTypeEnum; - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountOperationRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountRestrictionDTO.ts b/src/infrastructure/model/accountRestrictionDTO.ts deleted file mode 100644 index 5b0f4ced11..0000000000 --- a/src/infrastructure/model/accountRestrictionDTO.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; - -export class AccountRestrictionDTO { - 'restrictionType': AccountRestrictionTypeEnum; - /** - * Address, transaction type, or mosaic id to restrict. - */ - 'values': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "values", - "baseName": "values", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountRestrictionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountRestrictionModificationActionEnum.ts b/src/infrastructure/model/accountRestrictionModificationActionEnum.ts deleted file mode 100644 index b2c406ace6..0000000000 --- a/src/infrastructure/model/accountRestrictionModificationActionEnum.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of action: * 0 - Remove property. * 1 - Add property. -*/ -export enum AccountRestrictionModificationActionEnum { - NUMBER_0 = 0, - NUMBER_1 = 1 -} diff --git a/src/infrastructure/model/accountRestrictionTypeEnum.ts b/src/infrastructure/model/accountRestrictionTypeEnum.ts deleted file mode 100644 index 27de75c291..0000000000 --- a/src/infrastructure/model/accountRestrictionTypeEnum.ts +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of account restriction: * 0x01 (1 decimal) - Allow only incoming transactions from a given address. * 0x02 (2 decimal) - Allow only incoming transactions containing a given mosaic identifier. * 0x05 (5 decimal) - Account restriction sentinel. * 0x41 (65 decimal) - Allow only outgoing transactions to a given address. * 0x44 (68 decimal) - Allow only outgoing transactions with a given transaction type. * 0x81 (129 decimal) - Block incoming transactions from a given address. * 0x82 (130 decimal) - Block incoming transactions containing a given mosaic identifier. * 0xC1 (193 decimal) - Block outgoing transactions to a given address. * 0xC4 (196 decimal) - Block outgoing transactions with a given transaction type. -*/ -export enum AccountRestrictionTypeEnum { - NUMBER_1 = 1, - NUMBER_2 = 2, - NUMBER_5 = 5, - NUMBER_65 = 65, - NUMBER_68 = 68, - NUMBER_129 = 129, - NUMBER_130 = 130, - NUMBER_193 = 193, - NUMBER_196 = 196 -} diff --git a/src/infrastructure/model/accountRestrictionsDTO.ts b/src/infrastructure/model/accountRestrictionsDTO.ts deleted file mode 100644 index cebee66b92..0000000000 --- a/src/infrastructure/model/accountRestrictionsDTO.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountRestrictionDTO } from './accountRestrictionDTO'; - -export class AccountRestrictionsDTO { - /** - * Decoded address. - */ - 'address': string; - 'restrictions': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "address", - "baseName": "address", - "type": "string" - }, - { - "name": "restrictions", - "baseName": "restrictions", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountRestrictionsDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountRestrictionsInfoDTO.ts b/src/infrastructure/model/accountRestrictionsInfoDTO.ts deleted file mode 100644 index 4786953f8e..0000000000 --- a/src/infrastructure/model/accountRestrictionsInfoDTO.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountRestrictionsDTO } from './accountRestrictionsDTO'; - -export class AccountRestrictionsInfoDTO { - 'accountRestrictions': AccountRestrictionsDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "accountRestrictions", - "baseName": "accountRestrictions", - "type": "AccountRestrictionsDTO" - } ]; - - static getAttributeTypeMap() { - return AccountRestrictionsInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/accountTypeEnum.ts b/src/infrastructure/model/accountTypeEnum.ts deleted file mode 100644 index 772dfdcfe0..0000000000 --- a/src/infrastructure/model/accountTypeEnum.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* * 0 - Unlinked. * 1 - Balance-holding account that is linked to a remote harvester account. * 2 - Remote harvester account that is linked to a balance-holding account. * 3 - Remote harvester eligible account that is unlinked. -*/ -export enum AccountTypeEnum { - NUMBER_0 = 0, - NUMBER_1 = 1, - NUMBER_2 = 2, - NUMBER_3 = 3 -} diff --git a/src/infrastructure/model/accountsNamesDTO.ts b/src/infrastructure/model/accountsNamesDTO.ts deleted file mode 100644 index b51a54be81..0000000000 --- a/src/infrastructure/model/accountsNamesDTO.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountNamesDTO } from './accountNamesDTO'; - -export class AccountsNamesDTO { - /** - * Array of account names. - */ - 'accountNames': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "accountNames", - "baseName": "accountNames", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AccountsNamesDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/activityBucketDTO.ts b/src/infrastructure/model/activityBucketDTO.ts deleted file mode 100644 index 0e61d51d4d..0000000000 --- a/src/infrastructure/model/activityBucketDTO.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class ActivityBucketDTO { - /** - * Height of the blockchain. - */ - 'startHeight': string; - 'totalFeesPaid': number; - 'beneficiaryCount': number; - 'rawScore': number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "startHeight", - "baseName": "startHeight", - "type": "string" - }, - { - "name": "totalFeesPaid", - "baseName": "totalFeesPaid", - "type": "number" - }, - { - "name": "beneficiaryCount", - "baseName": "beneficiaryCount", - "type": "number" - }, - { - "name": "rawScore", - "baseName": "rawScore", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return ActivityBucketDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/addressAliasTransactionBodyDTO.ts b/src/infrastructure/model/addressAliasTransactionBodyDTO.ts deleted file mode 100644 index 49b7916c0f..0000000000 --- a/src/infrastructure/model/addressAliasTransactionBodyDTO.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AliasActionEnum } from './aliasActionEnum'; - -export class AddressAliasTransactionBodyDTO { - 'aliasAction': AliasActionEnum; - /** - * Namespace identifier. - */ - 'namespaceId': string; - /** - * Decoded address. - */ - 'address': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "aliasAction", - "baseName": "aliasAction", - "type": "AliasActionEnum" - }, - { - "name": "namespaceId", - "baseName": "namespaceId", - "type": "string" - }, - { - "name": "address", - "baseName": "address", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AddressAliasTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/addressAliasTransactionDTO.ts b/src/infrastructure/model/addressAliasTransactionDTO.ts deleted file mode 100644 index e40b7ec72b..0000000000 --- a/src/infrastructure/model/addressAliasTransactionDTO.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AddressAliasTransactionBodyDTO } from './addressAliasTransactionBodyDTO'; -import { AliasActionEnum } from './aliasActionEnum'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to link a namespace to an account. -*/ -export class AddressAliasTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'aliasAction': AliasActionEnum; - /** - * Namespace identifier. - */ - 'namespaceId': string; - /** - * Decoded address. - */ - 'address': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "aliasAction", - "baseName": "aliasAction", - "type": "AliasActionEnum" - }, - { - "name": "namespaceId", - "baseName": "namespaceId", - "type": "string" - }, - { - "name": "address", - "baseName": "address", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AddressAliasTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/aggregateBondedTransactionDTO.ts b/src/infrastructure/model/aggregateBondedTransactionDTO.ts deleted file mode 100644 index 30c78cdb3f..0000000000 --- a/src/infrastructure/model/aggregateBondedTransactionDTO.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AggregateTransactionBodyDTO } from './aggregateTransactionBodyDTO'; -import { CosignatureDTO } from './cosignatureDTO'; -import { EmbeddedTransactionInfoDTO } from './embeddedTransactionInfoDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to combine multiple transactions together. -*/ -export class AggregateBondedTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Array of transaction cosignatures. - */ - 'cosignatures': Array; - /** - * Array of transactions initiated by different accounts. - */ - 'transactions': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "cosignatures", - "baseName": "cosignatures", - "type": "Array" - }, - { - "name": "transactions", - "baseName": "transactions", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AggregateBondedTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/aggregateCompleteTransactionDTO.ts b/src/infrastructure/model/aggregateCompleteTransactionDTO.ts deleted file mode 100644 index bceed87b8a..0000000000 --- a/src/infrastructure/model/aggregateCompleteTransactionDTO.ts +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AggregateTransactionBodyDTO } from './aggregateTransactionBodyDTO'; -import { CosignatureDTO } from './cosignatureDTO'; -import { EmbeddedTransactionInfoDTO } from './embeddedTransactionInfoDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to combine multiple transactions together. -*/ -export class AggregateCompleteTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Array of transaction cosignatures. - */ - 'cosignatures': Array; - /** - * Array of transactions initiated by different accounts. - */ - 'transactions': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "cosignatures", - "baseName": "cosignatures", - "type": "Array" - }, - { - "name": "transactions", - "baseName": "transactions", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AggregateCompleteTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/aggregateTransactionBodyDTO.ts b/src/infrastructure/model/aggregateTransactionBodyDTO.ts deleted file mode 100644 index cd93384b2e..0000000000 --- a/src/infrastructure/model/aggregateTransactionBodyDTO.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { CosignatureDTO } from './cosignatureDTO'; -import { EmbeddedTransactionInfoDTO } from './embeddedTransactionInfoDTO'; - -export class AggregateTransactionBodyDTO { - /** - * Array of transaction cosignatures. - */ - 'cosignatures': Array; - /** - * Array of transactions initiated by different accounts. - */ - 'transactions': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "cosignatures", - "baseName": "cosignatures", - "type": "Array" - }, - { - "name": "transactions", - "baseName": "transactions", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return AggregateTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/aliasActionEnum.ts b/src/infrastructure/model/aliasActionEnum.ts deleted file mode 100644 index 647d36ca1c..0000000000 --- a/src/infrastructure/model/aliasActionEnum.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Alias action: * 0 - Unlink alias. * 1 - Link alias. -*/ -export enum AliasActionEnum { - NUMBER_0 = 0, - NUMBER_1 = 1 -} diff --git a/src/infrastructure/model/aliasDTO.ts b/src/infrastructure/model/aliasDTO.ts deleted file mode 100644 index 90f22f609b..0000000000 --- a/src/infrastructure/model/aliasDTO.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AliasTypeEnum } from './aliasTypeEnum'; - -export class AliasDTO { - 'type': AliasTypeEnum; - /** - * Mosaic identifier. - */ - 'mosaicId'?: string; - /** - * Decoded address. - */ - 'address'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "AliasTypeEnum" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "address", - "baseName": "address", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AliasDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/aliasTypeEnum.ts b/src/infrastructure/model/aliasTypeEnum.ts deleted file mode 100644 index 034e9386ba..0000000000 --- a/src/infrastructure/model/aliasTypeEnum.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of alias: * 0 - No alias. * 1 - Mosaic id alias. * 2 - Addres alias. -*/ -export enum AliasTypeEnum { - NUMBER_0 = 0, - NUMBER_1 = 1, - NUMBER_2 = 2 -} diff --git a/src/infrastructure/model/announceTransactionInfoDTO.ts b/src/infrastructure/model/announceTransactionInfoDTO.ts deleted file mode 100644 index f1b627b7a0..0000000000 --- a/src/infrastructure/model/announceTransactionInfoDTO.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class AnnounceTransactionInfoDTO { - 'message': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "message", - "baseName": "message", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return AnnounceTransactionInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/artifactExpiryReceiptDTO.ts b/src/infrastructure/model/artifactExpiryReceiptDTO.ts deleted file mode 100644 index ed9a4fd5b0..0000000000 --- a/src/infrastructure/model/artifactExpiryReceiptDTO.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { ReceiptDTO } from './receiptDTO'; -import { ReceiptTypeEnum } from './receiptTypeEnum'; - -/** -* An artifact namespace or mosaic expired. -*/ -export class ArtifactExpiryReceiptDTO { - /** - * Version of the receipt. - */ - 'version': number; - 'type': ReceiptTypeEnum; - 'artifactId': any; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "ReceiptTypeEnum" - }, - { - "name": "artifactId", - "baseName": "artifactId", - "type": "any" - } ]; - - static getAttributeTypeMap() { - return ArtifactExpiryReceiptDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/artifactExpiryReceiptDTOAllOf.ts b/src/infrastructure/model/artifactExpiryReceiptDTOAllOf.ts deleted file mode 100644 index 43444119dc..0000000000 --- a/src/infrastructure/model/artifactExpiryReceiptDTOAllOf.ts +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -export class ArtifactExpiryReceiptDTOAllOf { - 'artifactId': any; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "artifactId", - "baseName": "artifactId", - "type": "any" - } ]; - - static getAttributeTypeMap() { - return ArtifactExpiryReceiptDTOAllOf.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/balanceChangeReceiptDTO.ts b/src/infrastructure/model/balanceChangeReceiptDTO.ts deleted file mode 100644 index 586d91fb47..0000000000 --- a/src/infrastructure/model/balanceChangeReceiptDTO.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { BalanceChangeReceiptDTOAllOf } from './balanceChangeReceiptDTOAllOf'; -import { ReceiptDTO } from './receiptDTO'; -import { ReceiptTypeEnum } from './receiptTypeEnum'; - -/** -* Invisible state change that changed an account balance. -*/ -export class BalanceChangeReceiptDTO { - /** - * Version of the receipt. - */ - 'version': number; - 'type': ReceiptTypeEnum; - 'targetPublicKey': string; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "ReceiptTypeEnum" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return BalanceChangeReceiptDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/balanceChangeReceiptDTOAllOf.ts b/src/infrastructure/model/balanceChangeReceiptDTOAllOf.ts deleted file mode 100644 index 3fce0cd54a..0000000000 --- a/src/infrastructure/model/balanceChangeReceiptDTOAllOf.ts +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class BalanceChangeReceiptDTOAllOf { - 'targetPublicKey': string; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return BalanceChangeReceiptDTOAllOf.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/balanceTransferReceiptDTO.ts b/src/infrastructure/model/balanceTransferReceiptDTO.ts deleted file mode 100644 index a7de04c5cc..0000000000 --- a/src/infrastructure/model/balanceTransferReceiptDTO.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { BalanceTransferReceiptDTOAllOf } from './balanceTransferReceiptDTOAllOf'; -import { ReceiptDTO } from './receiptDTO'; -import { ReceiptTypeEnum } from './receiptTypeEnum'; - -/** -* Invisible state change that triggered a mosaic transfer. -*/ -export class BalanceTransferReceiptDTO { - /** - * Version of the receipt. - */ - 'version': number; - 'type': ReceiptTypeEnum; - 'senderPublicKey': string; - /** - * Decoded address. - */ - 'recipientAddress': string; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "ReceiptTypeEnum" - }, - { - "name": "senderPublicKey", - "baseName": "senderPublicKey", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return BalanceTransferReceiptDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/balanceTransferReceiptDTOAllOf.ts b/src/infrastructure/model/balanceTransferReceiptDTOAllOf.ts deleted file mode 100644 index 1255d785e8..0000000000 --- a/src/infrastructure/model/balanceTransferReceiptDTOAllOf.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class BalanceTransferReceiptDTOAllOf { - 'senderPublicKey': string; - /** - * Decoded address. - */ - 'recipientAddress': string; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "senderPublicKey", - "baseName": "senderPublicKey", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return BalanceTransferReceiptDTOAllOf.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/blockDTO.ts b/src/infrastructure/model/blockDTO.ts deleted file mode 100644 index 043bbc9923..0000000000 --- a/src/infrastructure/model/blockDTO.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { BlockDTOAllOf } from './blockDTOAllOf'; -import { EntityDTO } from './entityDTO'; -import { VerifiableEntityDTO } from './verifiableEntityDTO'; - -export class BlockDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Height of the blockchain. - */ - 'height': string; - /** - * Number of seconds elapsed since the creation of the nemesis block. - */ - 'timestamp': string; - /** - * Defines how difficult it will be to harvest next the block, based on previous blocks. - */ - 'difficulty': string; - /** - * Fee multiplier applied to transactions contained in block. - */ - 'feeMultiplier': number; - 'previousBlockHash': string; - 'transactionsHash': string; - 'receiptsHash': string; - 'stateHash': string; - 'beneficiaryPublicKey': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "height", - "baseName": "height", - "type": "string" - }, - { - "name": "timestamp", - "baseName": "timestamp", - "type": "string" - }, - { - "name": "difficulty", - "baseName": "difficulty", - "type": "string" - }, - { - "name": "feeMultiplier", - "baseName": "feeMultiplier", - "type": "number" - }, - { - "name": "previousBlockHash", - "baseName": "previousBlockHash", - "type": "string" - }, - { - "name": "transactionsHash", - "baseName": "transactionsHash", - "type": "string" - }, - { - "name": "receiptsHash", - "baseName": "receiptsHash", - "type": "string" - }, - { - "name": "stateHash", - "baseName": "stateHash", - "type": "string" - }, - { - "name": "beneficiaryPublicKey", - "baseName": "beneficiaryPublicKey", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return BlockDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/blockDTOAllOf.ts b/src/infrastructure/model/blockDTOAllOf.ts deleted file mode 100644 index 2b1d1003b2..0000000000 --- a/src/infrastructure/model/blockDTOAllOf.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class BlockDTOAllOf { - /** - * Height of the blockchain. - */ - 'height': string; - /** - * Number of seconds elapsed since the creation of the nemesis block. - */ - 'timestamp': string; - /** - * Defines how difficult it will be to harvest next the block, based on previous blocks. - */ - 'difficulty': string; - /** - * Fee multiplier applied to transactions contained in block. - */ - 'feeMultiplier': number; - 'previousBlockHash': string; - 'transactionsHash': string; - 'receiptsHash': string; - 'stateHash': string; - 'beneficiaryPublicKey': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "height", - "baseName": "height", - "type": "string" - }, - { - "name": "timestamp", - "baseName": "timestamp", - "type": "string" - }, - { - "name": "difficulty", - "baseName": "difficulty", - "type": "string" - }, - { - "name": "feeMultiplier", - "baseName": "feeMultiplier", - "type": "number" - }, - { - "name": "previousBlockHash", - "baseName": "previousBlockHash", - "type": "string" - }, - { - "name": "transactionsHash", - "baseName": "transactionsHash", - "type": "string" - }, - { - "name": "receiptsHash", - "baseName": "receiptsHash", - "type": "string" - }, - { - "name": "stateHash", - "baseName": "stateHash", - "type": "string" - }, - { - "name": "beneficiaryPublicKey", - "baseName": "beneficiaryPublicKey", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return BlockDTOAllOf.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/blockInfoDTO.ts b/src/infrastructure/model/blockInfoDTO.ts deleted file mode 100644 index 2547bcb2f3..0000000000 --- a/src/infrastructure/model/blockInfoDTO.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { BlockDTO } from './blockDTO'; -import { BlockMetaDTO } from './blockMetaDTO'; - -export class BlockInfoDTO { - 'meta': BlockMetaDTO; - 'block': BlockDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "meta", - "baseName": "meta", - "type": "BlockMetaDTO" - }, - { - "name": "block", - "baseName": "block", - "type": "BlockDTO" - } ]; - - static getAttributeTypeMap() { - return BlockInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/blockMetaDTO.ts b/src/infrastructure/model/blockMetaDTO.ts deleted file mode 100644 index 6cdfdf3e08..0000000000 --- a/src/infrastructure/model/blockMetaDTO.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class BlockMetaDTO { - 'hash': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'totalFee': string; - 'generationHash': string; - 'stateHashSubCacheMerkleRoots': Array; - 'numTransactions': number; - 'numStatements'?: number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "hash", - "baseName": "hash", - "type": "string" - }, - { - "name": "totalFee", - "baseName": "totalFee", - "type": "string" - }, - { - "name": "generationHash", - "baseName": "generationHash", - "type": "string" - }, - { - "name": "stateHashSubCacheMerkleRoots", - "baseName": "stateHashSubCacheMerkleRoots", - "type": "Array" - }, - { - "name": "numTransactions", - "baseName": "numTransactions", - "type": "number" - }, - { - "name": "numStatements", - "baseName": "numStatements", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return BlockMetaDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/chainScoreDTO.ts b/src/infrastructure/model/chainScoreDTO.ts deleted file mode 100644 index 3e1a8e1a66..0000000000 --- a/src/infrastructure/model/chainScoreDTO.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class ChainScoreDTO { - /** - * Score of the blockchain.During synchronization, nodes try to get the blockchain with highest score in the network. - */ - 'scoreHigh': string; - /** - * Score of the blockchain.During synchronization, nodes try to get the blockchain with highest score in the network. - */ - 'scoreLow': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "scoreHigh", - "baseName": "scoreHigh", - "type": "string" - }, - { - "name": "scoreLow", - "baseName": "scoreLow", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ChainScoreDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/communicationTimestampsDTO.ts b/src/infrastructure/model/communicationTimestampsDTO.ts deleted file mode 100644 index c0c6bb5e31..0000000000 --- a/src/infrastructure/model/communicationTimestampsDTO.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class CommunicationTimestampsDTO { - /** - * Number of seconds elapsed since the creation of the nemesis block. - */ - 'sendTimestamp'?: string; - /** - * Number of seconds elapsed since the creation of the nemesis block. - */ - 'receiveTimestamp'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "sendTimestamp", - "baseName": "sendTimestamp", - "type": "string" - }, - { - "name": "receiveTimestamp", - "baseName": "receiveTimestamp", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CommunicationTimestampsDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/cosignatoryModificationActionEnum.ts b/src/infrastructure/model/cosignatoryModificationActionEnum.ts deleted file mode 100644 index 58e076efbb..0000000000 --- a/src/infrastructure/model/cosignatoryModificationActionEnum.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of modification: * 0 - Remove cosignatory. * 1 - Add cosignatory. -*/ -export enum CosignatoryModificationActionEnum { - NUMBER_0 = 0, - NUMBER_1 = 1 -} diff --git a/src/infrastructure/model/cosignatoryModificationDTO.ts b/src/infrastructure/model/cosignatoryModificationDTO.ts deleted file mode 100644 index 5113585756..0000000000 --- a/src/infrastructure/model/cosignatoryModificationDTO.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { CosignatoryModificationActionEnum } from './cosignatoryModificationActionEnum'; - -export class CosignatoryModificationDTO { - 'modificationAction': CosignatoryModificationActionEnum; - 'cosignatoryPublicKey': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "modificationAction", - "baseName": "modificationAction", - "type": "CosignatoryModificationActionEnum" - }, - { - "name": "cosignatoryPublicKey", - "baseName": "cosignatoryPublicKey", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CosignatoryModificationDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/cosignature.ts b/src/infrastructure/model/cosignature.ts deleted file mode 100644 index d2e50250d4..0000000000 --- a/src/infrastructure/model/cosignature.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class Cosignature { - 'parentHash'?: string; - /** - * Entity\'s signature generated by the signer. - */ - 'signature'?: string; - 'signerPublicKey'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "parentHash", - "baseName": "parentHash", - "type": "string" - }, - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return Cosignature.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/cosignatureDTO.ts b/src/infrastructure/model/cosignatureDTO.ts deleted file mode 100644 index fa5764e86f..0000000000 --- a/src/infrastructure/model/cosignatureDTO.ts +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { CosignatureDTOAllOf } from './cosignatureDTOAllOf'; -import { VerifiableEntityDTO } from './verifiableEntityDTO'; - -export class CosignatureDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CosignatureDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/cosignatureDTOAllOf.ts b/src/infrastructure/model/cosignatureDTOAllOf.ts deleted file mode 100644 index bcfd9098de..0000000000 --- a/src/infrastructure/model/cosignatureDTOAllOf.ts +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class CosignatureDTOAllOf { - 'signerPublicKey': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return CosignatureDTOAllOf.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedAccountAddressRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedAccountAddressRestrictionTransactionDTO.ts deleted file mode 100644 index a5c1cac994..0000000000 --- a/src/infrastructure/model/embeddedAccountAddressRestrictionTransactionDTO.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountAddressRestrictionModificationDTO } from './accountAddressRestrictionModificationDTO'; -import { AccountAddressRestrictionTransactionBodyDTO } from './accountAddressRestrictionTransactionBodyDTO'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; - -export class EmbeddedAccountAddressRestrictionTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'restrictionType': AccountRestrictionTypeEnum; - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return EmbeddedAccountAddressRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedAccountLinkTransactionDTO.ts b/src/infrastructure/model/embeddedAccountLinkTransactionDTO.ts deleted file mode 100644 index 3cdb776883..0000000000 --- a/src/infrastructure/model/embeddedAccountLinkTransactionDTO.ts +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountLinkActionEnum } from './accountLinkActionEnum'; -import { AccountLinkTransactionBodyDTO } from './accountLinkTransactionBodyDTO'; -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; - -export class EmbeddedAccountLinkTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'remotePublicKey': string; - 'linkAction': AccountLinkActionEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "remotePublicKey", - "baseName": "remotePublicKey", - "type": "string" - }, - { - "name": "linkAction", - "baseName": "linkAction", - "type": "AccountLinkActionEnum" - } ]; - - static getAttributeTypeMap() { - return EmbeddedAccountLinkTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedAccountMetadataTransactionDTO.ts b/src/infrastructure/model/embeddedAccountMetadataTransactionDTO.ts deleted file mode 100644 index 1338dfff3a..0000000000 --- a/src/infrastructure/model/embeddedAccountMetadataTransactionDTO.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountMetadataTransactionBodyDTO } from './accountMetadataTransactionBodyDTO'; -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; - -export class EmbeddedAccountMetadataTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedAccountMetadataTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedAccountMetadataTransactionTransactionDTO.ts b/src/infrastructure/model/embeddedAccountMetadataTransactionTransactionDTO.ts deleted file mode 100644 index 012fe24576..0000000000 --- a/src/infrastructure/model/embeddedAccountMetadataTransactionTransactionDTO.ts +++ /dev/null @@ -1,122 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.18 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountMetadataTransactionBodyDTO } from './accountMetadataTransactionBodyDTO'; -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; - -export class EmbeddedAccountMetadataTransactionTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedAccountMetadataTransactionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedAccountMosaicRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedAccountMosaicRestrictionTransactionDTO.ts deleted file mode 100644 index 905d893c81..0000000000 --- a/src/infrastructure/model/embeddedAccountMosaicRestrictionTransactionDTO.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountMosaicRestrictionModificationDTO } from './accountMosaicRestrictionModificationDTO'; -import { AccountMosaicRestrictionTransactionBodyDTO } from './accountMosaicRestrictionTransactionBodyDTO'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; - -export class EmbeddedAccountMosaicRestrictionTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'restrictionType': AccountRestrictionTypeEnum; - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return EmbeddedAccountMosaicRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedAccountOperationRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedAccountOperationRestrictionTransactionDTO.ts deleted file mode 100644 index 82c050453c..0000000000 --- a/src/infrastructure/model/embeddedAccountOperationRestrictionTransactionDTO.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AccountOperationRestrictionModificationDTO } from './accountOperationRestrictionModificationDTO'; -import { AccountOperationRestrictionTransactionBodyDTO } from './accountOperationRestrictionTransactionBodyDTO'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; - -export class EmbeddedAccountOperationRestrictionTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'restrictionType': AccountRestrictionTypeEnum; - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "AccountRestrictionTypeEnum" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return EmbeddedAccountOperationRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedAddressAliasTransactionDTO.ts b/src/infrastructure/model/embeddedAddressAliasTransactionDTO.ts deleted file mode 100644 index 3cece291a5..0000000000 --- a/src/infrastructure/model/embeddedAddressAliasTransactionDTO.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AddressAliasTransactionBodyDTO } from './addressAliasTransactionBodyDTO'; -import { AliasActionEnum } from './aliasActionEnum'; -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; - -export class EmbeddedAddressAliasTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'aliasAction': AliasActionEnum; - /** - * Namespace identifier. - */ - 'namespaceId': string; - /** - * Decoded address. - */ - 'address': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "aliasAction", - "baseName": "aliasAction", - "type": "AliasActionEnum" - }, - { - "name": "namespaceId", - "baseName": "namespaceId", - "type": "string" - }, - { - "name": "address", - "baseName": "address", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedAddressAliasTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedHashLockTransactionDTO.ts b/src/infrastructure/model/embeddedHashLockTransactionDTO.ts deleted file mode 100644 index d88f188873..0000000000 --- a/src/infrastructure/model/embeddedHashLockTransactionDTO.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { HashLockTransactionDTO } from './hashLockTransactionDTO'; -import { Mosaic } from './mosaic'; - -export class EmbeddedHashLockTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'mosaic': Mosaic; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - 'hash': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "mosaic", - "baseName": "mosaic", - "type": "Mosaic" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - }, - { - "name": "hash", - "baseName": "hash", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedHashLockTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedMosaicAddressRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicAddressRestrictionTransactionDTO.ts deleted file mode 100644 index 620dcf3528..0000000000 --- a/src/infrastructure/model/embeddedMosaicAddressRestrictionTransactionDTO.ts +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { MosaicAddressRestrictionTransactionBodyDTO } from './mosaicAddressRestrictionTransactionBodyDTO'; - -export class EmbeddedMosaicAddressRestrictionTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - /** - * Restriction key. - */ - 'restrictionKey': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'targetAddress': string; - /** - * Previous restriction value. - */ - 'previousRestrictionValue': string; - /** - * New restriction value. - */ - 'newRestrictionValue': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "restrictionKey", - "baseName": "restrictionKey", - "type": "string" - }, - { - "name": "targetAddress", - "baseName": "targetAddress", - "type": "string" - }, - { - "name": "previousRestrictionValue", - "baseName": "previousRestrictionValue", - "type": "string" - }, - { - "name": "newRestrictionValue", - "baseName": "newRestrictionValue", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedMosaicAddressRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedMosaicAliasTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicAliasTransactionDTO.ts deleted file mode 100644 index 345cfd9dad..0000000000 --- a/src/infrastructure/model/embeddedMosaicAliasTransactionDTO.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AliasActionEnum } from './aliasActionEnum'; -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { MosaicAliasTransactionBodyDTO } from './mosaicAliasTransactionBodyDTO'; - -export class EmbeddedMosaicAliasTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'aliasAction': AliasActionEnum; - /** - * Namespace identifier. - */ - 'namespaceId': string; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "aliasAction", - "baseName": "aliasAction", - "type": "AliasActionEnum" - }, - { - "name": "namespaceId", - "baseName": "namespaceId", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedMosaicAliasTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedMosaicDefinitionTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicDefinitionTransactionDTO.ts deleted file mode 100644 index fb2cd0ae3b..0000000000 --- a/src/infrastructure/model/embeddedMosaicDefinitionTransactionDTO.ts +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { MosaicDefinitionTransactionBodyDTO } from './mosaicDefinitionTransactionBodyDTO'; - -export class EmbeddedMosaicDefinitionTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Random nonce used to generate the mosaic id. - */ - 'nonce': number; - /** - * Mosaic identifier. - */ - 'id': string; - /** - * - 0x00 (none) - No flags present. - 0x01 (supplyMutable) - Mosaic supports supply changes even when mosaic owner owns partial supply. - 0x02 (transferable) - Mosaic supports transfers between arbitrary accounts. When not set, mosaic can only be transferred to and from mosaic owner. - 0x04 (restrictable) - Mosaic supports custom restrictions configured by mosaic owner. - */ - 'flags': number; - /** - * Determines up to what decimal place the mosaic can be divided. Divisibility of 3 means that a mosaic can be divided into smallest parts of 0.001 mosaics. The divisibility must be in the range of 0 and 6. - */ - 'divisibility': number; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "nonce", - "baseName": "nonce", - "type": "number" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "flags", - "baseName": "flags", - "type": "number" - }, - { - "name": "divisibility", - "baseName": "divisibility", - "type": "number" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedMosaicDefinitionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedMosaicGlobalRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicGlobalRestrictionTransactionDTO.ts deleted file mode 100644 index eee08a8ab9..0000000000 --- a/src/infrastructure/model/embeddedMosaicGlobalRestrictionTransactionDTO.ts +++ /dev/null @@ -1,138 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { MosaicGlobalRestrictionTransactionBodyDTO } from './mosaicGlobalRestrictionTransactionBodyDTO'; -import { MosaicRestrictionTypeEnum } from './mosaicRestrictionTypeEnum'; - -export class EmbeddedMosaicGlobalRestrictionTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'referenceMosaicId': string; - /** - * Restriction key. - */ - 'restrictionKey': string; - /** - * Previous restriction value. - */ - 'previousRestrictionValue': string; - 'previousRestrictionType': MosaicRestrictionTypeEnum; - /** - * New restriction value. - */ - 'newRestrictionValue': string; - 'newRestrictionType': MosaicRestrictionTypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "referenceMosaicId", - "baseName": "referenceMosaicId", - "type": "string" - }, - { - "name": "restrictionKey", - "baseName": "restrictionKey", - "type": "string" - }, - { - "name": "previousRestrictionValue", - "baseName": "previousRestrictionValue", - "type": "string" - }, - { - "name": "previousRestrictionType", - "baseName": "previousRestrictionType", - "type": "MosaicRestrictionTypeEnum" - }, - { - "name": "newRestrictionValue", - "baseName": "newRestrictionValue", - "type": "string" - }, - { - "name": "newRestrictionType", - "baseName": "newRestrictionType", - "type": "MosaicRestrictionTypeEnum" - } ]; - - static getAttributeTypeMap() { - return EmbeddedMosaicGlobalRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedMosaicMetadataTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicMetadataTransactionDTO.ts deleted file mode 100644 index 55022e4f7e..0000000000 --- a/src/infrastructure/model/embeddedMosaicMetadataTransactionDTO.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { MosaicMetadataTransactionBodyDTO } from './mosaicMetadataTransactionBodyDTO'; - -export class EmbeddedMosaicMetadataTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'targetMosaicId': string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "targetMosaicId", - "baseName": "targetMosaicId", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedMosaicMetadataTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedMosaicMetadataTransactionTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicMetadataTransactionTransactionDTO.ts deleted file mode 100644 index b91fe0efbf..0000000000 --- a/src/infrastructure/model/embeddedMosaicMetadataTransactionTransactionDTO.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.18 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { MosaicMetadataTransactionBodyDTO } from './mosaicMetadataTransactionBodyDTO'; - -export class EmbeddedMosaicMetadataTransactionTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'targetMosaicId': string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "targetMosaicId", - "baseName": "targetMosaicId", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedMosaicMetadataTransactionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedMosaicSupplyChangeTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicSupplyChangeTransactionDTO.ts deleted file mode 100644 index bb37ee2e99..0000000000 --- a/src/infrastructure/model/embeddedMosaicSupplyChangeTransactionDTO.ts +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { MosaicSupplyChangeActionEnum } from './mosaicSupplyChangeActionEnum'; -import { MosaicSupplyChangeTransactionBodyDTO } from './mosaicSupplyChangeTransactionBodyDTO'; - -export class EmbeddedMosaicSupplyChangeTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - 'action': MosaicSupplyChangeActionEnum; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'delta': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "action", - "baseName": "action", - "type": "MosaicSupplyChangeActionEnum" - }, - { - "name": "delta", - "baseName": "delta", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedMosaicSupplyChangeTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedMultisigAccountModificationTransactionDTO.ts b/src/infrastructure/model/embeddedMultisigAccountModificationTransactionDTO.ts deleted file mode 100644 index 75c6ee7be5..0000000000 --- a/src/infrastructure/model/embeddedMultisigAccountModificationTransactionDTO.ts +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { CosignatoryModificationDTO } from './cosignatoryModificationDTO'; -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { MultisigAccountModificationTransactionBodyDTO } from './multisigAccountModificationTransactionBodyDTO'; - -export class EmbeddedMultisigAccountModificationTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Number of signatures needed to remove a cosignatory. If we are modifying an existing multisig account, this indicates the relative change of the minimum cosignatories. - */ - 'minRemovalDelta': number; - /** - * Number of signatures needed to approve a transaction. If we are modifying an existing multisig account, this indicates the relative change of the minimum cosignatories. - */ - 'minApprovalDelta': number; - /** - * Array of cosignatory accounts to add or delete. - */ - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "minRemovalDelta", - "baseName": "minRemovalDelta", - "type": "number" - }, - { - "name": "minApprovalDelta", - "baseName": "minApprovalDelta", - "type": "number" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return EmbeddedMultisigAccountModificationTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedNamespaceMetadataTransactionDTO.ts b/src/infrastructure/model/embeddedNamespaceMetadataTransactionDTO.ts deleted file mode 100644 index 5ab75e3eb1..0000000000 --- a/src/infrastructure/model/embeddedNamespaceMetadataTransactionDTO.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { NamespaceMetadataTransactionBodyDTO } from './namespaceMetadataTransactionBodyDTO'; - -export class EmbeddedNamespaceMetadataTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Namespace identifier. - */ - 'targetNamespaceId'?: string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "targetNamespaceId", - "baseName": "targetNamespaceId", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedNamespaceMetadataTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedNamespaceMetadataTransactionTransactionDTO.ts b/src/infrastructure/model/embeddedNamespaceMetadataTransactionTransactionDTO.ts deleted file mode 100644 index 3880d2ac71..0000000000 --- a/src/infrastructure/model/embeddedNamespaceMetadataTransactionTransactionDTO.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.18 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { NamespaceMetadataTransactionBodyDTO } from './namespaceMetadataTransactionBodyDTO'; - -export class EmbeddedNamespaceMetadataTransactionTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Namespace identifier. - */ - 'targetNamespaceId'?: string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "targetNamespaceId", - "baseName": "targetNamespaceId", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedNamespaceMetadataTransactionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedNamespaceRegistrationTransactionDTO.ts b/src/infrastructure/model/embeddedNamespaceRegistrationTransactionDTO.ts deleted file mode 100644 index bd57eca813..0000000000 --- a/src/infrastructure/model/embeddedNamespaceRegistrationTransactionDTO.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { NamespaceRegistrationTransactionBodyDTO } from './namespaceRegistrationTransactionBodyDTO'; -import { NamespaceRegistrationTypeEnum } from './namespaceRegistrationTypeEnum'; - -export class EmbeddedNamespaceRegistrationTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'registrationType': NamespaceRegistrationTypeEnum; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - /** - * Namespace identifier. - */ - 'parentId': string; - /** - * Namespace identifier. - */ - 'id': string; - /** - * Namespace name. - */ - 'name': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "registrationType", - "baseName": "registrationType", - "type": "NamespaceRegistrationTypeEnum" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - }, - { - "name": "parentId", - "baseName": "parentId", - "type": "string" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "name", - "baseName": "name", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedNamespaceRegistrationTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedSecretLockTransactionDTO.ts b/src/infrastructure/model/embeddedSecretLockTransactionDTO.ts deleted file mode 100644 index 55bc374e5d..0000000000 --- a/src/infrastructure/model/embeddedSecretLockTransactionDTO.ts +++ /dev/null @@ -1,129 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { LockHashAlgorithmEnum } from './lockHashAlgorithmEnum'; -import { SecretLockTransactionBodyDTO } from './secretLockTransactionBodyDTO'; - -export class EmbeddedSecretLockTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - 'hashAlgorithm': LockHashAlgorithmEnum; - 'secret': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'recipientAddress': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "hashAlgorithm", - "baseName": "hashAlgorithm", - "type": "LockHashAlgorithmEnum" - }, - { - "name": "secret", - "baseName": "secret", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedSecretLockTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedSecretProofTransactionDTO.ts b/src/infrastructure/model/embeddedSecretProofTransactionDTO.ts deleted file mode 100644 index 50602cfd49..0000000000 --- a/src/infrastructure/model/embeddedSecretProofTransactionDTO.ts +++ /dev/null @@ -1,111 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { LockHashAlgorithmEnum } from './lockHashAlgorithmEnum'; -import { SecretProofTransactionBodyDTO } from './secretProofTransactionBodyDTO'; - -export class EmbeddedSecretProofTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'hashAlgorithm': LockHashAlgorithmEnum; - 'secret': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'recipientAddress': string; - /** - * Original random set of bytes. - */ - 'proof': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "hashAlgorithm", - "baseName": "hashAlgorithm", - "type": "LockHashAlgorithmEnum" - }, - { - "name": "secret", - "baseName": "secret", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - }, - { - "name": "proof", - "baseName": "proof", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedSecretProofTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedTransactionDTO.ts b/src/infrastructure/model/embeddedTransactionDTO.ts deleted file mode 100644 index 1234f16938..0000000000 --- a/src/infrastructure/model/embeddedTransactionDTO.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EntityDTO } from './entityDTO'; -import { TransactionBodyDTO } from './transactionBodyDTO'; - -export class EmbeddedTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedTransactionInfoDTO.ts b/src/infrastructure/model/embeddedTransactionInfoDTO.ts deleted file mode 100644 index b9af262936..0000000000 --- a/src/infrastructure/model/embeddedTransactionInfoDTO.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionMetaDTO } from './embeddedTransactionMetaDTO'; - -export class EmbeddedTransactionInfoDTO { - 'meta': EmbeddedTransactionMetaDTO; - 'transaction': any; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "meta", - "baseName": "meta", - "type": "EmbeddedTransactionMetaDTO" - }, - { - "name": "transaction", - "baseName": "transaction", - "type": "any" - } ]; - - static getAttributeTypeMap() { - return EmbeddedTransactionInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedTransactionMetaDTO.ts b/src/infrastructure/model/embeddedTransactionMetaDTO.ts deleted file mode 100644 index 349d658ced..0000000000 --- a/src/infrastructure/model/embeddedTransactionMetaDTO.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class EmbeddedTransactionMetaDTO { - /** - * Height of the blockchain. - */ - 'height': string; - 'aggregateHash': string; - 'aggregateId': string; - 'index': number; - 'id': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "height", - "baseName": "height", - "type": "string" - }, - { - "name": "aggregateHash", - "baseName": "aggregateHash", - "type": "string" - }, - { - "name": "aggregateId", - "baseName": "aggregateId", - "type": "string" - }, - { - "name": "index", - "baseName": "index", - "type": "number" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return EmbeddedTransactionMetaDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/embeddedTransferTransactionDTO.ts b/src/infrastructure/model/embeddedTransferTransactionDTO.ts deleted file mode 100644 index a549a52cbe..0000000000 --- a/src/infrastructure/model/embeddedTransferTransactionDTO.ts +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EmbeddedTransactionDTO } from './embeddedTransactionDTO'; -import { MessageDTO } from './messageDTO'; -import { Mosaic } from './mosaic'; -import { TransferTransactionBodyDTO } from './transferTransactionBodyDTO'; - -export class EmbeddedTransferTransactionDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'recipientAddress': string; - /** - * Array of mosaics sent to the recipient. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of a instead of a mosaicId corresponds to a mosaicId. - */ - 'mosaics': Array; - 'message': MessageDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - }, - { - "name": "mosaics", - "baseName": "mosaics", - "type": "Array" - }, - { - "name": "message", - "baseName": "message", - "type": "MessageDTO" - } ]; - - static getAttributeTypeMap() { - return EmbeddedTransferTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/entityDTO.ts b/src/infrastructure/model/entityDTO.ts deleted file mode 100644 index d5828e6b5a..0000000000 --- a/src/infrastructure/model/entityDTO.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class EntityDTO { - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return EntityDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/hashLockTransactionBodyDTO.ts b/src/infrastructure/model/hashLockTransactionBodyDTO.ts deleted file mode 100644 index c9fa7e07b0..0000000000 --- a/src/infrastructure/model/hashLockTransactionBodyDTO.ts +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { Mosaic } from './mosaic'; - -export class HashLockTransactionBodyDTO { - 'mosaic': Mosaic; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - 'hash': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaic", - "baseName": "mosaic", - "type": "Mosaic" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - }, - { - "name": "hash", - "baseName": "hash", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return HashLockTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/hashLockTransactionDTO.ts b/src/infrastructure/model/hashLockTransactionDTO.ts deleted file mode 100644 index a9525905e3..0000000000 --- a/src/infrastructure/model/hashLockTransactionDTO.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { HashLockTransactionBodyDTO } from './hashLockTransactionBodyDTO'; -import { Mosaic } from './mosaic'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to lock funds before sending an aggregate bonded transaction. -*/ -export class HashLockTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'mosaic': Mosaic; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - 'hash': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "mosaic", - "baseName": "mosaic", - "type": "Mosaic" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - }, - { - "name": "hash", - "baseName": "hash", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return HashLockTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/heightInfoDTO.ts b/src/infrastructure/model/heightInfoDTO.ts deleted file mode 100644 index dbdb94640a..0000000000 --- a/src/infrastructure/model/heightInfoDTO.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class HeightInfoDTO { - /** - * Height of the blockchain. - */ - 'height': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "height", - "baseName": "height", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return HeightInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/inflationReceiptDTO.ts b/src/infrastructure/model/inflationReceiptDTO.ts deleted file mode 100644 index fdf25ac186..0000000000 --- a/src/infrastructure/model/inflationReceiptDTO.ts +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { InflationReceiptDTOAllOf } from './inflationReceiptDTOAllOf'; -import { ReceiptDTO } from './receiptDTO'; -import { ReceiptTypeEnum } from './receiptTypeEnum'; - -/** -* Native currency mosaics that were created due to inflation. -*/ -export class InflationReceiptDTO { - /** - * Version of the receipt. - */ - 'version': number; - 'type': ReceiptTypeEnum; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "ReceiptTypeEnum" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return InflationReceiptDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/inflationReceiptDTOAllOf.ts b/src/infrastructure/model/inflationReceiptDTOAllOf.ts deleted file mode 100644 index e5e304c036..0000000000 --- a/src/infrastructure/model/inflationReceiptDTOAllOf.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class InflationReceiptDTOAllOf { - /** - * Mosaic identifier. - */ - 'mosaicId': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return InflationReceiptDTOAllOf.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/lockHashAlgorithmEnum.ts b/src/infrastructure/model/lockHashAlgorithmEnum.ts deleted file mode 100644 index aa72c063e1..0000000000 --- a/src/infrastructure/model/lockHashAlgorithmEnum.ts +++ /dev/null @@ -1,37 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Algorithm used to hash te proof: * 0 (Op_Sha3_256) - Proof is hashed using sha3 256. * 1 (Op_Keccak_256) - Proof is hashed using Keccak (ETH compatibility). * 2 (Op_Hash_160) - Proof is hashed twice: first with Sha-256 and then with RIPEMD-160 (bitcoin’s OP_HASH160). * 3 (Op_Hash_256) - Proof is hashed twice with Sha-256 (bitcoin’s OP_HASH256). -*/ -export enum LockHashAlgorithmEnum { - NUMBER_0 = 0, - NUMBER_1 = 1, - NUMBER_2 = 2, - NUMBER_3 = 3 -} diff --git a/src/infrastructure/model/merklePathItem.ts b/src/infrastructure/model/merklePathItem.ts deleted file mode 100644 index 767954fd34..0000000000 --- a/src/infrastructure/model/merklePathItem.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class MerklePathItem { - 'position'?: number; - 'hash'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "position", - "baseName": "position", - "type": "number" - }, - { - "name": "hash", - "baseName": "hash", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MerklePathItem.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/merkleProofInfoDTO.ts b/src/infrastructure/model/merkleProofInfoDTO.ts deleted file mode 100644 index af69e13183..0000000000 --- a/src/infrastructure/model/merkleProofInfoDTO.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MerklePathItem } from './merklePathItem'; - -export class MerkleProofInfoDTO { - /** - * Complementary data needed to calculate the merkle root. - */ - 'merklePath'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "merklePath", - "baseName": "merklePath", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MerkleProofInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/messageDTO.ts b/src/infrastructure/model/messageDTO.ts deleted file mode 100644 index 46b381c4ee..0000000000 --- a/src/infrastructure/model/messageDTO.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MessageTypeEnum } from './messageTypeEnum'; - -export class MessageDTO { - 'type': MessageTypeEnum; - /** - * Content of the message in hexadecimal. - */ - 'payload': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "type", - "baseName": "type", - "type": "MessageTypeEnum" - }, - { - "name": "payload", - "baseName": "payload", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MessageDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/messageTypeEnum.ts b/src/infrastructure/model/messageTypeEnum.ts deleted file mode 100644 index 6711f45f54..0000000000 --- a/src/infrastructure/model/messageTypeEnum.ts +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of message: * 0 - Regular message. * 1 - Encrypted message. -*/ -export enum MessageTypeEnum { - NUMBER_0 = 0 -} diff --git a/src/infrastructure/model/metadataDTO.ts b/src/infrastructure/model/metadataDTO.ts deleted file mode 100644 index cd8d5a07a6..0000000000 --- a/src/infrastructure/model/metadataDTO.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MetadataEntryDTO } from './metadataEntryDTO'; - -export class MetadataDTO { - 'id': string; - 'metadataEntry': MetadataEntryDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "metadataEntry", - "baseName": "metadataEntry", - "type": "MetadataEntryDTO" - } ]; - - static getAttributeTypeMap() { - return MetadataDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/metadataEntriesDTO.ts b/src/infrastructure/model/metadataEntriesDTO.ts deleted file mode 100644 index 8d2eb3cb46..0000000000 --- a/src/infrastructure/model/metadataEntriesDTO.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MetadataDTO } from './metadataDTO'; - -export class MetadataEntriesDTO { - /** - * Array of account metadata. - */ - 'metadataEntries': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "metadataEntries", - "baseName": "metadataEntries", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MetadataEntriesDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/metadataEntryDTO.ts b/src/infrastructure/model/metadataEntryDTO.ts deleted file mode 100644 index e36b3cf7b3..0000000000 --- a/src/infrastructure/model/metadataEntryDTO.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MetadataTypeEnum } from './metadataTypeEnum'; - -export class MetadataEntryDTO { - 'compositeHash': string; - 'senderPublicKey': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - 'targetId'?: any; - 'metadataType': MetadataTypeEnum; - /** - * Size of value property. - */ - 'valueSize': number; - /** - * Metadata value. - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "compositeHash", - "baseName": "compositeHash", - "type": "string" - }, - { - "name": "senderPublicKey", - "baseName": "senderPublicKey", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "targetId", - "baseName": "targetId", - "type": "any" - }, - { - "name": "metadataType", - "baseName": "metadataType", - "type": "MetadataTypeEnum" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MetadataEntryDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/metadataTypeEnum.ts b/src/infrastructure/model/metadataTypeEnum.ts deleted file mode 100644 index 86298fce2d..0000000000 --- a/src/infrastructure/model/metadataTypeEnum.ts +++ /dev/null @@ -1,36 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Metadata type: * 0 - Account. * 1 - Mosaic. * 2 - Namespace. -*/ -export enum MetadataTypeEnum { - NUMBER_0 = 0, - NUMBER_1 = 1, - NUMBER_2 = 2 -} diff --git a/src/infrastructure/model/modelError.ts b/src/infrastructure/model/modelError.ts deleted file mode 100644 index 265779812f..0000000000 --- a/src/infrastructure/model/modelError.ts +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class ModelError { - 'code': string; - 'message': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "code", - "baseName": "code", - "type": "string" - }, - { - "name": "message", - "baseName": "message", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ModelError.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/models.ts b/src/infrastructure/model/models.ts deleted file mode 100644 index 6d32cafdad..0000000000 --- a/src/infrastructure/model/models.ts +++ /dev/null @@ -1,682 +0,0 @@ -export * from './accountAddressRestrictionModificationDTO'; -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 './accountMosaicRestrictionModificationDTO'; -export * from './accountMosaicRestrictionTransactionBodyDTO'; -export * from './accountMosaicRestrictionTransactionDTO'; -export * from './accountNamesDTO'; -export * from './accountOperationRestrictionModificationDTO'; -export * from './accountOperationRestrictionTransactionBodyDTO'; -export * from './accountOperationRestrictionTransactionDTO'; -export * from './accountRestrictionDTO'; -export * from './accountRestrictionModificationActionEnum'; -export * from './accountRestrictionTypeEnum'; -export * from './accountRestrictionsDTO'; -export * from './accountRestrictionsInfoDTO'; -export * from './accountTypeEnum'; -export * from './accountsNamesDTO'; -export * from './activityBucketDTO'; -export * from './addressAliasTransactionBodyDTO'; -export * from './addressAliasTransactionDTO'; -export * from './aggregateBondedTransactionDTO'; -export * from './aggregateCompleteTransactionDTO'; -export * from './aggregateTransactionBodyDTO'; -export * from './aliasActionEnum'; -export * from './aliasDTO'; -export * from './aliasTypeEnum'; -export * from './announceTransactionInfoDTO'; -export * from './artifactExpiryReceiptDTO'; -export * from './artifactExpiryReceiptDTOAllOf'; -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 './cosignatoryModificationActionEnum'; -export * from './cosignatoryModificationDTO'; -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 './merklePathItem'; -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 './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 './mosaicsNamesDTO'; -export * from './multisigAccountGraphInfoDTO'; -export * from './multisigAccountInfoDTO'; -export * from './multisigAccountModificationTransactionBodyDTO'; -export * from './multisigAccountModificationTransactionDTO'; -export * from './multisigDTO'; -export * from './namespaceDTO'; -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 './networkTypeDTO'; -export * from './nodeInfoDTO'; -export * from './nodeTimeDTO'; -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 './transactionStatementBodyDTO'; -export * from './transactionStatementDTO'; -export * from './transactionStatusDTO'; -export * from './transactionTypeEnum'; -export * from './transferTransactionBodyDTO'; -export * from './transferTransactionDTO'; -export * from './unresolvedMosaic'; -export * from './verifiableEntityDTO'; - -import localVarRequest = require('request'); - -import { AccountAddressRestrictionModificationDTO } from './accountAddressRestrictionModificationDTO'; -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 { AccountMosaicRestrictionModificationDTO } from './accountMosaicRestrictionModificationDTO'; -import { AccountMosaicRestrictionTransactionBodyDTO } from './accountMosaicRestrictionTransactionBodyDTO'; -import { AccountMosaicRestrictionTransactionDTO } from './accountMosaicRestrictionTransactionDTO'; -import { AccountNamesDTO } from './accountNamesDTO'; -import { AccountOperationRestrictionModificationDTO } from './accountOperationRestrictionModificationDTO'; -import { AccountOperationRestrictionTransactionBodyDTO } from './accountOperationRestrictionTransactionBodyDTO'; -import { AccountOperationRestrictionTransactionDTO } from './accountOperationRestrictionTransactionDTO'; -import { AccountRestrictionDTO } from './accountRestrictionDTO'; -import { AccountRestrictionModificationActionEnum } from './accountRestrictionModificationActionEnum'; -import { AccountRestrictionTypeEnum } from './accountRestrictionTypeEnum'; -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 { AggregateBondedTransactionDTO } from './aggregateBondedTransactionDTO'; -import { AggregateCompleteTransactionDTO } from './aggregateCompleteTransactionDTO'; -import { AggregateTransactionBodyDTO } from './aggregateTransactionBodyDTO'; -import { AliasActionEnum } from './aliasActionEnum'; -import { AliasDTO } from './aliasDTO'; -import { AliasTypeEnum } from './aliasTypeEnum'; -import { AnnounceTransactionInfoDTO } from './announceTransactionInfoDTO'; -import { ArtifactExpiryReceiptDTO } from './artifactExpiryReceiptDTO'; -import { ArtifactExpiryReceiptDTOAllOf } from './artifactExpiryReceiptDTOAllOf'; -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 { CosignatoryModificationActionEnum } from './cosignatoryModificationActionEnum'; -import { CosignatoryModificationDTO } from './cosignatoryModificationDTO'; -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 { MerklePathItem } from './merklePathItem'; -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 { 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 { 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 { 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 { NetworkTypeDTO } from './networkTypeDTO'; -import { NodeInfoDTO } from './nodeInfoDTO'; -import { NodeTimeDTO } from './nodeTimeDTO'; -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 { TransactionStatementBodyDTO } from './transactionStatementBodyDTO'; -import { TransactionStatementDTO } from './transactionStatementDTO'; -import { TransactionStatusDTO } from './transactionStatusDTO'; -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, - "AccountRestrictionModificationActionEnum": AccountRestrictionModificationActionEnum, - "AccountRestrictionTypeEnum": AccountRestrictionTypeEnum, - "AccountTypeEnum": AccountTypeEnum, - "AliasActionEnum": AliasActionEnum, - "AliasTypeEnum": AliasTypeEnum, - "CosignatoryModificationActionEnum": CosignatoryModificationActionEnum, - "LockHashAlgorithmEnum": LockHashAlgorithmEnum, - "MessageTypeEnum": MessageTypeEnum, - "MetadataTypeEnum": MetadataTypeEnum, - "MosaicRestrictionEntryTypeEnum": MosaicRestrictionEntryTypeEnum, - "MosaicRestrictionTypeEnum": MosaicRestrictionTypeEnum, - "MosaicSupplyChangeActionEnum": MosaicSupplyChangeActionEnum, - "NamespaceRegistrationTypeEnum": NamespaceRegistrationTypeEnum, - "ReceiptTypeEnum": ReceiptTypeEnum, - "RolesTypeEnum": RolesTypeEnum, - "TransactionTypeEnum": TransactionTypeEnum, -} - -let typeMap: {[index: string]: any} = { - "AccountAddressRestrictionModificationDTO": AccountAddressRestrictionModificationDTO, - "AccountAddressRestrictionTransactionBodyDTO": AccountAddressRestrictionTransactionBodyDTO, - "AccountAddressRestrictionTransactionDTO": AccountAddressRestrictionTransactionDTO, - "AccountDTO": AccountDTO, - "AccountIds": AccountIds, - "AccountInfoDTO": AccountInfoDTO, - "AccountLinkTransactionBodyDTO": AccountLinkTransactionBodyDTO, - "AccountLinkTransactionDTO": AccountLinkTransactionDTO, - "AccountMetadataTransactionBodyDTO": AccountMetadataTransactionBodyDTO, - "AccountMetadataTransactionDTO": AccountMetadataTransactionDTO, - "AccountMosaicRestrictionModificationDTO": AccountMosaicRestrictionModificationDTO, - "AccountMosaicRestrictionTransactionBodyDTO": AccountMosaicRestrictionTransactionBodyDTO, - "AccountMosaicRestrictionTransactionDTO": AccountMosaicRestrictionTransactionDTO, - "AccountNamesDTO": AccountNamesDTO, - "AccountOperationRestrictionModificationDTO": AccountOperationRestrictionModificationDTO, - "AccountOperationRestrictionTransactionBodyDTO": AccountOperationRestrictionTransactionBodyDTO, - "AccountOperationRestrictionTransactionDTO": AccountOperationRestrictionTransactionDTO, - "AccountRestrictionDTO": AccountRestrictionDTO, - "AccountRestrictionsDTO": AccountRestrictionsDTO, - "AccountRestrictionsInfoDTO": AccountRestrictionsInfoDTO, - "AccountsNamesDTO": AccountsNamesDTO, - "ActivityBucketDTO": ActivityBucketDTO, - "AddressAliasTransactionBodyDTO": AddressAliasTransactionBodyDTO, - "AddressAliasTransactionDTO": AddressAliasTransactionDTO, - "AggregateBondedTransactionDTO": AggregateBondedTransactionDTO, - "AggregateCompleteTransactionDTO": AggregateCompleteTransactionDTO, - "AggregateTransactionBodyDTO": AggregateTransactionBodyDTO, - "AliasDTO": AliasDTO, - "AnnounceTransactionInfoDTO": AnnounceTransactionInfoDTO, - "ArtifactExpiryReceiptDTO": ArtifactExpiryReceiptDTO, - "ArtifactExpiryReceiptDTOAllOf": ArtifactExpiryReceiptDTOAllOf, - "BalanceChangeReceiptDTO": BalanceChangeReceiptDTO, - "BalanceChangeReceiptDTOAllOf": BalanceChangeReceiptDTOAllOf, - "BalanceTransferReceiptDTO": BalanceTransferReceiptDTO, - "BalanceTransferReceiptDTOAllOf": BalanceTransferReceiptDTOAllOf, - "BlockDTO": BlockDTO, - "BlockDTOAllOf": BlockDTOAllOf, - "BlockInfoDTO": BlockInfoDTO, - "BlockMetaDTO": BlockMetaDTO, - "ChainScoreDTO": ChainScoreDTO, - "CommunicationTimestampsDTO": CommunicationTimestampsDTO, - "CosignatoryModificationDTO": CosignatoryModificationDTO, - "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, - "MerklePathItem": MerklePathItem, - "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, - "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, - "MosaicsNamesDTO": MosaicsNamesDTO, - "MultisigAccountGraphInfoDTO": MultisigAccountGraphInfoDTO, - "MultisigAccountInfoDTO": MultisigAccountInfoDTO, - "MultisigAccountModificationTransactionBodyDTO": MultisigAccountModificationTransactionBodyDTO, - "MultisigAccountModificationTransactionDTO": MultisigAccountModificationTransactionDTO, - "MultisigDTO": MultisigDTO, - "NamespaceDTO": NamespaceDTO, - "NamespaceIds": NamespaceIds, - "NamespaceInfoDTO": NamespaceInfoDTO, - "NamespaceMetaDTO": NamespaceMetaDTO, - "NamespaceMetadataTransactionBodyDTO": NamespaceMetadataTransactionBodyDTO, - "NamespaceMetadataTransactionDTO": NamespaceMetadataTransactionDTO, - "NamespaceNameDTO": NamespaceNameDTO, - "NamespaceRegistrationTransactionBodyDTO": NamespaceRegistrationTransactionBodyDTO, - "NamespaceRegistrationTransactionDTO": NamespaceRegistrationTransactionDTO, - "NetworkTypeDTO": NetworkTypeDTO, - "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 - } -} \ No newline at end of file diff --git a/src/infrastructure/model/mosaic.ts b/src/infrastructure/model/mosaic.ts deleted file mode 100644 index 1a61893001..0000000000 --- a/src/infrastructure/model/mosaic.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class Mosaic { - /** - * Mosaic identifier. - */ - 'id': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return Mosaic.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicAddressRestrictionDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionDTO.ts deleted file mode 100644 index efb951accd..0000000000 --- a/src/infrastructure/model/mosaicAddressRestrictionDTO.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicAddressRestrictionEntryWrapperDTO } from './mosaicAddressRestrictionEntryWrapperDTO'; - -export class MosaicAddressRestrictionDTO { - 'mosaicRestrictionEntry': MosaicAddressRestrictionEntryWrapperDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaicRestrictionEntry", - "baseName": "mosaicRestrictionEntry", - "type": "MosaicAddressRestrictionEntryWrapperDTO" - } ]; - - static getAttributeTypeMap() { - return MosaicAddressRestrictionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicAddressRestrictionEntryDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionEntryDTO.ts deleted file mode 100644 index 61ab124a3e..0000000000 --- a/src/infrastructure/model/mosaicAddressRestrictionEntryDTO.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class MosaicAddressRestrictionEntryDTO { - /** - * Restriction key. - */ - 'key': string; - /** - * Restriction value. - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "key", - "baseName": "key", - "type": "string" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicAddressRestrictionEntryDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicAddressRestrictionEntryWrapperDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionEntryWrapperDTO.ts deleted file mode 100644 index a7607d94a3..0000000000 --- a/src/infrastructure/model/mosaicAddressRestrictionEntryWrapperDTO.ts +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicAddressRestrictionEntryDTO } from './mosaicAddressRestrictionEntryDTO'; -import { MosaicRestrictionEntryTypeEnum } from './mosaicRestrictionEntryTypeEnum'; - -export class MosaicAddressRestrictionEntryWrapperDTO { - 'compositeHash': string; - 'entryType': MosaicRestrictionEntryTypeEnum; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - /** - * Decoded address. - */ - 'targetAddress': string; - 'restrictions': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "compositeHash", - "baseName": "compositeHash", - "type": "string" - }, - { - "name": "entryType", - "baseName": "entryType", - "type": "MosaicRestrictionEntryTypeEnum" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "targetAddress", - "baseName": "targetAddress", - "type": "string" - }, - { - "name": "restrictions", - "baseName": "restrictions", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MosaicAddressRestrictionEntryWrapperDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicAddressRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionTransactionBodyDTO.ts deleted file mode 100644 index 09935f4cf8..0000000000 --- a/src/infrastructure/model/mosaicAddressRestrictionTransactionBodyDTO.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class MosaicAddressRestrictionTransactionBodyDTO { - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - /** - * Restriction key. - */ - 'restrictionKey': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'targetAddress': string; - /** - * Previous restriction value. - */ - 'previousRestrictionValue': string; - /** - * New restriction value. - */ - 'newRestrictionValue': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "restrictionKey", - "baseName": "restrictionKey", - "type": "string" - }, - { - "name": "targetAddress", - "baseName": "targetAddress", - "type": "string" - }, - { - "name": "previousRestrictionValue", - "baseName": "previousRestrictionValue", - "type": "string" - }, - { - "name": "newRestrictionValue", - "baseName": "newRestrictionValue", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicAddressRestrictionTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicAddressRestrictionTransactionDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionTransactionDTO.ts deleted file mode 100644 index 143da8766b..0000000000 --- a/src/infrastructure/model/mosaicAddressRestrictionTransactionDTO.ts +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicAddressRestrictionTransactionBodyDTO } from './mosaicAddressRestrictionTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to set a restriction rule to an address. -*/ -export class MosaicAddressRestrictionTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - /** - * Restriction key. - */ - 'restrictionKey': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'targetAddress': string; - /** - * Previous restriction value. - */ - 'previousRestrictionValue': string; - /** - * New restriction value. - */ - 'newRestrictionValue': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "restrictionKey", - "baseName": "restrictionKey", - "type": "string" - }, - { - "name": "targetAddress", - "baseName": "targetAddress", - "type": "string" - }, - { - "name": "previousRestrictionValue", - "baseName": "previousRestrictionValue", - "type": "string" - }, - { - "name": "newRestrictionValue", - "baseName": "newRestrictionValue", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicAddressRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicAliasTransactionBodyDTO.ts b/src/infrastructure/model/mosaicAliasTransactionBodyDTO.ts deleted file mode 100644 index 28607e51d4..0000000000 --- a/src/infrastructure/model/mosaicAliasTransactionBodyDTO.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AliasActionEnum } from './aliasActionEnum'; - -export class MosaicAliasTransactionBodyDTO { - 'aliasAction': AliasActionEnum; - /** - * Namespace identifier. - */ - 'namespaceId': string; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "aliasAction", - "baseName": "aliasAction", - "type": "AliasActionEnum" - }, - { - "name": "namespaceId", - "baseName": "namespaceId", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicAliasTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicAliasTransactionDTO.ts b/src/infrastructure/model/mosaicAliasTransactionDTO.ts deleted file mode 100644 index 236281ab4e..0000000000 --- a/src/infrastructure/model/mosaicAliasTransactionDTO.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AliasActionEnum } from './aliasActionEnum'; -import { MosaicAliasTransactionBodyDTO } from './mosaicAliasTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to link a namespace to a mosaic. -*/ -export class MosaicAliasTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'aliasAction': AliasActionEnum; - /** - * Namespace identifier. - */ - 'namespaceId': string; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "aliasAction", - "baseName": "aliasAction", - "type": "AliasActionEnum" - }, - { - "name": "namespaceId", - "baseName": "namespaceId", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicAliasTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicDTO.ts b/src/infrastructure/model/mosaicDTO.ts deleted file mode 100644 index 64aaa4be1a..0000000000 --- a/src/infrastructure/model/mosaicDTO.ts +++ /dev/null @@ -1,114 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class MosaicDTO { - /** - * Mosaic identifier. - */ - 'id': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'supply': string; - /** - * Height of the blockchain. - */ - 'startHeight': string; - 'ownerPublicKey': string; - 'ownerAddress': string; - /** - * Number of definitions for the same mosaic. - */ - 'revision': number; - /** - * - 0x00 (none) - No flags present. - 0x01 (supplyMutable) - Mosaic supports supply changes even when mosaic owner owns partial supply. - 0x02 (transferable) - Mosaic supports transfers between arbitrary accounts. When not set, mosaic can only be transferred to and from mosaic owner. - 0x04 (restrictable) - Mosaic supports custom restrictions configured by mosaic owner. - */ - 'flags': number; - /** - * Determines up to what decimal place the mosaic can be divided. Divisibility of 3 means that a mosaic can be divided into smallest parts of 0.001 mosaics. The divisibility must be in the range of 0 and 6. - */ - 'divisibility': number; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "supply", - "baseName": "supply", - "type": "string" - }, - { - "name": "startHeight", - "baseName": "startHeight", - "type": "string" - }, - { - "name": "ownerPublicKey", - "baseName": "ownerPublicKey", - "type": "string" - }, - { - "name": "ownerAddress", - "baseName": "ownerAddress", - "type": "string" - }, - { - "name": "revision", - "baseName": "revision", - "type": "number" - }, - { - "name": "flags", - "baseName": "flags", - "type": "number" - }, - { - "name": "divisibility", - "baseName": "divisibility", - "type": "number" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicDefinitionTransactionBodyDTO.ts b/src/infrastructure/model/mosaicDefinitionTransactionBodyDTO.ts deleted file mode 100644 index 14a57cfe09..0000000000 --- a/src/infrastructure/model/mosaicDefinitionTransactionBodyDTO.ts +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class MosaicDefinitionTransactionBodyDTO { - /** - * Random nonce used to generate the mosaic id. - */ - 'nonce': number; - /** - * Mosaic identifier. - */ - 'id': string; - /** - * - 0x00 (none) - No flags present. - 0x01 (supplyMutable) - Mosaic supports supply changes even when mosaic owner owns partial supply. - 0x02 (transferable) - Mosaic supports transfers between arbitrary accounts. When not set, mosaic can only be transferred to and from mosaic owner. - 0x04 (restrictable) - Mosaic supports custom restrictions configured by mosaic owner. - */ - 'flags': number; - /** - * Determines up to what decimal place the mosaic can be divided. Divisibility of 3 means that a mosaic can be divided into smallest parts of 0.001 mosaics. The divisibility must be in the range of 0 and 6. - */ - 'divisibility': number; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "nonce", - "baseName": "nonce", - "type": "number" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "flags", - "baseName": "flags", - "type": "number" - }, - { - "name": "divisibility", - "baseName": "divisibility", - "type": "number" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicDefinitionTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicDefinitionTransactionDTO.ts b/src/infrastructure/model/mosaicDefinitionTransactionDTO.ts deleted file mode 100644 index e7d5a22bcd..0000000000 --- a/src/infrastructure/model/mosaicDefinitionTransactionDTO.ts +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicDefinitionTransactionBodyDTO } from './mosaicDefinitionTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to create a new mosaic. -*/ -export class MosaicDefinitionTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Random nonce used to generate the mosaic id. - */ - 'nonce': number; - /** - * Mosaic identifier. - */ - 'id': string; - /** - * - 0x00 (none) - No flags present. - 0x01 (supplyMutable) - Mosaic supports supply changes even when mosaic owner owns partial supply. - 0x02 (transferable) - Mosaic supports transfers between arbitrary accounts. When not set, mosaic can only be transferred to and from mosaic owner. - 0x04 (restrictable) - Mosaic supports custom restrictions configured by mosaic owner. - */ - 'flags': number; - /** - * Determines up to what decimal place the mosaic can be divided. Divisibility of 3 means that a mosaic can be divided into smallest parts of 0.001 mosaics. The divisibility must be in the range of 0 and 6. - */ - 'divisibility': number; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "nonce", - "baseName": "nonce", - "type": "number" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "flags", - "baseName": "flags", - "type": "number" - }, - { - "name": "divisibility", - "baseName": "divisibility", - "type": "number" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicDefinitionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicGlobalRestrictionDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionDTO.ts deleted file mode 100644 index 9861d040b5..0000000000 --- a/src/infrastructure/model/mosaicGlobalRestrictionDTO.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicGlobalRestrictionEntryWrapperDTO } from './mosaicGlobalRestrictionEntryWrapperDTO'; - -export class MosaicGlobalRestrictionDTO { - 'mosaicRestrictionEntry': MosaicGlobalRestrictionEntryWrapperDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaicRestrictionEntry", - "baseName": "mosaicRestrictionEntry", - "type": "MosaicGlobalRestrictionEntryWrapperDTO" - } ]; - - static getAttributeTypeMap() { - return MosaicGlobalRestrictionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicGlobalRestrictionEntryDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionEntryDTO.ts deleted file mode 100644 index ea9d788aff..0000000000 --- a/src/infrastructure/model/mosaicGlobalRestrictionEntryDTO.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicGlobalRestrictionEntryRestrictionDTO } from './mosaicGlobalRestrictionEntryRestrictionDTO'; - -export class MosaicGlobalRestrictionEntryDTO { - /** - * Restriction key. - */ - 'key': string; - 'restriction': MosaicGlobalRestrictionEntryRestrictionDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "key", - "baseName": "key", - "type": "string" - }, - { - "name": "restriction", - "baseName": "restriction", - "type": "MosaicGlobalRestrictionEntryRestrictionDTO" - } ]; - - static getAttributeTypeMap() { - return MosaicGlobalRestrictionEntryDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicGlobalRestrictionEntryRestrictionDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionEntryRestrictionDTO.ts deleted file mode 100644 index d87d2109d6..0000000000 --- a/src/infrastructure/model/mosaicGlobalRestrictionEntryRestrictionDTO.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicRestrictionTypeEnum } from './mosaicRestrictionTypeEnum'; - -export class MosaicGlobalRestrictionEntryRestrictionDTO { - /** - * Mosaic identifier. - */ - 'referenceMosaicId': string; - /** - * Restriction value. - */ - 'restrictionValue': string; - 'restrictionType': MosaicRestrictionTypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "referenceMosaicId", - "baseName": "referenceMosaicId", - "type": "string" - }, - { - "name": "restrictionValue", - "baseName": "restrictionValue", - "type": "string" - }, - { - "name": "restrictionType", - "baseName": "restrictionType", - "type": "MosaicRestrictionTypeEnum" - } ]; - - static getAttributeTypeMap() { - return MosaicGlobalRestrictionEntryRestrictionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicGlobalRestrictionEntryWrapperDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionEntryWrapperDTO.ts deleted file mode 100644 index f6a4e3f96c..0000000000 --- a/src/infrastructure/model/mosaicGlobalRestrictionEntryWrapperDTO.ts +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicGlobalRestrictionEntryDTO } from './mosaicGlobalRestrictionEntryDTO'; -import { MosaicRestrictionEntryTypeEnum } from './mosaicRestrictionEntryTypeEnum'; - -export class MosaicGlobalRestrictionEntryWrapperDTO { - 'compositeHash': string; - 'entryType': MosaicRestrictionEntryTypeEnum; - /** - * Mosaic identifier. - */ - 'mosaicId': string; - 'restrictions': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "compositeHash", - "baseName": "compositeHash", - "type": "string" - }, - { - "name": "entryType", - "baseName": "entryType", - "type": "MosaicRestrictionEntryTypeEnum" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "restrictions", - "baseName": "restrictions", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MosaicGlobalRestrictionEntryWrapperDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicGlobalRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionTransactionBodyDTO.ts deleted file mode 100644 index 2736a934ae..0000000000 --- a/src/infrastructure/model/mosaicGlobalRestrictionTransactionBodyDTO.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicRestrictionTypeEnum } from './mosaicRestrictionTypeEnum'; - -export class MosaicGlobalRestrictionTransactionBodyDTO { - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'referenceMosaicId': string; - /** - * Restriction key. - */ - 'restrictionKey': string; - /** - * Previous restriction value. - */ - 'previousRestrictionValue': string; - 'previousRestrictionType': MosaicRestrictionTypeEnum; - /** - * New restriction value. - */ - 'newRestrictionValue': string; - 'newRestrictionType': MosaicRestrictionTypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "referenceMosaicId", - "baseName": "referenceMosaicId", - "type": "string" - }, - { - "name": "restrictionKey", - "baseName": "restrictionKey", - "type": "string" - }, - { - "name": "previousRestrictionValue", - "baseName": "previousRestrictionValue", - "type": "string" - }, - { - "name": "previousRestrictionType", - "baseName": "previousRestrictionType", - "type": "MosaicRestrictionTypeEnum" - }, - { - "name": "newRestrictionValue", - "baseName": "newRestrictionValue", - "type": "string" - }, - { - "name": "newRestrictionType", - "baseName": "newRestrictionType", - "type": "MosaicRestrictionTypeEnum" - } ]; - - static getAttributeTypeMap() { - return MosaicGlobalRestrictionTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicGlobalRestrictionTransactionDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionTransactionDTO.ts deleted file mode 100644 index 2a9b4ba62d..0000000000 --- a/src/infrastructure/model/mosaicGlobalRestrictionTransactionDTO.ts +++ /dev/null @@ -1,150 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicGlobalRestrictionTransactionBodyDTO } from './mosaicGlobalRestrictionTransactionBodyDTO'; -import { MosaicRestrictionTypeEnum } from './mosaicRestrictionTypeEnum'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to set a network-wide restriction rule to a mosaic. -*/ -export class MosaicGlobalRestrictionTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'referenceMosaicId': string; - /** - * Restriction key. - */ - 'restrictionKey': string; - /** - * Previous restriction value. - */ - 'previousRestrictionValue': string; - 'previousRestrictionType': MosaicRestrictionTypeEnum; - /** - * New restriction value. - */ - 'newRestrictionValue': string; - 'newRestrictionType': MosaicRestrictionTypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "referenceMosaicId", - "baseName": "referenceMosaicId", - "type": "string" - }, - { - "name": "restrictionKey", - "baseName": "restrictionKey", - "type": "string" - }, - { - "name": "previousRestrictionValue", - "baseName": "previousRestrictionValue", - "type": "string" - }, - { - "name": "previousRestrictionType", - "baseName": "previousRestrictionType", - "type": "MosaicRestrictionTypeEnum" - }, - { - "name": "newRestrictionValue", - "baseName": "newRestrictionValue", - "type": "string" - }, - { - "name": "newRestrictionType", - "baseName": "newRestrictionType", - "type": "MosaicRestrictionTypeEnum" - } ]; - - static getAttributeTypeMap() { - return MosaicGlobalRestrictionTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicIds.ts b/src/infrastructure/model/mosaicIds.ts deleted file mode 100644 index 7d85291c34..0000000000 --- a/src/infrastructure/model/mosaicIds.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class MosaicIds { - /** - * Array of mosaic identifiers. - */ - 'mosaicIds'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaicIds", - "baseName": "mosaicIds", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MosaicIds.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicInfoDTO.ts b/src/infrastructure/model/mosaicInfoDTO.ts deleted file mode 100644 index 6ca084077c..0000000000 --- a/src/infrastructure/model/mosaicInfoDTO.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicDTO } from './mosaicDTO'; - -export class MosaicInfoDTO { - 'mosaic': MosaicDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaic", - "baseName": "mosaic", - "type": "MosaicDTO" - } ]; - - static getAttributeTypeMap() { - return MosaicInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicMetadataTransactionBodyDTO.ts b/src/infrastructure/model/mosaicMetadataTransactionBodyDTO.ts deleted file mode 100644 index 0b3481280c..0000000000 --- a/src/infrastructure/model/mosaicMetadataTransactionBodyDTO.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class MosaicMetadataTransactionBodyDTO { - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'targetMosaicId': string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "targetMosaicId", - "baseName": "targetMosaicId", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicMetadataTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicMetadataTransactionDTO.ts b/src/infrastructure/model/mosaicMetadataTransactionDTO.ts deleted file mode 100644 index 6548e283d8..0000000000 --- a/src/infrastructure/model/mosaicMetadataTransactionDTO.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicMetadataTransactionBodyDTO } from './mosaicMetadataTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to create or modify a multisig account. -*/ -export class MosaicMetadataTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'targetMosaicId': string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "targetMosaicId", - "baseName": "targetMosaicId", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicMetadataTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicNamesDTO.ts b/src/infrastructure/model/mosaicNamesDTO.ts deleted file mode 100644 index a62b2e1e31..0000000000 --- a/src/infrastructure/model/mosaicNamesDTO.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class MosaicNamesDTO { - /** - * Mosaic identifier. - */ - 'mosaicId': string; - /** - * Mosaic linked namespace names. - */ - 'names': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "names", - "baseName": "names", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MosaicNamesDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicRestrictionEntryTypeEnum.ts b/src/infrastructure/model/mosaicRestrictionEntryTypeEnum.ts deleted file mode 100644 index 2fc22569e1..0000000000 --- a/src/infrastructure/model/mosaicRestrictionEntryTypeEnum.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* - 0 - Mosaic address restriction. - 1 - Mosaic global restriction. -*/ -export enum MosaicRestrictionEntryTypeEnum { - NUMBER_0 = 0, - NUMBER_1 = 1 -} diff --git a/src/infrastructure/model/mosaicRestrictionTypeEnum.ts b/src/infrastructure/model/mosaicRestrictionTypeEnum.ts deleted file mode 100644 index f717ce1fab..0000000000 --- a/src/infrastructure/model/mosaicRestrictionTypeEnum.ts +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of mosaic restriction. * 0 - Uninitialized value indicating no restriction. * 1(EQ) - Allow if equal. * 2 (NE) - Allow if not equal. * 3 (LT) - Allow if less than. * 4 (LE) - Allow if less than or equal. * 5 (GT) - Allow if greater than. * 6 (GE) - Allow if greater than or equal. -*/ -export enum MosaicRestrictionTypeEnum { - NUMBER_0 = 0, - NUMBER_1 = 1, - NUMBER_2 = 2, - NUMBER_3 = 3, - NUMBER_4 = 4, - NUMBER_5 = 5, - NUMBER_6 = 6 -} diff --git a/src/infrastructure/model/mosaicSupplyChangeActionEnum.ts b/src/infrastructure/model/mosaicSupplyChangeActionEnum.ts deleted file mode 100644 index 671d3ebd16..0000000000 --- a/src/infrastructure/model/mosaicSupplyChangeActionEnum.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Direction of the supply change: * 0 - Decrease. * 1 - Increase. -*/ -export enum MosaicSupplyChangeActionEnum { - NUMBER_0 = 0, - NUMBER_1 = 1 -} diff --git a/src/infrastructure/model/mosaicSupplyChangeTransactionBodyDTO.ts b/src/infrastructure/model/mosaicSupplyChangeTransactionBodyDTO.ts deleted file mode 100644 index 0843027b3d..0000000000 --- a/src/infrastructure/model/mosaicSupplyChangeTransactionBodyDTO.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicSupplyChangeActionEnum } from './mosaicSupplyChangeActionEnum'; - -export class MosaicSupplyChangeTransactionBodyDTO { - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - 'action': MosaicSupplyChangeActionEnum; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'delta': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "action", - "baseName": "action", - "type": "MosaicSupplyChangeActionEnum" - }, - { - "name": "delta", - "baseName": "delta", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicSupplyChangeTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicSupplyChangeTransactionDTO.ts b/src/infrastructure/model/mosaicSupplyChangeTransactionDTO.ts deleted file mode 100644 index 06e95a3651..0000000000 --- a/src/infrastructure/model/mosaicSupplyChangeTransactionDTO.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicSupplyChangeActionEnum } from './mosaicSupplyChangeActionEnum'; -import { MosaicSupplyChangeTransactionBodyDTO } from './mosaicSupplyChangeTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to increase or decrease the supply of a mosaic. -*/ -export class MosaicSupplyChangeTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - 'action': MosaicSupplyChangeActionEnum; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'delta': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "action", - "baseName": "action", - "type": "MosaicSupplyChangeActionEnum" - }, - { - "name": "delta", - "baseName": "delta", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return MosaicSupplyChangeTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/mosaicsNamesDTO.ts b/src/infrastructure/model/mosaicsNamesDTO.ts deleted file mode 100644 index d71e159f0a..0000000000 --- a/src/infrastructure/model/mosaicsNamesDTO.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MosaicNamesDTO } from './mosaicNamesDTO'; - -export class MosaicsNamesDTO { - /** - * Array of mosaic names. - */ - 'mosaicNames': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "mosaicNames", - "baseName": "mosaicNames", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MosaicsNamesDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/multisigAccountGraphInfoDTO.ts b/src/infrastructure/model/multisigAccountGraphInfoDTO.ts deleted file mode 100644 index fa1e9b285a..0000000000 --- a/src/infrastructure/model/multisigAccountGraphInfoDTO.ts +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MultisigAccountInfoDTO } from './multisigAccountInfoDTO'; - -export class MultisigAccountGraphInfoDTO { - /** - * Level of the multisig account. - */ - 'level': number; - /** - * Array of multisig accounts for this level. - */ - 'multisigEntries': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "level", - "baseName": "level", - "type": "number" - }, - { - "name": "multisigEntries", - "baseName": "multisigEntries", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MultisigAccountGraphInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/multisigAccountInfoDTO.ts b/src/infrastructure/model/multisigAccountInfoDTO.ts deleted file mode 100644 index 264048744c..0000000000 --- a/src/infrastructure/model/multisigAccountInfoDTO.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MultisigDTO } from './multisigDTO'; - -export class MultisigAccountInfoDTO { - 'multisig': MultisigDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "multisig", - "baseName": "multisig", - "type": "MultisigDTO" - } ]; - - static getAttributeTypeMap() { - return MultisigAccountInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/multisigAccountModificationTransactionBodyDTO.ts b/src/infrastructure/model/multisigAccountModificationTransactionBodyDTO.ts deleted file mode 100644 index e3b659d432..0000000000 --- a/src/infrastructure/model/multisigAccountModificationTransactionBodyDTO.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { CosignatoryModificationDTO } from './cosignatoryModificationDTO'; - -export class MultisigAccountModificationTransactionBodyDTO { - /** - * Number of signatures needed to remove a cosignatory. If we are modifying an existing multisig account, this indicates the relative change of the minimum cosignatories. - */ - 'minRemovalDelta': number; - /** - * Number of signatures needed to approve a transaction. If we are modifying an existing multisig account, this indicates the relative change of the minimum cosignatories. - */ - 'minApprovalDelta': number; - /** - * Array of cosignatory accounts to add or delete. - */ - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "minRemovalDelta", - "baseName": "minRemovalDelta", - "type": "number" - }, - { - "name": "minApprovalDelta", - "baseName": "minApprovalDelta", - "type": "number" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MultisigAccountModificationTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/multisigAccountModificationTransactionDTO.ts b/src/infrastructure/model/multisigAccountModificationTransactionDTO.ts deleted file mode 100644 index 0dbd24af69..0000000000 --- a/src/infrastructure/model/multisigAccountModificationTransactionDTO.ts +++ /dev/null @@ -1,120 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { CosignatoryModificationDTO } from './cosignatoryModificationDTO'; -import { MultisigAccountModificationTransactionBodyDTO } from './multisigAccountModificationTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to create or modify a multisig account. -*/ -export class MultisigAccountModificationTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Number of signatures needed to remove a cosignatory. If we are modifying an existing multisig account, this indicates the relative change of the minimum cosignatories. - */ - 'minRemovalDelta': number; - /** - * Number of signatures needed to approve a transaction. If we are modifying an existing multisig account, this indicates the relative change of the minimum cosignatories. - */ - 'minApprovalDelta': number; - /** - * Array of cosignatory accounts to add or delete. - */ - 'modifications': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "minRemovalDelta", - "baseName": "minRemovalDelta", - "type": "number" - }, - { - "name": "minApprovalDelta", - "baseName": "minApprovalDelta", - "type": "number" - }, - { - "name": "modifications", - "baseName": "modifications", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MultisigAccountModificationTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/multisigDTO.ts b/src/infrastructure/model/multisigDTO.ts deleted file mode 100644 index cb5c6db4c0..0000000000 --- a/src/infrastructure/model/multisigDTO.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class MultisigDTO { - 'accountPublicKey': string; - /** - * Decoded address. - */ - 'accountAddress': string; - /** - * Number of signatures needed to approve a transaction. - */ - 'minApproval': number; - /** - * Number of signatures needed to remove a cosignatory. - */ - 'minRemoval': number; - /** - * Array of public keys of the cosignatory accounts. - */ - 'cosignatoryPublicKeys': Array; - /** - * Array of multisig accounts where the account is cosignatory. - */ - 'multisigPublicKeys': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "accountPublicKey", - "baseName": "accountPublicKey", - "type": "string" - }, - { - "name": "accountAddress", - "baseName": "accountAddress", - "type": "string" - }, - { - "name": "minApproval", - "baseName": "minApproval", - "type": "number" - }, - { - "name": "minRemoval", - "baseName": "minRemoval", - "type": "number" - }, - { - "name": "cosignatoryPublicKeys", - "baseName": "cosignatoryPublicKeys", - "type": "Array" - }, - { - "name": "multisigPublicKeys", - "baseName": "multisigPublicKeys", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return MultisigDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceDTO.ts b/src/infrastructure/model/namespaceDTO.ts deleted file mode 100644 index 649b211740..0000000000 --- a/src/infrastructure/model/namespaceDTO.ts +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { AliasDTO } from './aliasDTO'; -import { NamespaceRegistrationTypeEnum } from './namespaceRegistrationTypeEnum'; - -export class NamespaceDTO { - 'registrationType': NamespaceRegistrationTypeEnum; - /** - * Level of the namespace. - */ - 'depth': number; - /** - * Namespace identifier. - */ - 'level0': string; - /** - * Namespace identifier. - */ - 'level1'?: string; - /** - * Namespace identifier. - */ - 'level2'?: string; - 'alias': AliasDTO; - /** - * Namespace identifier. - */ - 'parentId': string; - 'ownerPublicKey': string; - /** - * Decoded address. - */ - 'ownerAddress': string; - /** - * Height of the blockchain. - */ - 'startHeight': string; - /** - * Height of the blockchain. - */ - 'endHeight': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "registrationType", - "baseName": "registrationType", - "type": "NamespaceRegistrationTypeEnum" - }, - { - "name": "depth", - "baseName": "depth", - "type": "number" - }, - { - "name": "level0", - "baseName": "level0", - "type": "string" - }, - { - "name": "level1", - "baseName": "level1", - "type": "string" - }, - { - "name": "level2", - "baseName": "level2", - "type": "string" - }, - { - "name": "alias", - "baseName": "alias", - "type": "AliasDTO" - }, - { - "name": "parentId", - "baseName": "parentId", - "type": "string" - }, - { - "name": "ownerPublicKey", - "baseName": "ownerPublicKey", - "type": "string" - }, - { - "name": "ownerAddress", - "baseName": "ownerAddress", - "type": "string" - }, - { - "name": "startHeight", - "baseName": "startHeight", - "type": "string" - }, - { - "name": "endHeight", - "baseName": "endHeight", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return NamespaceDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceIds.ts b/src/infrastructure/model/namespaceIds.ts deleted file mode 100644 index a1df641d16..0000000000 --- a/src/infrastructure/model/namespaceIds.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class NamespaceIds { - /** - * Array of namespace identifiers. - */ - 'namespaceIds'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "namespaceIds", - "baseName": "namespaceIds", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return NamespaceIds.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceInfoDTO.ts b/src/infrastructure/model/namespaceInfoDTO.ts deleted file mode 100644 index e5add49ddf..0000000000 --- a/src/infrastructure/model/namespaceInfoDTO.ts +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { NamespaceDTO } from './namespaceDTO'; -import { NamespaceMetaDTO } from './namespaceMetaDTO'; - -export class NamespaceInfoDTO { - 'meta': NamespaceMetaDTO; - 'namespace': NamespaceDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "meta", - "baseName": "meta", - "type": "NamespaceMetaDTO" - }, - { - "name": "namespace", - "baseName": "namespace", - "type": "NamespaceDTO" - } ]; - - static getAttributeTypeMap() { - return NamespaceInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceMetaDTO.ts b/src/infrastructure/model/namespaceMetaDTO.ts deleted file mode 100644 index d06292de30..0000000000 --- a/src/infrastructure/model/namespaceMetaDTO.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class NamespaceMetaDTO { - 'id': string; - 'active': boolean; - 'index': number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "active", - "baseName": "active", - "type": "boolean" - }, - { - "name": "index", - "baseName": "index", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return NamespaceMetaDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceMetadataTransactionBodyDTO.ts b/src/infrastructure/model/namespaceMetadataTransactionBodyDTO.ts deleted file mode 100644 index 6c6114c3a3..0000000000 --- a/src/infrastructure/model/namespaceMetadataTransactionBodyDTO.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class NamespaceMetadataTransactionBodyDTO { - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Namespace identifier. - */ - 'targetNamespaceId'?: string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "targetNamespaceId", - "baseName": "targetNamespaceId", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return NamespaceMetadataTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceMetadataTransactionDTO.ts b/src/infrastructure/model/namespaceMetadataTransactionDTO.ts deleted file mode 100644 index d96015635e..0000000000 --- a/src/infrastructure/model/namespaceMetadataTransactionDTO.ts +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { NamespaceMetadataTransactionBodyDTO } from './namespaceMetadataTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to create or modify a multisig account. -*/ -export class NamespaceMetadataTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'targetPublicKey': string; - /** - * Metadata key scoped to source, target and type. - */ - 'scopedMetadataKey': string; - /** - * Namespace identifier. - */ - 'targetNamespaceId'?: string; - /** - * Change in value size in bytes. - */ - 'valueSizeDelta': number; - /** - * Value size in bytes. - */ - 'valueSize': number; - /** - * When there is an existing value, the new value is calculated as xor(previous-value, value). - */ - 'value': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "targetPublicKey", - "baseName": "targetPublicKey", - "type": "string" - }, - { - "name": "scopedMetadataKey", - "baseName": "scopedMetadataKey", - "type": "string" - }, - { - "name": "targetNamespaceId", - "baseName": "targetNamespaceId", - "type": "string" - }, - { - "name": "valueSizeDelta", - "baseName": "valueSizeDelta", - "type": "number" - }, - { - "name": "valueSize", - "baseName": "valueSize", - "type": "number" - }, - { - "name": "value", - "baseName": "value", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return NamespaceMetadataTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceNameDTO.ts b/src/infrastructure/model/namespaceNameDTO.ts deleted file mode 100644 index 70dc5c29f3..0000000000 --- a/src/infrastructure/model/namespaceNameDTO.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class NamespaceNameDTO { - /** - * Namespace identifier. - */ - 'parentId'?: string; - /** - * Namespace identifier. - */ - 'id': string; - /** - * Namespace name. - */ - 'name': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "parentId", - "baseName": "parentId", - "type": "string" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "name", - "baseName": "name", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return NamespaceNameDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceRegistrationTransactionBodyDTO.ts b/src/infrastructure/model/namespaceRegistrationTransactionBodyDTO.ts deleted file mode 100644 index 252dc827d7..0000000000 --- a/src/infrastructure/model/namespaceRegistrationTransactionBodyDTO.ts +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { NamespaceRegistrationTypeEnum } from './namespaceRegistrationTypeEnum'; - -export class NamespaceRegistrationTransactionBodyDTO { - 'registrationType': NamespaceRegistrationTypeEnum; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - /** - * Namespace identifier. - */ - 'parentId': string; - /** - * Namespace identifier. - */ - 'id': string; - /** - * Namespace name. - */ - 'name': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "registrationType", - "baseName": "registrationType", - "type": "NamespaceRegistrationTypeEnum" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - }, - { - "name": "parentId", - "baseName": "parentId", - "type": "string" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "name", - "baseName": "name", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return NamespaceRegistrationTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceRegistrationTransactionDTO.ts b/src/infrastructure/model/namespaceRegistrationTransactionDTO.ts deleted file mode 100644 index 77719732e5..0000000000 --- a/src/infrastructure/model/namespaceRegistrationTransactionDTO.ts +++ /dev/null @@ -1,135 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { NamespaceRegistrationTransactionBodyDTO } from './namespaceRegistrationTransactionBodyDTO'; -import { NamespaceRegistrationTypeEnum } from './namespaceRegistrationTypeEnum'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to create or renew a namespace. -*/ -export class NamespaceRegistrationTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'registrationType': NamespaceRegistrationTypeEnum; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - /** - * Namespace identifier. - */ - 'parentId': string; - /** - * Namespace identifier. - */ - 'id': string; - /** - * Namespace name. - */ - 'name': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "registrationType", - "baseName": "registrationType", - "type": "NamespaceRegistrationTypeEnum" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - }, - { - "name": "parentId", - "baseName": "parentId", - "type": "string" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "name", - "baseName": "name", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return NamespaceRegistrationTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/namespaceRegistrationTypeEnum.ts b/src/infrastructure/model/namespaceRegistrationTypeEnum.ts deleted file mode 100644 index 1beff44b0a..0000000000 --- a/src/infrastructure/model/namespaceRegistrationTypeEnum.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of namespace: * 0 - Root namespace. * 1 - Subnamespace. -*/ -export enum NamespaceRegistrationTypeEnum { - NUMBER_0 = 0, - NUMBER_1 = 1 -} diff --git a/src/infrastructure/model/networkTypeDTO.ts b/src/infrastructure/model/networkTypeDTO.ts deleted file mode 100644 index b3c55f56cd..0000000000 --- a/src/infrastructure/model/networkTypeDTO.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class NetworkTypeDTO { - /** - * Network name. - */ - 'name': string; - /** - * A short text describing the network. - */ - 'description': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "name", - "baseName": "name", - "type": "string" - }, - { - "name": "description", - "baseName": "description", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return NetworkTypeDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/nodeInfoDTO.ts b/src/infrastructure/model/nodeInfoDTO.ts deleted file mode 100644 index 0f77c4a7b5..0000000000 --- a/src/infrastructure/model/nodeInfoDTO.ts +++ /dev/null @@ -1,94 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { RolesTypeEnum } from './rolesTypeEnum'; - -export class NodeInfoDTO { - 'publicKey': string; - /** - * Port used for the communication. - */ - 'port': number; - 'networkIdentifier': number; - /** - * Version of the application. - */ - 'version': number; - 'roles': RolesTypeEnum; - /** - * Node IP address. - */ - 'host': string; - /** - * Node friendly name. - */ - 'friendlyName': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "publicKey", - "baseName": "publicKey", - "type": "string" - }, - { - "name": "port", - "baseName": "port", - "type": "number" - }, - { - "name": "networkIdentifier", - "baseName": "networkIdentifier", - "type": "number" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "roles", - "baseName": "roles", - "type": "RolesTypeEnum" - }, - { - "name": "host", - "baseName": "host", - "type": "string" - }, - { - "name": "friendlyName", - "baseName": "friendlyName", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return NodeInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/nodeTimeDTO.ts b/src/infrastructure/model/nodeTimeDTO.ts deleted file mode 100644 index 8b69368e73..0000000000 --- a/src/infrastructure/model/nodeTimeDTO.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { CommunicationTimestampsDTO } from './communicationTimestampsDTO'; - -export class NodeTimeDTO { - 'communicationTimestamps': CommunicationTimestampsDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "communicationTimestamps", - "baseName": "communicationTimestamps", - "type": "CommunicationTimestampsDTO" - } ]; - - static getAttributeTypeMap() { - return NodeTimeDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/receiptDTO.ts b/src/infrastructure/model/receiptDTO.ts deleted file mode 100644 index bf803e98a9..0000000000 --- a/src/infrastructure/model/receiptDTO.ts +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { ReceiptTypeEnum } from './receiptTypeEnum'; - -export class ReceiptDTO { - /** - * Version of the receipt. - */ - 'version': number; - 'type': ReceiptTypeEnum; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "ReceiptTypeEnum" - } ]; - - static getAttributeTypeMap() { - return ReceiptDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/receiptTypeEnum.ts b/src/infrastructure/model/receiptTypeEnum.ts deleted file mode 100644 index af56e639ac..0000000000 --- a/src/infrastructure/model/receiptTypeEnum.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of receipt: * 0x124D (4685 decimal) - Mosaic_Rental_Fee. * 0x134E (4942 decimal) - Namespace_Rental_Fee. * 0x2143 (8515 decimal) - Harvest_Fee. * 0x2248 (8776 decimal) - LockHash_Completed. * 0x2348 (9032 decimal) - LockHash_Expired. * 0x2252 (8786 decimal) - LockSecret_Completed. * 0x2352 (9042 decimal) - LockSecret_Expired. * 0x3148 (12616 decimal) - LockHash_Created. * 0x3152 (12626 decimal) - LockSecret_Created. * 0x414D (16717 decimal) - Mosaic_Expired. * 0x414E (16718 decimal) - Namespace_Expired. * 0x424E (16974 decimal) - Namespace_Deleted. * 0x5143 (20803 decimal) - Inflation. * 0xE143 (57667 decimal) - Transaction_Group. * 0xF143 (61763 decimal) - Address_Alias_Resolution. * 0xF243 (62019 decimal) - Mosaic_Alias_Resolution. -*/ -export enum ReceiptTypeEnum { - NUMBER_4685 = 4685, - NUMBER_4942 = 4942, - NUMBER_8515 = 8515, - NUMBER_8776 = 8776, - NUMBER_9032 = 9032, - NUMBER_8786 = 8786, - NUMBER_9042 = 9042, - NUMBER_12616 = 12616, - NUMBER_12626 = 12626, - NUMBER_16717 = 16717, - NUMBER_16718 = 16718, - NUMBER_16974 = 16974, - NUMBER_20803 = 20803, - NUMBER_57667 = 57667, - NUMBER_61763 = 61763, - NUMBER_62019 = 62019 -} diff --git a/src/infrastructure/model/resolutionEntryDTO.ts b/src/infrastructure/model/resolutionEntryDTO.ts deleted file mode 100644 index 9e20122271..0000000000 --- a/src/infrastructure/model/resolutionEntryDTO.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { SourceDTO } from './sourceDTO'; - -export class ResolutionEntryDTO { - 'source': SourceDTO; - 'resolved': any; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "source", - "baseName": "source", - "type": "SourceDTO" - }, - { - "name": "resolved", - "baseName": "resolved", - "type": "any" - } ]; - - static getAttributeTypeMap() { - return ResolutionEntryDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/resolutionStatementBodyDTO.ts b/src/infrastructure/model/resolutionStatementBodyDTO.ts deleted file mode 100644 index a2265b1808..0000000000 --- a/src/infrastructure/model/resolutionStatementBodyDTO.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { ResolutionEntryDTO } from './resolutionEntryDTO'; - -export class ResolutionStatementBodyDTO { - /** - * Height of the blockchain. - */ - 'height': string; - 'unresolved': any; - /** - * Array of resolution entries linked to the unresolved namespaceId. It is an array instead of a single resolution entry since within one block the resolution might change for different sources due to alias related transactions. - */ - 'resolutionEntries': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "height", - "baseName": "height", - "type": "string" - }, - { - "name": "unresolved", - "baseName": "unresolved", - "type": "any" - }, - { - "name": "resolutionEntries", - "baseName": "resolutionEntries", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return ResolutionStatementBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/resolutionStatementDTO.ts b/src/infrastructure/model/resolutionStatementDTO.ts deleted file mode 100644 index a72eddf8e8..0000000000 --- a/src/infrastructure/model/resolutionStatementDTO.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { ResolutionStatementBodyDTO } from './resolutionStatementBodyDTO'; - -/** -* A resolution statement keeps the relation between a namespace alias used in a transaction and the real address or mosaicId. -*/ -export class ResolutionStatementDTO { - 'statement': ResolutionStatementBodyDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "statement", - "baseName": "statement", - "type": "ResolutionStatementBodyDTO" - } ]; - - static getAttributeTypeMap() { - return ResolutionStatementDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/rolesTypeEnum.ts b/src/infrastructure/model/rolesTypeEnum.ts deleted file mode 100644 index 3beb003264..0000000000 --- a/src/infrastructure/model/rolesTypeEnum.ts +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Role of the node: * 1 - Peer node. * 2 - Api node. -*/ -export enum RolesTypeEnum { - NUMBER_1 = 1, - NUMBER_2 = 2 -} diff --git a/src/infrastructure/model/secretLockTransactionBodyDTO.ts b/src/infrastructure/model/secretLockTransactionBodyDTO.ts deleted file mode 100644 index f6607ba19c..0000000000 --- a/src/infrastructure/model/secretLockTransactionBodyDTO.ts +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { LockHashAlgorithmEnum } from './lockHashAlgorithmEnum'; - -export class SecretLockTransactionBodyDTO { - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - 'hashAlgorithm': LockHashAlgorithmEnum; - 'secret': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'recipientAddress': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "duration", - "baseName": "duration", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "hashAlgorithm", - "baseName": "hashAlgorithm", - "type": "LockHashAlgorithmEnum" - }, - { - "name": "secret", - "baseName": "secret", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return SecretLockTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/secretLockTransactionDTO.ts b/src/infrastructure/model/secretLockTransactionDTO.ts deleted file mode 100644 index 820ead5247..0000000000 --- a/src/infrastructure/model/secretLockTransactionDTO.ts +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { LockHashAlgorithmEnum } from './lockHashAlgorithmEnum'; -import { SecretLockTransactionBodyDTO } from './secretLockTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to sends mosaics to a recipient if the proof used is revealed. If the duration is reached, the locked funds go back to the sender of the transaction. -*/ -export class SecretLockTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Duration expressed in number of blocks. - */ - 'duration': string; - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'mosaicId': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - 'hashAlgorithm': LockHashAlgorithmEnum; - 'secret': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'recipientAddress': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "duration", - "baseName": "duration", - "type": "string" - }, - { - "name": "mosaicId", - "baseName": "mosaicId", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - }, - { - "name": "hashAlgorithm", - "baseName": "hashAlgorithm", - "type": "LockHashAlgorithmEnum" - }, - { - "name": "secret", - "baseName": "secret", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return SecretLockTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/secretProofTransactionBodyDTO.ts b/src/infrastructure/model/secretProofTransactionBodyDTO.ts deleted file mode 100644 index f0aa4691b0..0000000000 --- a/src/infrastructure/model/secretProofTransactionBodyDTO.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { LockHashAlgorithmEnum } from './lockHashAlgorithmEnum'; - -export class SecretProofTransactionBodyDTO { - 'hashAlgorithm': LockHashAlgorithmEnum; - 'secret': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'recipientAddress': string; - /** - * Original random set of bytes. - */ - 'proof': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "hashAlgorithm", - "baseName": "hashAlgorithm", - "type": "LockHashAlgorithmEnum" - }, - { - "name": "secret", - "baseName": "secret", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - }, - { - "name": "proof", - "baseName": "proof", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return SecretProofTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/secretProofTransactionDTO.ts b/src/infrastructure/model/secretProofTransactionDTO.ts deleted file mode 100644 index 1f669dfa00..0000000000 --- a/src/infrastructure/model/secretProofTransactionDTO.ts +++ /dev/null @@ -1,123 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { LockHashAlgorithmEnum } from './lockHashAlgorithmEnum'; -import { SecretProofTransactionBodyDTO } from './secretProofTransactionBodyDTO'; -import { TransactionDTO } from './transactionDTO'; - -/** -* Transaction to reveal a proof. -*/ -export class SecretProofTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - 'hashAlgorithm': LockHashAlgorithmEnum; - 'secret': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'recipientAddress': string; - /** - * Original random set of bytes. - */ - 'proof': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "hashAlgorithm", - "baseName": "hashAlgorithm", - "type": "LockHashAlgorithmEnum" - }, - { - "name": "secret", - "baseName": "secret", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - }, - { - "name": "proof", - "baseName": "proof", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return SecretProofTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/serverDTO.ts b/src/infrastructure/model/serverDTO.ts deleted file mode 100644 index 6ca3ec34c3..0000000000 --- a/src/infrastructure/model/serverDTO.ts +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { ServerInfoDTO } from './serverInfoDTO'; - -export class ServerDTO { - 'serverInfo': ServerInfoDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "serverInfo", - "baseName": "serverInfo", - "type": "ServerInfoDTO" - } ]; - - static getAttributeTypeMap() { - return ServerDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/serverInfoDTO.ts b/src/infrastructure/model/serverInfoDTO.ts deleted file mode 100644 index 7477cdec40..0000000000 --- a/src/infrastructure/model/serverInfoDTO.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class ServerInfoDTO { - /** - * catapult-rest component version. - */ - 'restVersion': string; - /** - * catapult-sdk component version. - */ - 'sdkVersion': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "restVersion", - "baseName": "restVersion", - "type": "string" - }, - { - "name": "sdkVersion", - "baseName": "sdkVersion", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return ServerInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/sourceDTO.ts b/src/infrastructure/model/sourceDTO.ts deleted file mode 100644 index 5a0da10f50..0000000000 --- a/src/infrastructure/model/sourceDTO.ts +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Transaction that triggered the receipt. -*/ -export class SourceDTO { - /** - * Transaction index within the block. - */ - 'primaryId': number; - /** - * Transaction index inside within the aggregate transaction. If the transaction is not an inner transaction, then the secondary id is set to 0. - */ - 'secondaryId': number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "primaryId", - "baseName": "primaryId", - "type": "number" - }, - { - "name": "secondaryId", - "baseName": "secondaryId", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return SourceDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/statementsDTO.ts b/src/infrastructure/model/statementsDTO.ts deleted file mode 100644 index 19826a445c..0000000000 --- a/src/infrastructure/model/statementsDTO.ts +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { ResolutionStatementDTO } from './resolutionStatementDTO'; -import { TransactionStatementDTO } from './transactionStatementDTO'; - -/** -* Collection of transaction statements and resolutions triggered for the block requested. -*/ -export class StatementsDTO { - /** - * Array of transaction statements for the block requested. - */ - 'transactionStatements': Array; - /** - * Array of address resolutions for the block requested. - */ - 'addressResolutionStatements': Array; - /** - * Array of mosaic resolutions for the block requested. - */ - 'mosaicResolutionStatements': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "transactionStatements", - "baseName": "transactionStatements", - "type": "Array" - }, - { - "name": "addressResolutionStatements", - "baseName": "addressResolutionStatements", - "type": "Array" - }, - { - "name": "mosaicResolutionStatements", - "baseName": "mosaicResolutionStatements", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return StatementsDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/storageInfoDTO.ts b/src/infrastructure/model/storageInfoDTO.ts deleted file mode 100644 index 80d9c34e30..0000000000 --- a/src/infrastructure/model/storageInfoDTO.ts +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class StorageInfoDTO { - /** - * Number of blocks stored. - */ - 'numBlocks': number; - /** - * Number of transactions stored. - */ - 'numTransactions': number; - /** - * Number of accounts created. - */ - 'numAccounts': number; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "numBlocks", - "baseName": "numBlocks", - "type": "number" - }, - { - "name": "numTransactions", - "baseName": "numTransactions", - "type": "number" - }, - { - "name": "numAccounts", - "baseName": "numAccounts", - "type": "number" - } ]; - - static getAttributeTypeMap() { - return StorageInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionBodyDTO.ts b/src/infrastructure/model/transactionBodyDTO.ts deleted file mode 100644 index 0c1e60c8dc..0000000000 --- a/src/infrastructure/model/transactionBodyDTO.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class TransactionBodyDTO { - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return TransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionDTO.ts b/src/infrastructure/model/transactionDTO.ts deleted file mode 100644 index a7b021d308..0000000000 --- a/src/infrastructure/model/transactionDTO.ts +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { EntityDTO } from './entityDTO'; -import { TransactionBodyDTO } from './transactionBodyDTO'; -import { VerifiableEntityDTO } from './verifiableEntityDTO'; - -export class TransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return TransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionHashes.ts b/src/infrastructure/model/transactionHashes.ts deleted file mode 100644 index 01575458a1..0000000000 --- a/src/infrastructure/model/transactionHashes.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class TransactionHashes { - /** - * Array of transaction hashes. - */ - 'hashes'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "hashes", - "baseName": "hashes", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return TransactionHashes.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionIds.ts b/src/infrastructure/model/transactionIds.ts deleted file mode 100644 index 8b5d3b430a..0000000000 --- a/src/infrastructure/model/transactionIds.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class TransactionIds { - /** - * Array of transaction ids. - */ - 'transactionIds'?: Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "transactionIds", - "baseName": "transactionIds", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return TransactionIds.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionInfoDTO.ts b/src/infrastructure/model/transactionInfoDTO.ts deleted file mode 100644 index bdd38fcae1..0000000000 --- a/src/infrastructure/model/transactionInfoDTO.ts +++ /dev/null @@ -1,52 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { TransactionMetaDTO } from './transactionMetaDTO'; - -export class TransactionInfoDTO { - 'meta': TransactionMetaDTO; - 'transaction': any; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "meta", - "baseName": "meta", - "type": "TransactionMetaDTO" - }, - { - "name": "transaction", - "baseName": "transaction", - "type": "any" - } ]; - - static getAttributeTypeMap() { - return TransactionInfoDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionMetaDTO.ts b/src/infrastructure/model/transactionMetaDTO.ts deleted file mode 100644 index d2db983cba..0000000000 --- a/src/infrastructure/model/transactionMetaDTO.ts +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class TransactionMetaDTO { - /** - * Height of the blockchain. - */ - 'height': string; - 'hash': string; - 'merkleComponentHash': string; - 'index': number; - 'id': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "height", - "baseName": "height", - "type": "string" - }, - { - "name": "hash", - "baseName": "hash", - "type": "string" - }, - { - "name": "merkleComponentHash", - "baseName": "merkleComponentHash", - "type": "string" - }, - { - "name": "index", - "baseName": "index", - "type": "number" - }, - { - "name": "id", - "baseName": "id", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return TransactionMetaDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionPayload.ts b/src/infrastructure/model/transactionPayload.ts deleted file mode 100644 index ad924c23f8..0000000000 --- a/src/infrastructure/model/transactionPayload.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class TransactionPayload { - /** - * Transaction payload. - */ - 'payload'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "payload", - "baseName": "payload", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return TransactionPayload.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionStatementBodyDTO.ts b/src/infrastructure/model/transactionStatementBodyDTO.ts deleted file mode 100644 index eff40b8084..0000000000 --- a/src/infrastructure/model/transactionStatementBodyDTO.ts +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { SourceDTO } from './sourceDTO'; - -export class TransactionStatementBodyDTO { - /** - * Height of the blockchain. - */ - 'height': string; - 'source': SourceDTO; - /** - * Array of receipts. - */ - 'receipts': Array; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "height", - "baseName": "height", - "type": "string" - }, - { - "name": "source", - "baseName": "source", - "type": "SourceDTO" - }, - { - "name": "receipts", - "baseName": "receipts", - "type": "Array" - } ]; - - static getAttributeTypeMap() { - return TransactionStatementBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionStatementDTO.ts b/src/infrastructure/model/transactionStatementDTO.ts deleted file mode 100644 index d67ec877d7..0000000000 --- a/src/infrastructure/model/transactionStatementDTO.ts +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { TransactionStatementBodyDTO } from './transactionStatementBodyDTO'; - -/** -* Collection of receipts related to a transaction. -*/ -export class TransactionStatementDTO { - 'statement': TransactionStatementBodyDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "statement", - "baseName": "statement", - "type": "TransactionStatementBodyDTO" - } ]; - - static getAttributeTypeMap() { - return TransactionStatementDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionStatusDTO.ts b/src/infrastructure/model/transactionStatusDTO.ts deleted file mode 100644 index 2175477485..0000000000 --- a/src/infrastructure/model/transactionStatusDTO.ts +++ /dev/null @@ -1,75 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class TransactionStatusDTO { - 'group'?: string; - 'status': string; - 'hash'?: string; - /** - * Duration expressed in number of blocks. - */ - 'deadline'?: string; - /** - * Height of the blockchain. - */ - 'height'?: string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "group", - "baseName": "group", - "type": "string" - }, - { - "name": "status", - "baseName": "status", - "type": "string" - }, - { - "name": "hash", - "baseName": "hash", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "height", - "baseName": "height", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return TransactionStatusDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transactionTypeEnum.ts b/src/infrastructure/model/transactionTypeEnum.ts deleted file mode 100644 index 7ede0e278a..0000000000 --- a/src/infrastructure/model/transactionTypeEnum.ts +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -/** -* Type of transaction: * 0x414C (16716 decimal) - AccountLinkTransaction. * 0x4141 (16705 decimal) - AggregateCompleteTransaction. * 0x4241 (16961 decimal) - AggregateBondedTransaction. * 0x414D (16717 decimal) - MosaicDefinitionTransaction. * 0x424D (16973 decimal) - MosaicSupplyChangeTransaction. * 0x414E (16718 decimal) - NamespaceRegistrationTransaction. * 0x424E (16974 decimal) - AddressAliasTransaction. * 0x434E (17230 decimal) - MosaicAliasTransaction. * 0x4144 (16708 decimal) - AccountMetadataTransaction. * 0x4244 (16964 decimal) - MosaicMetadataTransaction. * 0x4344 (17220 decimal) - NamespaceMetadataTransaction. * 0x4155 (16725 decimal) - MultisigAccountModificationTransaction. * 0x4148 (16712 decimal) - HashLockTransaction. * 0x4152 (16722 decimal) - SecretLockTransaction. * 0x4252 (16978 decimal) - SecretProofTransaction. * 0x4150 (16720 decimal) - AccountAddressRestrictionTransaction. * 0x4250 (16976 decimal) - AccountMosaicRestrictionTransaction. * 0x4350 (17232 decimal) - AccountOperationRestrictionTransaction. * 0x4151 (16721 decimal) - MosaicGlobalRestrictionTransaction. * 0x4251 (16977 decimal) - MosaicAddressRestrictionTransaction. * 0x4154 (16724 decimal) - TransferTransaction. -*/ -export enum TransactionTypeEnum { - NUMBER_16716 = 16716, - NUMBER_16705 = 16705, - NUMBER_16961 = 16961, - NUMBER_16717 = 16717, - NUMBER_16973 = 16973, - NUMBER_16718 = 16718, - NUMBER_16974 = 16974, - NUMBER_17230 = 17230, - NUMBER_16708 = 16708, - NUMBER_16964 = 16964, - NUMBER_17220 = 17220, - NUMBER_16725 = 16725, - NUMBER_16712 = 16712, - NUMBER_16722 = 16722, - NUMBER_16978 = 16978, - NUMBER_16720 = 16720, - NUMBER_16976 = 16976, - NUMBER_17232 = 17232, - NUMBER_16721 = 16721, - NUMBER_16977 = 16977, - NUMBER_16724 = 16724 -} diff --git a/src/infrastructure/model/transferTransactionBodyDTO.ts b/src/infrastructure/model/transferTransactionBodyDTO.ts deleted file mode 100644 index ec7bd7080f..0000000000 --- a/src/infrastructure/model/transferTransactionBodyDTO.ts +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MessageDTO } from './messageDTO'; -import { Mosaic } from './mosaic'; - -export class TransferTransactionBodyDTO { - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'recipientAddress': string; - /** - * Array of mosaics sent to the recipient. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of a instead of a mosaicId corresponds to a mosaicId. - */ - 'mosaics': Array; - 'message': MessageDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - }, - { - "name": "mosaics", - "baseName": "mosaics", - "type": "Array" - }, - { - "name": "message", - "baseName": "message", - "type": "MessageDTO" - } ]; - - static getAttributeTypeMap() { - return TransferTransactionBodyDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/transferTransactionDTO.ts b/src/infrastructure/model/transferTransactionDTO.ts deleted file mode 100644 index 6d1095dd8a..0000000000 --- a/src/infrastructure/model/transferTransactionDTO.ts +++ /dev/null @@ -1,118 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - -import { MessageDTO } from './messageDTO'; -import { Mosaic } from './mosaic'; -import { TransactionDTO } from './transactionDTO'; -import { TransferTransactionBodyDTO } from './transferTransactionBodyDTO'; - -/** -* Transaction to transfer mosaics and a message to another account. -*/ -export class TransferTransactionDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - 'signerPublicKey': string; - /** - * Entity version. The higher byte represents the network identifier: * 0x68 (MAIN_NET) - Public main network. * 0x98 (TEST_NET) - Public test network. * 0x60 (MIJIN) - Private network. * 0x90 (MIJIN_TEST) - Private test network. - */ - 'version': number; - 'type': number; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'maxFee': string; - /** - * Duration expressed in number of blocks. - */ - 'deadline': string; - /** - * Address decoded. If the bit 0 of byte 0 is not set (like in 0x90), then it is a regular address. Else (e.g. 0x91) it represents a namespace id which starts at byte 1. - */ - 'recipientAddress': string; - /** - * Array of mosaics sent to the recipient. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of a instead of a mosaicId corresponds to a mosaicId. - */ - 'mosaics': Array; - 'message': MessageDTO; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - }, - { - "name": "signerPublicKey", - "baseName": "signerPublicKey", - "type": "string" - }, - { - "name": "version", - "baseName": "version", - "type": "number" - }, - { - "name": "type", - "baseName": "type", - "type": "number" - }, - { - "name": "maxFee", - "baseName": "maxFee", - "type": "string" - }, - { - "name": "deadline", - "baseName": "deadline", - "type": "string" - }, - { - "name": "recipientAddress", - "baseName": "recipientAddress", - "type": "string" - }, - { - "name": "mosaics", - "baseName": "mosaics", - "type": "Array" - }, - { - "name": "message", - "baseName": "message", - "type": "MessageDTO" - } ]; - - static getAttributeTypeMap() { - return TransferTransactionDTO.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/unresolvedMosaic.ts b/src/infrastructure/model/unresolvedMosaic.ts deleted file mode 100644 index 10947f3525..0000000000 --- a/src/infrastructure/model/unresolvedMosaic.ts +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class UnresolvedMosaic { - /** - * Mosaic identifier. If the most significant bit of byte 0 is set, a namespaceId (alias) is used instead of the real mosaic identifier. - */ - 'id': string; - /** - * Absolute amount. An amount of 123456789 (absolute) for a mosaic with divisibility 6 means 123.456789 (relative). - */ - 'amount': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "id", - "baseName": "id", - "type": "string" - }, - { - "name": "amount", - "baseName": "amount", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return UnresolvedMosaic.attributeTypeMap; - } -} - diff --git a/src/infrastructure/model/verifiableEntityDTO.ts b/src/infrastructure/model/verifiableEntityDTO.ts deleted file mode 100644 index db424ee6b9..0000000000 --- a/src/infrastructure/model/verifiableEntityDTO.ts +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2019 NEM - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -/** - * Catapult REST Endpoints - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) - * - * The version of the OpenAPI document: 0.7.19 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -export class VerifiableEntityDTO { - /** - * Entity\'s signature generated by the signer. - */ - 'signature': string; - - static discriminator: string | undefined = undefined; - - static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [ - { - "name": "signature", - "baseName": "signature", - "type": "string" - } ]; - - static getAttributeTypeMap() { - return VerifiableEntityDTO.attributeTypeMap; - } -} - From 3637bff3f7a66db7d3c169a34c417b1fb4920880 Mon Sep 17 00:00:00 2001 From: Fernando Boucquez Date: Mon, 11 Nov 2019 17:28:27 +0100 Subject: [PATCH 2/2] Reverted NetworkHttp. Now it uses the node routes Added NetworkInfo with the name and description. --- e2e/infrastructure/NetworkHttp.spec.ts | 25 +++++++++++----- package-lock.json | 6 ++-- package.json | 2 +- src/infrastructure/NetworkHttp.ts | 39 ++++++++++++++----------- src/infrastructure/NetworkRepository.ts | 11 +++++-- src/model/blockchain/NetworkInfo.ts | 37 +++++++++++++++++++++++ 6 files changed, 90 insertions(+), 30 deletions(-) create mode 100644 src/model/blockchain/NetworkInfo.ts diff --git a/e2e/infrastructure/NetworkHttp.spec.ts b/e2e/infrastructure/NetworkHttp.spec.ts index 34d7a78f4d..38ffe6de83 100644 --- a/e2e/infrastructure/NetworkHttp.spec.ts +++ b/e2e/infrastructure/NetworkHttp.spec.ts @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import {expect} from 'chai'; -import {NetworkHttp} from '../../src/infrastructure/NetworkHttp'; -import {NetworkType} from '../../src/model/blockchain/NetworkType'; +import { expect } from 'chai'; +import { NetworkHttp } from '../../src/infrastructure/NetworkHttp'; +import { NetworkType } from '../../src/model/blockchain/NetworkType'; describe('NetworkHttp', () => { let networkHttp: NetworkHttp; @@ -34,10 +34,21 @@ describe('NetworkHttp', () => { describe('getNetworkType', () => { it('should return network type', (done) => { networkHttp.getNetworkType() - .subscribe((networkType) => { - expect(networkType).to.be.equal(NetworkType.MIJIN_TEST); - done(); - }); + .subscribe((networkType) => { + expect(networkType).to.be.equal(NetworkType.MIJIN_TEST); + done(); + }); + }); + }); + + describe('getNetworkInfo', () => { + it('should return network info', (done) => { + networkHttp.getNetworkInfo() + .subscribe((networkInfo) => { + expect('mijinTest').to.be.equal(networkInfo.name); + expect('catapult development network').to.be.equal(networkInfo.description); + done(); + }); }); }); }); diff --git a/package-lock.json b/package-lock.json index 5f86dc5dc5..c899dc7e61 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3738,9 +3738,9 @@ } }, "nem2-sdk-openapi-typescript-node-client": { - "version": "0.7.2-0.1", - "resolved": "https://registry.npmjs.org/nem2-sdk-openapi-typescript-node-client/-/nem2-sdk-openapi-typescript-node-client-0.7.2-0.1.tgz", - "integrity": "sha512-MJLf3ndSaUr/hFLyxxfapdkAfDkdQ15YUQGvKtmwE5BS/V2MLxZP86se5hSCkntcvQ354z6mXcd8K7D7rKzcoA==", + "version": "0.7.2-0.2-SNAPSHOT.201911111714", + "resolved": "https://registry.npmjs.org/nem2-sdk-openapi-typescript-node-client/-/nem2-sdk-openapi-typescript-node-client-0.7.2-0.2-SNAPSHOT.201911111714.tgz", + "integrity": "sha512-FwlZs5pQ0ycAi4B0d83+ZpRNLHG7fmSYmHlQkeG+mAMyiOs3YZXpEKTtD3tP2/4BYYJCCqerwtgFBEXzRMXXUA==", "requires": { "@types/bluebird": "3.5.28", "@types/request": "2.47.0", diff --git a/package.json b/package.json index 9e02d5ac84..ad5dc626e8 100644 --- a/package.json +++ b/package.json @@ -62,7 +62,7 @@ "js-sha256": "^0.9.0", "js-sha3": "^0.8.0", "long": "^4.0.0", - "nem2-sdk-openapi-typescript-node-client": "0.7.2-0.1", + "nem2-sdk-openapi-typescript-node-client": "^0.7.2-0.2-SNAPSHOT.201911111714", "request": "^2.88.0", "request-promise-native": "^1.0.5", "ripemd160": "^2.0.2", diff --git a/src/infrastructure/NetworkHttp.ts b/src/infrastructure/NetworkHttp.ts index 81ebb01de4..ec08bc1a29 100644 --- a/src/infrastructure/NetworkHttp.ts +++ b/src/infrastructure/NetworkHttp.ts @@ -17,11 +17,10 @@ import { from as observableFrom, Observable, throwError } from 'rxjs'; import { catchError, map } from 'rxjs/operators'; import { NetworkType } from '../model/blockchain/NetworkType'; -import { NodeInfo } from '../model/node/NodeInfo'; import { Http } from './Http'; import { NetworkRepository } from './NetworkRepository'; -import { NetworkRoutesApi, NetworkTypeNameEnum } from "nem2-sdk-openapi-typescript-node-client"; -import { NetworkTypeDTO } from "nem2-sdk-openapi-typescript-node-client/model/networkTypeDTO"; +import { NetworkRoutesApi, NodeRoutesApi } from "nem2-sdk-openapi-typescript-node-client"; +import { NetworkInfo } from "../model/blockchain/NetworkInfo"; /** * Network http repository. @@ -35,6 +34,12 @@ export class NetworkHttp extends Http implements NetworkRepository { */ private networkRoutesApi: NetworkRoutesApi; + /** + * @internal + * Nem2 Library node routes api + */ + private nodeRoutesApi: NodeRoutesApi; + /** * Constructor * @param url @@ -42,6 +47,7 @@ export class NetworkHttp extends Http implements NetworkRepository { constructor(url: string) { super(); this.networkRoutesApi = new NetworkRoutesApi(url); + this.nodeRoutesApi = new NodeRoutesApi(url); } @@ -51,21 +57,20 @@ export class NetworkHttp extends Http implements NetworkRepository { * @return network type enum. */ public getNetworkType(): Observable { + return observableFrom(this.nodeRoutesApi.getNodeInfo()).pipe( + map((({body}) => body.networkIdentifier), + catchError((error) => throwError(this.errorHandling(error)))), + ); + } + + /** + * Get network info + * + * @return network type enum. + */ + public getNetworkInfo(): Observable { return observableFrom(this.networkRoutesApi.getNetworkType()).pipe( - map((({body}) => { - switch (body.name) { - case NetworkTypeNameEnum.Mijin: - return NetworkType.MIJIN; - case NetworkTypeNameEnum.MijinTest: - return NetworkType.MIJIN_TEST; - case NetworkTypeNameEnum.Public: - return NetworkType.MAIN_NET; - case NetworkTypeNameEnum.PublicTest: - return NetworkType.TEST_NET; - default: - throw new Error(`Unknown NetworkType with name ${body.name}`); - } - }), + map((({body}) => new NetworkInfo(body.name, body.description)), catchError((error) => throwError(this.errorHandling(error)))), ); } diff --git a/src/infrastructure/NetworkRepository.ts b/src/infrastructure/NetworkRepository.ts index 9e5b6dd5da..9708487fe5 100644 --- a/src/infrastructure/NetworkRepository.ts +++ b/src/infrastructure/NetworkRepository.ts @@ -14,8 +14,9 @@ * limitations under the License. */ -import {Observable} from 'rxjs'; -import {NetworkType} from '../model/blockchain/NetworkType'; +import { Observable } from 'rxjs'; +import { NetworkType } from '../model/blockchain/NetworkType'; +import { NetworkInfo } from "../model/blockchain/NetworkInfo"; /** * Network interface repository. @@ -29,4 +30,10 @@ export interface NetworkRepository { * @return network type enum. */ getNetworkType(): Observable; + + /** + * Get current network info with the network name and description. + * @return NetworkInfo. + */ + getNetworkInfo(): Observable } diff --git a/src/model/blockchain/NetworkInfo.ts b/src/model/blockchain/NetworkInfo.ts new file mode 100644 index 0000000000..a744bdd54e --- /dev/null +++ b/src/model/blockchain/NetworkInfo.ts @@ -0,0 +1,37 @@ +/* + * Copyright 2019 NEM + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * The network info. + */ +export class NetworkInfo { + + /** + * @param name + * @param description + */ + constructor( + /** + * The network name. + */ + public readonly name: string, + /** + * The network description. + */ + public readonly description: string) { + + } +}