Skip to content

Commit 5fe1251

Browse files
committed
Updated metadata DTO models with latest OpenApi changes
1 parent c46ae92 commit 5fe1251

File tree

5 files changed

+7
-54
lines changed

5 files changed

+7
-54
lines changed

src/infrastructure/MetadataHttp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ export class MetadataHttp extends Http implements MetadataRepository {
251251
targetId = undefined;
252252
}
253253
return new Metadata(
254-
metadata.meta.id,
254+
metadata.id,
255255
new MetadataEntry(
256256
metadataEntry.compositeHash,
257257
metadataEntry.senderPublicKey,

src/infrastructure/model/metadataDTO.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,18 @@
2626
*/
2727

2828
import { MetadataEntryDTO } from './metadataEntryDTO';
29-
import { MetadataMetaDTO } from './metadataMetaDTO';
3029

3130
export class MetadataDTO {
32-
'meta': MetadataMetaDTO;
31+
'id': string;
3332
'metadataEntry': MetadataEntryDTO;
3433

3534
static discriminator: string | undefined = undefined;
3635

3736
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
3837
{
39-
"name": "meta",
40-
"baseName": "meta",
41-
"type": "MetadataMetaDTO"
38+
"name": "id",
39+
"baseName": "id",
40+
"type": "string"
4241
},
4342
{
4443
"name": "metadataEntry",

src/infrastructure/model/metadataMetaDTO.ts

Lines changed: 0 additions & 45 deletions
This file was deleted.

src/infrastructure/model/models.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ export * from './messageTypeEnum';
8686
export * from './metadataDTO';
8787
export * from './metadataEntriesDTO';
8888
export * from './metadataEntryDTO';
89-
export * from './metadataMetaDTO';
9089
export * from './metadataTypeEnum';
9190
export * from './modelError';
9291
export * from './mosaic';
@@ -248,7 +247,6 @@ import { MessageTypeEnum } from './messageTypeEnum';
248247
import { MetadataDTO } from './metadataDTO';
249248
import { MetadataEntriesDTO } from './metadataEntriesDTO';
250249
import { MetadataEntryDTO } from './metadataEntryDTO';
251-
import { MetadataMetaDTO } from './metadataMetaDTO';
252250
import { MetadataTypeEnum } from './metadataTypeEnum';
253251
import { ModelError } from './modelError';
254252
import { Mosaic } from './mosaic';
@@ -431,7 +429,6 @@ let typeMap: {[index: string]: any} = {
431429
"MetadataDTO": MetadataDTO,
432430
"MetadataEntriesDTO": MetadataEntriesDTO,
433431
"MetadataEntryDTO": MetadataEntryDTO,
434-
"MetadataMetaDTO": MetadataMetaDTO,
435432
"ModelError": ModelError,
436433
"Mosaic": Mosaic,
437434
"MosaicAddressRestrictionTransactionBodyDTO": MosaicAddressRestrictionTransactionBodyDTO,

src/infrastructure/model/receiptTypeEnum.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export enum ReceiptTypeEnum {
3535
NUMBER_8515 = <any> 8515,
3636
NUMBER_8776 = <any> 8776,
3737
NUMBER_9032 = <any> 9032,
38+
NUMBER_8786 = <any> 8786,
39+
NUMBER_9042 = <any> 9042,
3840
NUMBER_12616 = <any> 12616,
3941
NUMBER_12626 = <any> 12626,
4042
NUMBER_16717 = <any> 16717,

0 commit comments

Comments
 (0)