|
14 | 14 | * limitations under the License. |
15 | 15 | */ |
16 | 16 |
|
17 | | -import {from as observableFrom, Observable, throwError} from 'rxjs'; |
18 | | -import {catchError, map} from 'rxjs/operators'; |
| 17 | +import { MetadataDTO, MetadataRoutesApi } from 'nem2-sdk-openapi-typescript-node-client'; |
| 18 | +import { from as observableFrom, Observable, throwError } from 'rxjs'; |
| 19 | +import { catchError, map } from 'rxjs/operators'; |
19 | 20 | import { Convert } from '../core/format/Convert'; |
20 | 21 | import { Address } from '../model/account/Address'; |
21 | | -import { NetworkType } from '../model/blockchain/NetworkType'; |
22 | 22 | import { Metadata } from '../model/metadata/Metadata'; |
23 | 23 | import { MetadataEntry } from '../model/metadata/MetadataEntry'; |
24 | 24 | import { MetadataType } from '../model/metadata/MetadataType'; |
25 | | -import {MosaicId} from '../model/mosaic/MosaicId'; |
26 | | -import {NamespaceId} from '../model/namespace/NamespaceId'; |
27 | | -import {UInt64} from '../model/UInt64'; |
28 | | -import { MetadataDTO, MetadataRoutesApi } from './api'; |
29 | | -import {Http} from './Http'; |
| 25 | +import { MosaicId } from '../model/mosaic/MosaicId'; |
| 26 | +import { NamespaceId } from '../model/namespace/NamespaceId'; |
| 27 | +import { UInt64 } from '../model/UInt64'; |
| 28 | +import { Http } from './Http'; |
30 | 29 | import { MetadataRepository } from './MetadataRepository'; |
31 | 30 | import { QueryParams } from './QueryParams'; |
32 | 31 |
|
@@ -214,10 +213,10 @@ export class MetadataHttp extends Http implements MetadataRepository { |
214 | 213 |
|
215 | 214 | switch (metadataEntry.metadataType.valueOf()) { |
216 | 215 | case MetadataType.Mosaic: |
217 | | - targetId = new MosaicId(metadataEntry.targetId); |
| 216 | + targetId = new MosaicId(metadataEntry.targetId as any); |
218 | 217 | break; |
219 | 218 | case MetadataType.Namespace: |
220 | | - targetId = NamespaceId.createFromEncoded(metadataEntry.targetId); |
| 219 | + targetId = NamespaceId.createFromEncoded(metadataEntry.targetId as any); |
221 | 220 | break; |
222 | 221 | default: |
223 | 222 | targetId = undefined; |
|
0 commit comments