From 707a7da0adbe9afde58f6bf7b2f89df3de5be28d Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Tue, 8 Oct 2019 10:52:39 +0100 Subject: [PATCH 1/3] Fixed Namespace Alias bug Fixed error handling in Metadata and MosaicRestriction bug --- src/infrastructure/NamespaceHttp.ts | 4 ++-- src/service/MetadataTransactionService.ts | 21 +++++++++++-------- .../MosaicRestrictionTransactionService.ts | 7 ++++--- 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/infrastructure/NamespaceHttp.ts b/src/infrastructure/NamespaceHttp.ts index 3d674a8769..785903f142 100644 --- a/src/infrastructure/NamespaceHttp.ts +++ b/src/infrastructure/NamespaceHttp.ts @@ -270,9 +270,9 @@ export class NamespaceHttp extends Http implements NamespaceRepository { */ private extractAlias(namespace: any): Alias { if (namespace.alias && namespace.alias.type === AliasType.Mosaic) { - return new MosaicAlias(namespace.alias.mosaicId); + return new MosaicAlias(new MosaicId(namespace.alias.mosaicId)); } else if (namespace.alias && namespace.alias.type === AliasType.Address) { - return new AddressAlias(namespace.alias.address); + return new AddressAlias(Address.createFromEncoded(namespace.alias.address)); } return new EmptyAlias(); diff --git a/src/service/MetadataTransactionService.ts b/src/service/MetadataTransactionService.ts index b0d008e382..d4f2e1a749 100644 --- a/src/service/MetadataTransactionService.ts +++ b/src/service/MetadataTransactionService.ts @@ -142,8 +142,9 @@ export class MetadataTransactionService { maxFee, ); }), - catchError((err) => { - if (err.response.statusCode === 404) { + catchError((err: Error) => { + const error = JSON.parse(err.message); + if (error && error.statusCode && error.statusCode === 404) { const newValueBytes = Convert.utf8ToUint8(value); return of(AccountMetadataTransaction.create( deadline, @@ -155,7 +156,7 @@ export class MetadataTransactionService { maxFee, )); } - throw Error(err); + throw Error(err.message); })); } @@ -195,8 +196,9 @@ export class MetadataTransactionService { maxFee, ); }), - catchError((err) => { - if (err.response.statusCode === 404) { + catchError((err: Error) => { + const error = JSON.parse(err.message); + if (error && error.statusCode && error.statusCode === 404) { const newValueBytes = Convert.utf8ToUint8(value); return of(MosaicMetadataTransaction.create( deadline, @@ -209,7 +211,7 @@ export class MetadataTransactionService { maxFee, )); } - throw Error(err); + throw Error(err.message); })); } @@ -249,8 +251,9 @@ export class MetadataTransactionService { maxFee, ); }), - catchError((err) => { - if (err.response.statusCode === 404) { + catchError((err: Error) => { + const error = JSON.parse(err.message); + if (error && error.statusCode && error.statusCode === 404) { const newValueBytes = Convert.utf8ToUint8(value); return of(NamespaceMetadataTransaction.create( deadline, @@ -263,7 +266,7 @@ export class MetadataTransactionService { maxFee, )); } - throw Error(err); + throw Error(err.message); })); } } diff --git a/src/service/MosaicRestrictionTransactionService.ts b/src/service/MosaicRestrictionTransactionService.ts index 63d7728d26..60576f11f6 100644 --- a/src/service/MosaicRestrictionTransactionService.ts +++ b/src/service/MosaicRestrictionTransactionService.ts @@ -127,8 +127,9 @@ export class MosaicRestrictionTransactionService { maxFee, ); }), - catchError((err) => { - if (err.response && err.response.statusCode && err.response.statusCode === 404) { + catchError((err: Error) => { + const error = JSON.parse(err.message); + if (error && error.statusCode && error.statusCode === 404) { return of(MosaicAddressRestrictionTransaction.create( deadline, mosaicId, @@ -140,7 +141,7 @@ export class MosaicRestrictionTransactionService { maxFee, )); } - throw Error(err); + throw Error(err.message); })); }), ); From 60b9daae726f161f85c9b7e2dc77116df7f6f84b Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Tue, 8 Oct 2019 11:34:07 +0100 Subject: [PATCH 2/3] Fixed #291 --- src/infrastructure/RestrictionHttp.ts | 8 +- src/infrastructure/api/accountRoutesApi.ts | 4 +- src/infrastructure/api/apis.ts | 2 +- src/infrastructure/api/blockRoutesApi.ts | 2 +- src/infrastructure/api/chainRoutesApi.ts | 2 +- src/infrastructure/api/diagnosticRoutesApi.ts | 2 +- src/infrastructure/api/metadataRoutesApi.ts | 2 +- src/infrastructure/api/mosaicRoutesApi.ts | 126 ++++++++++++++++- src/infrastructure/api/namespaceRoutesApi.ts | 2 +- src/infrastructure/api/networkRoutesApi.ts | 2 +- src/infrastructure/api/nodeRoutesApi.ts | 2 +- .../api/restrictionRoutesApi.ts | 2 +- .../api/transactionRoutesApi.ts | 2 +- ...ccountAddressRestrictionModificationDTO.ts | 2 +- ...untAddressRestrictionTransactionBodyDTO.ts | 2 +- ...accountAddressRestrictionTransactionDTO.ts | 2 +- src/infrastructure/model/accountDTO.ts | 2 +- src/infrastructure/model/accountIds.ts | 2 +- src/infrastructure/model/accountInfoDTO.ts | 2 +- .../model/accountLinkActionEnum.ts | 2 +- .../model/accountLinkTransactionBodyDTO.ts | 2 +- .../model/accountLinkTransactionDTO.ts | 2 +- .../accountMetadataTransactionBodyDTO.ts | 2 +- .../model/accountMetadataTransactionDTO.ts | 2 +- ...accountMosaicRestrictionModificationDTO.ts | 2 +- ...ountMosaicRestrictionTransactionBodyDTO.ts | 2 +- .../accountMosaicRestrictionTransactionDTO.ts | 2 +- src/infrastructure/model/accountNamesDTO.ts | 2 +- ...ountOperationRestrictionModificationDTO.ts | 2 +- ...tOperationRestrictionTransactionBodyDTO.ts | 2 +- ...countOperationRestrictionTransactionDTO.ts | 2 +- .../model/accountRestrictionDTO.ts | 2 +- ...ccountRestrictionModificationActionEnum.ts | 2 +- .../model/accountRestrictionTypeEnum.ts | 2 +- .../model/accountRestrictionsDTO.ts | 2 +- .../model/accountRestrictionsInfoDTO.ts | 2 +- src/infrastructure/model/accountTypeEnum.ts | 2 +- src/infrastructure/model/accountsNamesDTO.ts | 2 +- src/infrastructure/model/activityBucketDTO.ts | 2 +- .../model/addressAliasTransactionBodyDTO.ts | 2 +- .../model/addressAliasTransactionDTO.ts | 2 +- .../model/aggregateBondedTransactionDTO.ts | 2 +- .../model/aggregateCompleteTransactionDTO.ts | 2 +- .../model/aggregateTransactionBodyDTO.ts | 2 +- src/infrastructure/model/aliasActionEnum.ts | 2 +- src/infrastructure/model/aliasDTO.ts | 2 +- src/infrastructure/model/aliasTypeEnum.ts | 2 +- .../model/announceTransactionInfoDTO.ts | 2 +- .../model/artifactExpiryReceiptDTO.ts | 2 +- .../model/artifactExpiryReceiptDTOAllOf.ts | 2 +- .../model/balanceChangeReceiptDTO.ts | 2 +- .../model/balanceChangeReceiptDTOAllOf.ts | 2 +- .../model/balanceTransferReceiptDTO.ts | 2 +- .../model/balanceTransferReceiptDTOAllOf.ts | 2 +- src/infrastructure/model/blockDTO.ts | 2 +- src/infrastructure/model/blockDTOAllOf.ts | 2 +- src/infrastructure/model/blockInfoDTO.ts | 2 +- src/infrastructure/model/blockMetaDTO.ts | 2 +- src/infrastructure/model/chainScoreDTO.ts | 2 +- .../model/communicationTimestampsDTO.ts | 2 +- .../cosignatoryModificationActionEnum.ts | 2 +- .../model/cosignatoryModificationDTO.ts | 2 +- src/infrastructure/model/cosignature.ts | 2 +- src/infrastructure/model/cosignatureDTO.ts | 2 +- .../model/cosignatureDTOAllOf.ts | 2 +- ...AccountAddressRestrictionTransactionDTO.ts | 2 +- .../embeddedAccountLinkTransactionDTO.ts | 2 +- .../embeddedAccountMetadataTransactionDTO.ts | 122 ++++++++++++++++ ...dAccountMosaicRestrictionTransactionDTO.ts | 2 +- ...countOperationRestrictionTransactionDTO.ts | 2 +- .../embeddedAddressAliasTransactionDTO.ts | 2 +- .../model/embeddedHashLockTransactionDTO.ts | 2 +- ...dMosaicAddressRestrictionTransactionDTO.ts | 4 +- .../embeddedMosaicAliasTransactionDTO.ts | 2 +- .../embeddedMosaicDefinitionTransactionDTO.ts | 2 +- ...edMosaicGlobalRestrictionTransactionDTO.ts | 4 +- .../embeddedMosaicMetadataTransactionDTO.ts | 131 ++++++++++++++++++ ...mbeddedMosaicSupplyChangeTransactionDTO.ts | 2 +- ...ltisigAccountModificationTransactionDTO.ts | 2 +- ...embeddedNamespaceMetadataTransactionDTO.ts | 131 ++++++++++++++++++ ...ddedNamespaceRegistrationTransactionDTO.ts | 2 +- .../model/embeddedSecretLockTransactionDTO.ts | 2 +- .../embeddedSecretProofTransactionDTO.ts | 2 +- .../model/embeddedTransactionDTO.ts | 2 +- .../model/embeddedTransactionInfoDTO.ts | 2 +- .../model/embeddedTransactionMetaDTO.ts | 2 +- .../model/embeddedTransferTransactionDTO.ts | 2 +- src/infrastructure/model/entityDTO.ts | 2 +- .../model/hashLockTransactionBodyDTO.ts | 2 +- .../model/hashLockTransactionDTO.ts | 2 +- src/infrastructure/model/heightInfoDTO.ts | 2 +- .../model/inflationReceiptDTO.ts | 2 +- .../model/inflationReceiptDTOAllOf.ts | 2 +- .../model/lockHashAlgorithmEnum.ts | 2 +- src/infrastructure/model/merklePathItem.ts | 2 +- .../model/merkleProofInfoDTO.ts | 2 +- src/infrastructure/model/messageDTO.ts | 2 +- src/infrastructure/model/messageTypeEnum.ts | 2 +- src/infrastructure/model/metadataDTO.ts | 2 +- .../model/metadataEntriesDTO.ts | 2 +- src/infrastructure/model/metadataEntryDTO.ts | 11 +- src/infrastructure/model/metadataTypeEnum.ts | 2 +- src/infrastructure/model/modelError.ts | 2 +- src/infrastructure/model/models.ts | 18 +-- src/infrastructure/model/mosaic.ts | 2 +- .../model/mosaicAddressRestrictionDTO.ts | 2 +- .../model/mosaicAddressRestrictionEntryDTO.ts | 2 +- ...mosaicAddressRestrictionEntryWrapperDTO.ts | 7 +- ...aicAddressRestrictionTransactionBodyDTO.ts | 4 +- .../mosaicAddressRestrictionTransactionDTO.ts | 4 +- .../model/mosaicAliasTransactionBodyDTO.ts | 2 +- .../model/mosaicAliasTransactionDTO.ts | 2 +- src/infrastructure/model/mosaicDTO.ts | 2 +- .../mosaicDefinitionTransactionBodyDTO.ts | 2 +- .../model/mosaicDefinitionTransactionDTO.ts | 2 +- .../model/mosaicGlobalRestrictionDTO.ts | 2 +- .../model/mosaicGlobalRestrictionEntryDTO.ts | 2 +- ...aicGlobalRestrictionEntryRestrictionDTO.ts | 7 +- .../mosaicGlobalRestrictionEntryWrapperDTO.ts | 2 +- ...saicGlobalRestrictionTransactionBodyDTO.ts | 4 +- .../mosaicGlobalRestrictionTransactionDTO.ts | 4 +- src/infrastructure/model/mosaicIds.ts | 2 +- src/infrastructure/model/mosaicInfoDTO.ts | 2 +- .../model/mosaicMetadataTransactionBodyDTO.ts | 2 +- .../model/mosaicMetadataTransactionDTO.ts | 2 +- src/infrastructure/model/mosaicNamesDTO.ts | 2 +- .../model/mosaicRestrictionEntryTypeEnum.ts | 2 +- .../model/mosaicRestrictionTypeEnum.ts | 2 +- .../model/mosaicSupplyChangeActionEnum.ts | 2 +- .../mosaicSupplyChangeTransactionBodyDTO.ts | 2 +- .../model/mosaicSupplyChangeTransactionDTO.ts | 2 +- src/infrastructure/model/mosaicsNamesDTO.ts | 2 +- .../model/multisigAccountGraphInfoDTO.ts | 2 +- .../model/multisigAccountInfoDTO.ts | 2 +- ...igAccountModificationTransactionBodyDTO.ts | 2 +- ...ltisigAccountModificationTransactionDTO.ts | 2 +- src/infrastructure/model/multisigDTO.ts | 2 +- src/infrastructure/model/namespaceDTO.ts | 2 +- src/infrastructure/model/namespaceIds.ts | 2 +- src/infrastructure/model/namespaceInfoDTO.ts | 2 +- src/infrastructure/model/namespaceMetaDTO.ts | 2 +- .../namespaceMetadataTransactionBodyDTO.ts | 2 +- .../model/namespaceMetadataTransactionDTO.ts | 2 +- src/infrastructure/model/namespaceNameDTO.ts | 2 +- ...namespaceRegistrationTransactionBodyDTO.ts | 2 +- .../namespaceRegistrationTransactionDTO.ts | 2 +- .../model/namespaceRegistrationTypeEnum.ts | 2 +- src/infrastructure/model/networkTypeDTO.ts | 2 +- src/infrastructure/model/nodeInfoDTO.ts | 2 +- src/infrastructure/model/nodeTimeDTO.ts | 2 +- src/infrastructure/model/receiptDTO.ts | 2 +- src/infrastructure/model/receiptTypeEnum.ts | 2 +- .../model/resolutionEntryDTO.ts | 2 +- .../model/resolutionStatementBodyDTO.ts | 2 +- .../model/resolutionStatementDTO.ts | 2 +- src/infrastructure/model/rolesTypeEnum.ts | 2 +- .../model/secretLockTransactionBodyDTO.ts | 2 +- .../model/secretLockTransactionDTO.ts | 2 +- .../model/secretProofTransactionBodyDTO.ts | 2 +- .../model/secretProofTransactionDTO.ts | 2 +- src/infrastructure/model/serverDTO.ts | 2 +- src/infrastructure/model/serverInfoDTO.ts | 2 +- src/infrastructure/model/sourceDTO.ts | 2 +- src/infrastructure/model/statementsDTO.ts | 2 +- src/infrastructure/model/storageInfoDTO.ts | 2 +- .../model/transactionBodyDTO.ts | 2 +- src/infrastructure/model/transactionDTO.ts | 2 +- src/infrastructure/model/transactionHashes.ts | 2 +- src/infrastructure/model/transactionIds.ts | 2 +- .../model/transactionInfoDTO.ts | 2 +- .../model/transactionMetaDTO.ts | 2 +- .../model/transactionPayload.ts | 2 +- .../model/transactionStatementBodyDTO.ts | 2 +- .../model/transactionStatementDTO.ts | 2 +- .../model/transactionStatusDTO.ts | 2 +- .../model/transactionTypeEnum.ts | 2 +- .../model/transferTransactionBodyDTO.ts | 2 +- .../model/transferTransactionDTO.ts | 2 +- src/infrastructure/model/unresolvedMosaic.ts | 2 +- .../model/verifiableEntityDTO.ts | 2 +- .../templates/api-single.mustache | 5 +- 181 files changed, 721 insertions(+), 201 deletions(-) create mode 100644 src/infrastructure/model/embeddedAccountMetadataTransactionDTO.ts create mode 100644 src/infrastructure/model/embeddedMosaicMetadataTransactionDTO.ts create mode 100644 src/infrastructure/model/embeddedNamespaceMetadataTransactionDTO.ts diff --git a/src/infrastructure/RestrictionHttp.ts b/src/infrastructure/RestrictionHttp.ts index 36bc268cbb..88801573a3 100644 --- a/src/infrastructure/RestrictionHttp.ts +++ b/src/infrastructure/RestrictionHttp.ts @@ -108,7 +108,7 @@ export class RestrictionHttp extends Http implements RestrictionRepository { }); return new MosaicAddressRestriction( payload.compositeHash, - payload.entryType, + payload.entryType.valueOf(), new MosaicId(payload.mosaicId), Address.createFromEncoded(payload.targetAddress), restirctionItems, @@ -140,7 +140,7 @@ export class RestrictionHttp extends Http implements RestrictionRepository { }); return new MosaicAddressRestriction( payload.mosaicRestrictionEntry.compositeHash, - payload.mosaicRestrictionEntry.entryType, + payload.mosaicRestrictionEntry.entryType.valueOf(), new MosaicId(payload.mosaicRestrictionEntry.mosaicId), Address.createFromEncoded(payload.mosaicRestrictionEntry.targetAddress), restirctionItems, @@ -168,7 +168,7 @@ export class RestrictionHttp extends Http implements RestrictionRepository { new MosaicGlobalRestrictionItem( new MosaicId(restriction.restriction.referenceMosaicId), restriction.restriction.restrictionValue, - restriction.restriction.restrictionType, + restriction.restriction.restrictionType.valueOf(), ))); return new MosaicGlobalRestriction( payload.compositeHash, @@ -202,7 +202,7 @@ export class RestrictionHttp extends Http implements RestrictionRepository { new MosaicGlobalRestrictionItem( new MosaicId(restriction.restriction.referenceMosaicId), restriction.restriction.restrictionValue, - restriction.restriction.restrictionType, + restriction.restriction.restrictionType.valueOf(), ))); return new MosaicGlobalRestriction( payload.mosaicRestrictionEntry.compositeHash, diff --git a/src/infrastructure/api/accountRoutesApi.ts b/src/infrastructure/api/accountRoutesApi.ts index d440913bae..bf064a7840 100644 --- a/src/infrastructure/api/accountRoutesApi.ts +++ b/src/infrastructure/api/accountRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -262,8 +262,6 @@ export class AccountRoutesApi { statusMessage: response.statusMessage, }, body: response.body }); } - - reject(); } }); }); diff --git a/src/infrastructure/api/apis.ts b/src/infrastructure/api/apis.ts index 3b48b22a9d..e7f6371f82 100644 --- a/src/infrastructure/api/apis.ts +++ b/src/infrastructure/api/apis.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/api/blockRoutesApi.ts b/src/infrastructure/api/blockRoutesApi.ts index 1eb62222ec..89f55b8a4d 100644 --- a/src/infrastructure/api/blockRoutesApi.ts +++ b/src/infrastructure/api/blockRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/api/chainRoutesApi.ts b/src/infrastructure/api/chainRoutesApi.ts index 6a8ab5ae84..a80a978a67 100644 --- a/src/infrastructure/api/chainRoutesApi.ts +++ b/src/infrastructure/api/chainRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/api/diagnosticRoutesApi.ts b/src/infrastructure/api/diagnosticRoutesApi.ts index be10a44b8d..45cc06fe2d 100644 --- a/src/infrastructure/api/diagnosticRoutesApi.ts +++ b/src/infrastructure/api/diagnosticRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/api/metadataRoutesApi.ts b/src/infrastructure/api/metadataRoutesApi.ts index f5ba8e87b6..39b8937699 100644 --- a/src/infrastructure/api/metadataRoutesApi.ts +++ b/src/infrastructure/api/metadataRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/api/mosaicRoutesApi.ts b/src/infrastructure/api/mosaicRoutesApi.ts index b4c762e69a..e4ea723372 100644 --- a/src/infrastructure/api/mosaicRoutesApi.ts +++ b/src/infrastructure/api/mosaicRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,6 +29,7 @@ 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'; @@ -205,6 +206,129 @@ export class MosaicRoutesApi { }); }); } + /** + * 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 diff --git a/src/infrastructure/api/namespaceRoutesApi.ts b/src/infrastructure/api/namespaceRoutesApi.ts index 861a0cfc72..d1419b0adc 100644 --- a/src/infrastructure/api/namespaceRoutesApi.ts +++ b/src/infrastructure/api/namespaceRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/api/networkRoutesApi.ts b/src/infrastructure/api/networkRoutesApi.ts index 36733adcb1..9c75f2014c 100644 --- a/src/infrastructure/api/networkRoutesApi.ts +++ b/src/infrastructure/api/networkRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/api/nodeRoutesApi.ts b/src/infrastructure/api/nodeRoutesApi.ts index 2881a53d3c..bd3502da65 100644 --- a/src/infrastructure/api/nodeRoutesApi.ts +++ b/src/infrastructure/api/nodeRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/api/restrictionRoutesApi.ts b/src/infrastructure/api/restrictionRoutesApi.ts index dbe7626f8c..f2e82f3adf 100644 --- a/src/infrastructure/api/restrictionRoutesApi.ts +++ b/src/infrastructure/api/restrictionRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/api/transactionRoutesApi.ts b/src/infrastructure/api/transactionRoutesApi.ts index 480064a10d..0a9a15a058 100644 --- a/src/infrastructure/api/transactionRoutesApi.ts +++ b/src/infrastructure/api/transactionRoutesApi.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountAddressRestrictionModificationDTO.ts b/src/infrastructure/model/accountAddressRestrictionModificationDTO.ts index e0da699dc7..49778df63c 100644 --- a/src/infrastructure/model/accountAddressRestrictionModificationDTO.ts +++ b/src/infrastructure/model/accountAddressRestrictionModificationDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountAddressRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/accountAddressRestrictionTransactionBodyDTO.ts index b2fb7e129b..b0a0335185 100644 --- a/src/infrastructure/model/accountAddressRestrictionTransactionBodyDTO.ts +++ b/src/infrastructure/model/accountAddressRestrictionTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountAddressRestrictionTransactionDTO.ts b/src/infrastructure/model/accountAddressRestrictionTransactionDTO.ts index 5cfa61c82b..3ac642f172 100644 --- a/src/infrastructure/model/accountAddressRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/accountAddressRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountDTO.ts b/src/infrastructure/model/accountDTO.ts index 7fb385221a..da98d36999 100644 --- a/src/infrastructure/model/accountDTO.ts +++ b/src/infrastructure/model/accountDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountIds.ts b/src/infrastructure/model/accountIds.ts index 71d9aa6131..370f46fa31 100644 --- a/src/infrastructure/model/accountIds.ts +++ b/src/infrastructure/model/accountIds.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountInfoDTO.ts b/src/infrastructure/model/accountInfoDTO.ts index 1dead1916b..503c28436a 100644 --- a/src/infrastructure/model/accountInfoDTO.ts +++ b/src/infrastructure/model/accountInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountLinkActionEnum.ts b/src/infrastructure/model/accountLinkActionEnum.ts index 838e423f1c..5cfa176ce9 100644 --- a/src/infrastructure/model/accountLinkActionEnum.ts +++ b/src/infrastructure/model/accountLinkActionEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountLinkTransactionBodyDTO.ts b/src/infrastructure/model/accountLinkTransactionBodyDTO.ts index a4b9c973c3..915d285a14 100644 --- a/src/infrastructure/model/accountLinkTransactionBodyDTO.ts +++ b/src/infrastructure/model/accountLinkTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountLinkTransactionDTO.ts b/src/infrastructure/model/accountLinkTransactionDTO.ts index f8aa6688eb..1f21f0e4b9 100644 --- a/src/infrastructure/model/accountLinkTransactionDTO.ts +++ b/src/infrastructure/model/accountLinkTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountMetadataTransactionBodyDTO.ts b/src/infrastructure/model/accountMetadataTransactionBodyDTO.ts index 982ec4cbba..00a3ad3bea 100644 --- a/src/infrastructure/model/accountMetadataTransactionBodyDTO.ts +++ b/src/infrastructure/model/accountMetadataTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountMetadataTransactionDTO.ts b/src/infrastructure/model/accountMetadataTransactionDTO.ts index 74f49d0efb..073d4b69b1 100644 --- a/src/infrastructure/model/accountMetadataTransactionDTO.ts +++ b/src/infrastructure/model/accountMetadataTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountMosaicRestrictionModificationDTO.ts b/src/infrastructure/model/accountMosaicRestrictionModificationDTO.ts index ff7b0144ed..31bbb90a84 100644 --- a/src/infrastructure/model/accountMosaicRestrictionModificationDTO.ts +++ b/src/infrastructure/model/accountMosaicRestrictionModificationDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountMosaicRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/accountMosaicRestrictionTransactionBodyDTO.ts index ac9f7e4b3c..c1ad286d39 100644 --- a/src/infrastructure/model/accountMosaicRestrictionTransactionBodyDTO.ts +++ b/src/infrastructure/model/accountMosaicRestrictionTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountMosaicRestrictionTransactionDTO.ts b/src/infrastructure/model/accountMosaicRestrictionTransactionDTO.ts index 46cea522ba..722eea9c4b 100644 --- a/src/infrastructure/model/accountMosaicRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/accountMosaicRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountNamesDTO.ts b/src/infrastructure/model/accountNamesDTO.ts index fb896d2b00..91bd0c5f97 100644 --- a/src/infrastructure/model/accountNamesDTO.ts +++ b/src/infrastructure/model/accountNamesDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountOperationRestrictionModificationDTO.ts b/src/infrastructure/model/accountOperationRestrictionModificationDTO.ts index 2d3d69fcac..66b4d82388 100644 --- a/src/infrastructure/model/accountOperationRestrictionModificationDTO.ts +++ b/src/infrastructure/model/accountOperationRestrictionModificationDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountOperationRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/accountOperationRestrictionTransactionBodyDTO.ts index 03e823bee5..3b599045ce 100644 --- a/src/infrastructure/model/accountOperationRestrictionTransactionBodyDTO.ts +++ b/src/infrastructure/model/accountOperationRestrictionTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountOperationRestrictionTransactionDTO.ts b/src/infrastructure/model/accountOperationRestrictionTransactionDTO.ts index 3add3b6ab5..2487495569 100644 --- a/src/infrastructure/model/accountOperationRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/accountOperationRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountRestrictionDTO.ts b/src/infrastructure/model/accountRestrictionDTO.ts index 572230734e..5b0f4ced11 100644 --- a/src/infrastructure/model/accountRestrictionDTO.ts +++ b/src/infrastructure/model/accountRestrictionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountRestrictionModificationActionEnum.ts b/src/infrastructure/model/accountRestrictionModificationActionEnum.ts index bb45da5992..b2c406ace6 100644 --- a/src/infrastructure/model/accountRestrictionModificationActionEnum.ts +++ b/src/infrastructure/model/accountRestrictionModificationActionEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountRestrictionTypeEnum.ts b/src/infrastructure/model/accountRestrictionTypeEnum.ts index 382ed9ba8c..27de75c291 100644 --- a/src/infrastructure/model/accountRestrictionTypeEnum.ts +++ b/src/infrastructure/model/accountRestrictionTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountRestrictionsDTO.ts b/src/infrastructure/model/accountRestrictionsDTO.ts index dc8ff32652..cebee66b92 100644 --- a/src/infrastructure/model/accountRestrictionsDTO.ts +++ b/src/infrastructure/model/accountRestrictionsDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountRestrictionsInfoDTO.ts b/src/infrastructure/model/accountRestrictionsInfoDTO.ts index 5df56a42f9..4786953f8e 100644 --- a/src/infrastructure/model/accountRestrictionsInfoDTO.ts +++ b/src/infrastructure/model/accountRestrictionsInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountTypeEnum.ts b/src/infrastructure/model/accountTypeEnum.ts index 2c5dba3181..772dfdcfe0 100644 --- a/src/infrastructure/model/accountTypeEnum.ts +++ b/src/infrastructure/model/accountTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/accountsNamesDTO.ts b/src/infrastructure/model/accountsNamesDTO.ts index da81545d5d..b51a54be81 100644 --- a/src/infrastructure/model/accountsNamesDTO.ts +++ b/src/infrastructure/model/accountsNamesDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/activityBucketDTO.ts b/src/infrastructure/model/activityBucketDTO.ts index 5111b40601..0e61d51d4d 100644 --- a/src/infrastructure/model/activityBucketDTO.ts +++ b/src/infrastructure/model/activityBucketDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/addressAliasTransactionBodyDTO.ts b/src/infrastructure/model/addressAliasTransactionBodyDTO.ts index 6ade1915be..49b7916c0f 100644 --- a/src/infrastructure/model/addressAliasTransactionBodyDTO.ts +++ b/src/infrastructure/model/addressAliasTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/addressAliasTransactionDTO.ts b/src/infrastructure/model/addressAliasTransactionDTO.ts index 49a871712d..e40b7ec72b 100644 --- a/src/infrastructure/model/addressAliasTransactionDTO.ts +++ b/src/infrastructure/model/addressAliasTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/aggregateBondedTransactionDTO.ts b/src/infrastructure/model/aggregateBondedTransactionDTO.ts index f9d52ca0a0..30c78cdb3f 100644 --- a/src/infrastructure/model/aggregateBondedTransactionDTO.ts +++ b/src/infrastructure/model/aggregateBondedTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/aggregateCompleteTransactionDTO.ts b/src/infrastructure/model/aggregateCompleteTransactionDTO.ts index 4ec56c744c..bceed87b8a 100644 --- a/src/infrastructure/model/aggregateCompleteTransactionDTO.ts +++ b/src/infrastructure/model/aggregateCompleteTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/aggregateTransactionBodyDTO.ts b/src/infrastructure/model/aggregateTransactionBodyDTO.ts index b311fdb281..cd93384b2e 100644 --- a/src/infrastructure/model/aggregateTransactionBodyDTO.ts +++ b/src/infrastructure/model/aggregateTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/aliasActionEnum.ts b/src/infrastructure/model/aliasActionEnum.ts index 1d52eee7c5..647d36ca1c 100644 --- a/src/infrastructure/model/aliasActionEnum.ts +++ b/src/infrastructure/model/aliasActionEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/aliasDTO.ts b/src/infrastructure/model/aliasDTO.ts index c6f18885cb..90f22f609b 100644 --- a/src/infrastructure/model/aliasDTO.ts +++ b/src/infrastructure/model/aliasDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/aliasTypeEnum.ts b/src/infrastructure/model/aliasTypeEnum.ts index 82f54f9b7c..034e9386ba 100644 --- a/src/infrastructure/model/aliasTypeEnum.ts +++ b/src/infrastructure/model/aliasTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/announceTransactionInfoDTO.ts b/src/infrastructure/model/announceTransactionInfoDTO.ts index 3bde57da3d..f1b627b7a0 100644 --- a/src/infrastructure/model/announceTransactionInfoDTO.ts +++ b/src/infrastructure/model/announceTransactionInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/artifactExpiryReceiptDTO.ts b/src/infrastructure/model/artifactExpiryReceiptDTO.ts index bcf04c0419..ed9a4fd5b0 100644 --- a/src/infrastructure/model/artifactExpiryReceiptDTO.ts +++ b/src/infrastructure/model/artifactExpiryReceiptDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/artifactExpiryReceiptDTOAllOf.ts b/src/infrastructure/model/artifactExpiryReceiptDTOAllOf.ts index 2c8ad24751..43444119dc 100644 --- a/src/infrastructure/model/artifactExpiryReceiptDTOAllOf.ts +++ b/src/infrastructure/model/artifactExpiryReceiptDTOAllOf.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/balanceChangeReceiptDTO.ts b/src/infrastructure/model/balanceChangeReceiptDTO.ts index 3ebfd9ff3b..586d91fb47 100644 --- a/src/infrastructure/model/balanceChangeReceiptDTO.ts +++ b/src/infrastructure/model/balanceChangeReceiptDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/balanceChangeReceiptDTOAllOf.ts b/src/infrastructure/model/balanceChangeReceiptDTOAllOf.ts index daf2fcccb6..3fce0cd54a 100644 --- a/src/infrastructure/model/balanceChangeReceiptDTOAllOf.ts +++ b/src/infrastructure/model/balanceChangeReceiptDTOAllOf.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/balanceTransferReceiptDTO.ts b/src/infrastructure/model/balanceTransferReceiptDTO.ts index 6700717b01..a7de04c5cc 100644 --- a/src/infrastructure/model/balanceTransferReceiptDTO.ts +++ b/src/infrastructure/model/balanceTransferReceiptDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/balanceTransferReceiptDTOAllOf.ts b/src/infrastructure/model/balanceTransferReceiptDTOAllOf.ts index 6573a58e02..1255d785e8 100644 --- a/src/infrastructure/model/balanceTransferReceiptDTOAllOf.ts +++ b/src/infrastructure/model/balanceTransferReceiptDTOAllOf.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/blockDTO.ts b/src/infrastructure/model/blockDTO.ts index 5ed9f6f065..043bbc9923 100644 --- a/src/infrastructure/model/blockDTO.ts +++ b/src/infrastructure/model/blockDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/blockDTOAllOf.ts b/src/infrastructure/model/blockDTOAllOf.ts index 3f5e979d07..2b1d1003b2 100644 --- a/src/infrastructure/model/blockDTOAllOf.ts +++ b/src/infrastructure/model/blockDTOAllOf.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/blockInfoDTO.ts b/src/infrastructure/model/blockInfoDTO.ts index eb57a57707..2547bcb2f3 100644 --- a/src/infrastructure/model/blockInfoDTO.ts +++ b/src/infrastructure/model/blockInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/blockMetaDTO.ts b/src/infrastructure/model/blockMetaDTO.ts index 653ac5a8f4..6cdfdf3e08 100644 --- a/src/infrastructure/model/blockMetaDTO.ts +++ b/src/infrastructure/model/blockMetaDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/chainScoreDTO.ts b/src/infrastructure/model/chainScoreDTO.ts index e10f4a106b..3e1a8e1a66 100644 --- a/src/infrastructure/model/chainScoreDTO.ts +++ b/src/infrastructure/model/chainScoreDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/communicationTimestampsDTO.ts b/src/infrastructure/model/communicationTimestampsDTO.ts index 45bae996b8..c0c6bb5e31 100644 --- a/src/infrastructure/model/communicationTimestampsDTO.ts +++ b/src/infrastructure/model/communicationTimestampsDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/cosignatoryModificationActionEnum.ts b/src/infrastructure/model/cosignatoryModificationActionEnum.ts index d52faa65a7..58e076efbb 100644 --- a/src/infrastructure/model/cosignatoryModificationActionEnum.ts +++ b/src/infrastructure/model/cosignatoryModificationActionEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/cosignatoryModificationDTO.ts b/src/infrastructure/model/cosignatoryModificationDTO.ts index 01bbf7070e..5113585756 100644 --- a/src/infrastructure/model/cosignatoryModificationDTO.ts +++ b/src/infrastructure/model/cosignatoryModificationDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/cosignature.ts b/src/infrastructure/model/cosignature.ts index 83f424a46b..d2e50250d4 100644 --- a/src/infrastructure/model/cosignature.ts +++ b/src/infrastructure/model/cosignature.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/cosignatureDTO.ts b/src/infrastructure/model/cosignatureDTO.ts index 1c8e907927..fa5764e86f 100644 --- a/src/infrastructure/model/cosignatureDTO.ts +++ b/src/infrastructure/model/cosignatureDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/cosignatureDTOAllOf.ts b/src/infrastructure/model/cosignatureDTOAllOf.ts index 2e0618a3d9..bcfd9098de 100644 --- a/src/infrastructure/model/cosignatureDTOAllOf.ts +++ b/src/infrastructure/model/cosignatureDTOAllOf.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedAccountAddressRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedAccountAddressRestrictionTransactionDTO.ts index 6edb39aeab..a5c1cac994 100644 --- a/src/infrastructure/model/embeddedAccountAddressRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/embeddedAccountAddressRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedAccountLinkTransactionDTO.ts b/src/infrastructure/model/embeddedAccountLinkTransactionDTO.ts index 6d0573c0b0..3cdb776883 100644 --- a/src/infrastructure/model/embeddedAccountLinkTransactionDTO.ts +++ b/src/infrastructure/model/embeddedAccountLinkTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedAccountMetadataTransactionDTO.ts b/src/infrastructure/model/embeddedAccountMetadataTransactionDTO.ts new file mode 100644 index 0000000000..1338dfff3a --- /dev/null +++ b/src/infrastructure/model/embeddedAccountMetadataTransactionDTO.ts @@ -0,0 +1,122 @@ +/* + * 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/embeddedAccountMosaicRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedAccountMosaicRestrictionTransactionDTO.ts index a88e8e3473..905d893c81 100644 --- a/src/infrastructure/model/embeddedAccountMosaicRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/embeddedAccountMosaicRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedAccountOperationRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedAccountOperationRestrictionTransactionDTO.ts index b15053ef48..82c050453c 100644 --- a/src/infrastructure/model/embeddedAccountOperationRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/embeddedAccountOperationRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedAddressAliasTransactionDTO.ts b/src/infrastructure/model/embeddedAddressAliasTransactionDTO.ts index 78e7a3f73c..3cece291a5 100644 --- a/src/infrastructure/model/embeddedAddressAliasTransactionDTO.ts +++ b/src/infrastructure/model/embeddedAddressAliasTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedHashLockTransactionDTO.ts b/src/infrastructure/model/embeddedHashLockTransactionDTO.ts index 5d471109b4..d88f188873 100644 --- a/src/infrastructure/model/embeddedHashLockTransactionDTO.ts +++ b/src/infrastructure/model/embeddedHashLockTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedMosaicAddressRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicAddressRestrictionTransactionDTO.ts index e03e2d9934..620dcf3528 100644 --- a/src/infrastructure/model/embeddedMosaicAddressRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/embeddedMosaicAddressRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ export class EmbeddedMosaicAddressRestrictionTransactionDTO { */ 'mosaicId': string; /** - * Restriction key relative to the reference mosaic identifier. + * Restriction key. */ 'restrictionKey': string; /** diff --git a/src/infrastructure/model/embeddedMosaicAliasTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicAliasTransactionDTO.ts index 18723c0622..345cfd9dad 100644 --- a/src/infrastructure/model/embeddedMosaicAliasTransactionDTO.ts +++ b/src/infrastructure/model/embeddedMosaicAliasTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedMosaicDefinitionTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicDefinitionTransactionDTO.ts index f2048f9695..fb2cd0ae3b 100644 --- a/src/infrastructure/model/embeddedMosaicDefinitionTransactionDTO.ts +++ b/src/infrastructure/model/embeddedMosaicDefinitionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedMosaicGlobalRestrictionTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicGlobalRestrictionTransactionDTO.ts index c924e82606..eee08a8ab9 100644 --- a/src/infrastructure/model/embeddedMosaicGlobalRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/embeddedMosaicGlobalRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ export class EmbeddedMosaicGlobalRestrictionTransactionDTO { */ 'referenceMosaicId': string; /** - * Restriction key relative to the reference mosaic identifier. + * Restriction key. */ 'restrictionKey': string; /** diff --git a/src/infrastructure/model/embeddedMosaicMetadataTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicMetadataTransactionDTO.ts new file mode 100644 index 0000000000..55022e4f7e --- /dev/null +++ b/src/infrastructure/model/embeddedMosaicMetadataTransactionDTO.ts @@ -0,0 +1,131 @@ +/* + * 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/embeddedMosaicSupplyChangeTransactionDTO.ts b/src/infrastructure/model/embeddedMosaicSupplyChangeTransactionDTO.ts index 490020e398..bb37ee2e99 100644 --- a/src/infrastructure/model/embeddedMosaicSupplyChangeTransactionDTO.ts +++ b/src/infrastructure/model/embeddedMosaicSupplyChangeTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedMultisigAccountModificationTransactionDTO.ts b/src/infrastructure/model/embeddedMultisigAccountModificationTransactionDTO.ts index 91835b0ee2..75c6ee7be5 100644 --- a/src/infrastructure/model/embeddedMultisigAccountModificationTransactionDTO.ts +++ b/src/infrastructure/model/embeddedMultisigAccountModificationTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedNamespaceMetadataTransactionDTO.ts b/src/infrastructure/model/embeddedNamespaceMetadataTransactionDTO.ts new file mode 100644 index 0000000000..5ab75e3eb1 --- /dev/null +++ b/src/infrastructure/model/embeddedNamespaceMetadataTransactionDTO.ts @@ -0,0 +1,131 @@ +/* + * 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/embeddedNamespaceRegistrationTransactionDTO.ts b/src/infrastructure/model/embeddedNamespaceRegistrationTransactionDTO.ts index 5b8c0cfd9b..bd57eca813 100644 --- a/src/infrastructure/model/embeddedNamespaceRegistrationTransactionDTO.ts +++ b/src/infrastructure/model/embeddedNamespaceRegistrationTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedSecretLockTransactionDTO.ts b/src/infrastructure/model/embeddedSecretLockTransactionDTO.ts index acf435d9c8..55bc374e5d 100644 --- a/src/infrastructure/model/embeddedSecretLockTransactionDTO.ts +++ b/src/infrastructure/model/embeddedSecretLockTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedSecretProofTransactionDTO.ts b/src/infrastructure/model/embeddedSecretProofTransactionDTO.ts index d189c05cdc..50602cfd49 100644 --- a/src/infrastructure/model/embeddedSecretProofTransactionDTO.ts +++ b/src/infrastructure/model/embeddedSecretProofTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedTransactionDTO.ts b/src/infrastructure/model/embeddedTransactionDTO.ts index a14891767f..1234f16938 100644 --- a/src/infrastructure/model/embeddedTransactionDTO.ts +++ b/src/infrastructure/model/embeddedTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedTransactionInfoDTO.ts b/src/infrastructure/model/embeddedTransactionInfoDTO.ts index c9a384833b..b9af262936 100644 --- a/src/infrastructure/model/embeddedTransactionInfoDTO.ts +++ b/src/infrastructure/model/embeddedTransactionInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedTransactionMetaDTO.ts b/src/infrastructure/model/embeddedTransactionMetaDTO.ts index 387c32a1ee..349d658ced 100644 --- a/src/infrastructure/model/embeddedTransactionMetaDTO.ts +++ b/src/infrastructure/model/embeddedTransactionMetaDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/embeddedTransferTransactionDTO.ts b/src/infrastructure/model/embeddedTransferTransactionDTO.ts index 0d8aa1b31c..a549a52cbe 100644 --- a/src/infrastructure/model/embeddedTransferTransactionDTO.ts +++ b/src/infrastructure/model/embeddedTransferTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/entityDTO.ts b/src/infrastructure/model/entityDTO.ts index d5e4cb7edd..d5828e6b5a 100644 --- a/src/infrastructure/model/entityDTO.ts +++ b/src/infrastructure/model/entityDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/hashLockTransactionBodyDTO.ts b/src/infrastructure/model/hashLockTransactionBodyDTO.ts index 9e4e3604a3..c9fa7e07b0 100644 --- a/src/infrastructure/model/hashLockTransactionBodyDTO.ts +++ b/src/infrastructure/model/hashLockTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/hashLockTransactionDTO.ts b/src/infrastructure/model/hashLockTransactionDTO.ts index a349c08d13..a9525905e3 100644 --- a/src/infrastructure/model/hashLockTransactionDTO.ts +++ b/src/infrastructure/model/hashLockTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/heightInfoDTO.ts b/src/infrastructure/model/heightInfoDTO.ts index 7b720d9d32..dbdb94640a 100644 --- a/src/infrastructure/model/heightInfoDTO.ts +++ b/src/infrastructure/model/heightInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/inflationReceiptDTO.ts b/src/infrastructure/model/inflationReceiptDTO.ts index f30784e272..fdf25ac186 100644 --- a/src/infrastructure/model/inflationReceiptDTO.ts +++ b/src/infrastructure/model/inflationReceiptDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/inflationReceiptDTOAllOf.ts b/src/infrastructure/model/inflationReceiptDTOAllOf.ts index 8b8f618c91..e5e304c036 100644 --- a/src/infrastructure/model/inflationReceiptDTOAllOf.ts +++ b/src/infrastructure/model/inflationReceiptDTOAllOf.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/lockHashAlgorithmEnum.ts b/src/infrastructure/model/lockHashAlgorithmEnum.ts index b0f2b26d17..aa72c063e1 100644 --- a/src/infrastructure/model/lockHashAlgorithmEnum.ts +++ b/src/infrastructure/model/lockHashAlgorithmEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/merklePathItem.ts b/src/infrastructure/model/merklePathItem.ts index d73212e419..767954fd34 100644 --- a/src/infrastructure/model/merklePathItem.ts +++ b/src/infrastructure/model/merklePathItem.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/merkleProofInfoDTO.ts b/src/infrastructure/model/merkleProofInfoDTO.ts index b67b22f5ec..af69e13183 100644 --- a/src/infrastructure/model/merkleProofInfoDTO.ts +++ b/src/infrastructure/model/merkleProofInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/messageDTO.ts b/src/infrastructure/model/messageDTO.ts index df0e9dc566..46b381c4ee 100644 --- a/src/infrastructure/model/messageDTO.ts +++ b/src/infrastructure/model/messageDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/messageTypeEnum.ts b/src/infrastructure/model/messageTypeEnum.ts index 674b66872d..6711f45f54 100644 --- a/src/infrastructure/model/messageTypeEnum.ts +++ b/src/infrastructure/model/messageTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/metadataDTO.ts b/src/infrastructure/model/metadataDTO.ts index b0c3ddbc2e..cd8d5a07a6 100644 --- a/src/infrastructure/model/metadataDTO.ts +++ b/src/infrastructure/model/metadataDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/metadataEntriesDTO.ts b/src/infrastructure/model/metadataEntriesDTO.ts index d8bc626f21..8d2eb3cb46 100644 --- a/src/infrastructure/model/metadataEntriesDTO.ts +++ b/src/infrastructure/model/metadataEntriesDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/metadataEntryDTO.ts b/src/infrastructure/model/metadataEntryDTO.ts index 3bd407f7fd..e36b3cf7b3 100644 --- a/src/infrastructure/model/metadataEntryDTO.ts +++ b/src/infrastructure/model/metadataEntryDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,10 +31,19 @@ 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; diff --git a/src/infrastructure/model/metadataTypeEnum.ts b/src/infrastructure/model/metadataTypeEnum.ts index d69efc174f..86298fce2d 100644 --- a/src/infrastructure/model/metadataTypeEnum.ts +++ b/src/infrastructure/model/metadataTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/modelError.ts b/src/infrastructure/model/modelError.ts index fe9fb92c06..265779812f 100644 --- a/src/infrastructure/model/modelError.ts +++ b/src/infrastructure/model/modelError.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/models.ts b/src/infrastructure/model/models.ts index e902092771..6d32cafdad 100644 --- a/src/infrastructure/model/models.ts +++ b/src/infrastructure/model/models.ts @@ -52,7 +52,7 @@ export * from './cosignatureDTO'; export * from './cosignatureDTOAllOf'; export * from './embeddedAccountAddressRestrictionTransactionDTO'; export * from './embeddedAccountLinkTransactionDTO'; -export * from './embeddedAccountMetadataTransactionTransactionDTO'; +export * from './embeddedAccountMetadataTransactionDTO'; export * from './embeddedAccountMosaicRestrictionTransactionDTO'; export * from './embeddedAccountOperationRestrictionTransactionDTO'; export * from './embeddedAddressAliasTransactionDTO'; @@ -61,10 +61,10 @@ export * from './embeddedMosaicAddressRestrictionTransactionDTO'; export * from './embeddedMosaicAliasTransactionDTO'; export * from './embeddedMosaicDefinitionTransactionDTO'; export * from './embeddedMosaicGlobalRestrictionTransactionDTO'; -export * from './embeddedMosaicMetadataTransactionTransactionDTO'; +export * from './embeddedMosaicMetadataTransactionDTO'; export * from './embeddedMosaicSupplyChangeTransactionDTO'; export * from './embeddedMultisigAccountModificationTransactionDTO'; -export * from './embeddedNamespaceMetadataTransactionTransactionDTO'; +export * from './embeddedNamespaceMetadataTransactionDTO'; export * from './embeddedNamespaceRegistrationTransactionDTO'; export * from './embeddedSecretLockTransactionDTO'; export * from './embeddedSecretProofTransactionDTO'; @@ -221,7 +221,7 @@ import { CosignatureDTO } from './cosignatureDTO'; import { CosignatureDTOAllOf } from './cosignatureDTOAllOf'; import { EmbeddedAccountAddressRestrictionTransactionDTO } from './embeddedAccountAddressRestrictionTransactionDTO'; import { EmbeddedAccountLinkTransactionDTO } from './embeddedAccountLinkTransactionDTO'; -import { EmbeddedAccountMetadataTransactionTransactionDTO } from './embeddedAccountMetadataTransactionTransactionDTO'; +import { EmbeddedAccountMetadataTransactionDTO } from './embeddedAccountMetadataTransactionDTO'; import { EmbeddedAccountMosaicRestrictionTransactionDTO } from './embeddedAccountMosaicRestrictionTransactionDTO'; import { EmbeddedAccountOperationRestrictionTransactionDTO } from './embeddedAccountOperationRestrictionTransactionDTO'; import { EmbeddedAddressAliasTransactionDTO } from './embeddedAddressAliasTransactionDTO'; @@ -230,10 +230,10 @@ import { EmbeddedMosaicAddressRestrictionTransactionDTO } from './embeddedMosaic import { EmbeddedMosaicAliasTransactionDTO } from './embeddedMosaicAliasTransactionDTO'; import { EmbeddedMosaicDefinitionTransactionDTO } from './embeddedMosaicDefinitionTransactionDTO'; import { EmbeddedMosaicGlobalRestrictionTransactionDTO } from './embeddedMosaicGlobalRestrictionTransactionDTO'; -import { EmbeddedMosaicMetadataTransactionTransactionDTO } from './embeddedMosaicMetadataTransactionTransactionDTO'; +import { EmbeddedMosaicMetadataTransactionDTO } from './embeddedMosaicMetadataTransactionDTO'; import { EmbeddedMosaicSupplyChangeTransactionDTO } from './embeddedMosaicSupplyChangeTransactionDTO'; import { EmbeddedMultisigAccountModificationTransactionDTO } from './embeddedMultisigAccountModificationTransactionDTO'; -import { EmbeddedNamespaceMetadataTransactionTransactionDTO } from './embeddedNamespaceMetadataTransactionTransactionDTO'; +import { EmbeddedNamespaceMetadataTransactionDTO } from './embeddedNamespaceMetadataTransactionDTO'; import { EmbeddedNamespaceRegistrationTransactionDTO } from './embeddedNamespaceRegistrationTransactionDTO'; import { EmbeddedSecretLockTransactionDTO } from './embeddedSecretLockTransactionDTO'; import { EmbeddedSecretProofTransactionDTO } from './embeddedSecretProofTransactionDTO'; @@ -414,7 +414,7 @@ let typeMap: {[index: string]: any} = { "CosignatureDTOAllOf": CosignatureDTOAllOf, "EmbeddedAccountAddressRestrictionTransactionDTO": EmbeddedAccountAddressRestrictionTransactionDTO, "EmbeddedAccountLinkTransactionDTO": EmbeddedAccountLinkTransactionDTO, - "EmbeddedAccountMetadataTransactionTransactionDTO": EmbeddedAccountMetadataTransactionTransactionDTO, + "EmbeddedAccountMetadataTransactionDTO": EmbeddedAccountMetadataTransactionDTO, "EmbeddedAccountMosaicRestrictionTransactionDTO": EmbeddedAccountMosaicRestrictionTransactionDTO, "EmbeddedAccountOperationRestrictionTransactionDTO": EmbeddedAccountOperationRestrictionTransactionDTO, "EmbeddedAddressAliasTransactionDTO": EmbeddedAddressAliasTransactionDTO, @@ -423,10 +423,10 @@ let typeMap: {[index: string]: any} = { "EmbeddedMosaicAliasTransactionDTO": EmbeddedMosaicAliasTransactionDTO, "EmbeddedMosaicDefinitionTransactionDTO": EmbeddedMosaicDefinitionTransactionDTO, "EmbeddedMosaicGlobalRestrictionTransactionDTO": EmbeddedMosaicGlobalRestrictionTransactionDTO, - "EmbeddedMosaicMetadataTransactionTransactionDTO": EmbeddedMosaicMetadataTransactionTransactionDTO, + "EmbeddedMosaicMetadataTransactionDTO": EmbeddedMosaicMetadataTransactionDTO, "EmbeddedMosaicSupplyChangeTransactionDTO": EmbeddedMosaicSupplyChangeTransactionDTO, "EmbeddedMultisigAccountModificationTransactionDTO": EmbeddedMultisigAccountModificationTransactionDTO, - "EmbeddedNamespaceMetadataTransactionTransactionDTO": EmbeddedNamespaceMetadataTransactionTransactionDTO, + "EmbeddedNamespaceMetadataTransactionDTO": EmbeddedNamespaceMetadataTransactionDTO, "EmbeddedNamespaceRegistrationTransactionDTO": EmbeddedNamespaceRegistrationTransactionDTO, "EmbeddedSecretLockTransactionDTO": EmbeddedSecretLockTransactionDTO, "EmbeddedSecretProofTransactionDTO": EmbeddedSecretProofTransactionDTO, diff --git a/src/infrastructure/model/mosaic.ts b/src/infrastructure/model/mosaic.ts index 8effc9317f..1a61893001 100644 --- a/src/infrastructure/model/mosaic.ts +++ b/src/infrastructure/model/mosaic.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicAddressRestrictionDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionDTO.ts index cfe77db14c..efb951accd 100644 --- a/src/infrastructure/model/mosaicAddressRestrictionDTO.ts +++ b/src/infrastructure/model/mosaicAddressRestrictionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicAddressRestrictionEntryDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionEntryDTO.ts index 656babdca7..61ab124a3e 100644 --- a/src/infrastructure/model/mosaicAddressRestrictionEntryDTO.ts +++ b/src/infrastructure/model/mosaicAddressRestrictionEntryDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicAddressRestrictionEntryWrapperDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionEntryWrapperDTO.ts index 286319be98..a7607d94a3 100644 --- a/src/infrastructure/model/mosaicAddressRestrictionEntryWrapperDTO.ts +++ b/src/infrastructure/model/mosaicAddressRestrictionEntryWrapperDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,10 +26,11 @@ */ import { MosaicAddressRestrictionEntryDTO } from './mosaicAddressRestrictionEntryDTO'; +import { MosaicRestrictionEntryTypeEnum } from './mosaicRestrictionEntryTypeEnum'; export class MosaicAddressRestrictionEntryWrapperDTO { 'compositeHash': string; - 'entryType': number; + 'entryType': MosaicRestrictionEntryTypeEnum; /** * Mosaic identifier. */ @@ -51,7 +52,7 @@ export class MosaicAddressRestrictionEntryWrapperDTO { { "name": "entryType", "baseName": "entryType", - "type": "number" + "type": "MosaicRestrictionEntryTypeEnum" }, { "name": "mosaicId", diff --git a/src/infrastructure/model/mosaicAddressRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionTransactionBodyDTO.ts index a853ba2134..09935f4cf8 100644 --- a/src/infrastructure/model/mosaicAddressRestrictionTransactionBodyDTO.ts +++ b/src/infrastructure/model/mosaicAddressRestrictionTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -32,7 +32,7 @@ export class MosaicAddressRestrictionTransactionBodyDTO { */ 'mosaicId': string; /** - * Restriction key relative to the reference mosaic identifier. + * Restriction key. */ 'restrictionKey': string; /** diff --git a/src/infrastructure/model/mosaicAddressRestrictionTransactionDTO.ts b/src/infrastructure/model/mosaicAddressRestrictionTransactionDTO.ts index 12d04458ad..143da8766b 100644 --- a/src/infrastructure/model/mosaicAddressRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/mosaicAddressRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -55,7 +55,7 @@ export class MosaicAddressRestrictionTransactionDTO { */ 'mosaicId': string; /** - * Restriction key relative to the reference mosaic identifier. + * Restriction key. */ 'restrictionKey': string; /** diff --git a/src/infrastructure/model/mosaicAliasTransactionBodyDTO.ts b/src/infrastructure/model/mosaicAliasTransactionBodyDTO.ts index 17cc9aef1c..28607e51d4 100644 --- a/src/infrastructure/model/mosaicAliasTransactionBodyDTO.ts +++ b/src/infrastructure/model/mosaicAliasTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicAliasTransactionDTO.ts b/src/infrastructure/model/mosaicAliasTransactionDTO.ts index 42edd7b248..236281ab4e 100644 --- a/src/infrastructure/model/mosaicAliasTransactionDTO.ts +++ b/src/infrastructure/model/mosaicAliasTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicDTO.ts b/src/infrastructure/model/mosaicDTO.ts index b4c9e25b4c..64aaa4be1a 100644 --- a/src/infrastructure/model/mosaicDTO.ts +++ b/src/infrastructure/model/mosaicDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicDefinitionTransactionBodyDTO.ts b/src/infrastructure/model/mosaicDefinitionTransactionBodyDTO.ts index 800d6761c1..14a57cfe09 100644 --- a/src/infrastructure/model/mosaicDefinitionTransactionBodyDTO.ts +++ b/src/infrastructure/model/mosaicDefinitionTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicDefinitionTransactionDTO.ts b/src/infrastructure/model/mosaicDefinitionTransactionDTO.ts index 1dd923364d..e7d5a22bcd 100644 --- a/src/infrastructure/model/mosaicDefinitionTransactionDTO.ts +++ b/src/infrastructure/model/mosaicDefinitionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicGlobalRestrictionDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionDTO.ts index 66589236f2..9861d040b5 100644 --- a/src/infrastructure/model/mosaicGlobalRestrictionDTO.ts +++ b/src/infrastructure/model/mosaicGlobalRestrictionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicGlobalRestrictionEntryDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionEntryDTO.ts index 8ade4b68ed..ea9d788aff 100644 --- a/src/infrastructure/model/mosaicGlobalRestrictionEntryDTO.ts +++ b/src/infrastructure/model/mosaicGlobalRestrictionEntryDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicGlobalRestrictionEntryRestrictionDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionEntryRestrictionDTO.ts index 037c4965da..d87d2109d6 100644 --- a/src/infrastructure/model/mosaicGlobalRestrictionEntryRestrictionDTO.ts +++ b/src/infrastructure/model/mosaicGlobalRestrictionEntryRestrictionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,6 +25,7 @@ * Do not edit the class manually. */ +import { MosaicRestrictionTypeEnum } from './mosaicRestrictionTypeEnum'; export class MosaicGlobalRestrictionEntryRestrictionDTO { /** @@ -35,7 +36,7 @@ export class MosaicGlobalRestrictionEntryRestrictionDTO { * Restriction value. */ 'restrictionValue': string; - 'restrictionType': number; + 'restrictionType': MosaicRestrictionTypeEnum; static discriminator: string | undefined = undefined; @@ -53,7 +54,7 @@ export class MosaicGlobalRestrictionEntryRestrictionDTO { { "name": "restrictionType", "baseName": "restrictionType", - "type": "number" + "type": "MosaicRestrictionTypeEnum" } ]; static getAttributeTypeMap() { diff --git a/src/infrastructure/model/mosaicGlobalRestrictionEntryWrapperDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionEntryWrapperDTO.ts index f95deda9af..f6a4e3f96c 100644 --- a/src/infrastructure/model/mosaicGlobalRestrictionEntryWrapperDTO.ts +++ b/src/infrastructure/model/mosaicGlobalRestrictionEntryWrapperDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicGlobalRestrictionTransactionBodyDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionTransactionBodyDTO.ts index 89dac7c4df..2736a934ae 100644 --- a/src/infrastructure/model/mosaicGlobalRestrictionTransactionBodyDTO.ts +++ b/src/infrastructure/model/mosaicGlobalRestrictionTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -37,7 +37,7 @@ export class MosaicGlobalRestrictionTransactionBodyDTO { */ 'referenceMosaicId': string; /** - * Restriction key relative to the reference mosaic identifier. + * Restriction key. */ 'restrictionKey': string; /** diff --git a/src/infrastructure/model/mosaicGlobalRestrictionTransactionDTO.ts b/src/infrastructure/model/mosaicGlobalRestrictionTransactionDTO.ts index f4ec4a12b1..2a9b4ba62d 100644 --- a/src/infrastructure/model/mosaicGlobalRestrictionTransactionDTO.ts +++ b/src/infrastructure/model/mosaicGlobalRestrictionTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -60,7 +60,7 @@ export class MosaicGlobalRestrictionTransactionDTO { */ 'referenceMosaicId': string; /** - * Restriction key relative to the reference mosaic identifier. + * Restriction key. */ 'restrictionKey': string; /** diff --git a/src/infrastructure/model/mosaicIds.ts b/src/infrastructure/model/mosaicIds.ts index f554c12f2f..7d85291c34 100644 --- a/src/infrastructure/model/mosaicIds.ts +++ b/src/infrastructure/model/mosaicIds.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicInfoDTO.ts b/src/infrastructure/model/mosaicInfoDTO.ts index cbfac6cca6..6ca084077c 100644 --- a/src/infrastructure/model/mosaicInfoDTO.ts +++ b/src/infrastructure/model/mosaicInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicMetadataTransactionBodyDTO.ts b/src/infrastructure/model/mosaicMetadataTransactionBodyDTO.ts index 8d88749367..0b3481280c 100644 --- a/src/infrastructure/model/mosaicMetadataTransactionBodyDTO.ts +++ b/src/infrastructure/model/mosaicMetadataTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicMetadataTransactionDTO.ts b/src/infrastructure/model/mosaicMetadataTransactionDTO.ts index 816f317d4f..6548e283d8 100644 --- a/src/infrastructure/model/mosaicMetadataTransactionDTO.ts +++ b/src/infrastructure/model/mosaicMetadataTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicNamesDTO.ts b/src/infrastructure/model/mosaicNamesDTO.ts index 37c482345a..a62b2e1e31 100644 --- a/src/infrastructure/model/mosaicNamesDTO.ts +++ b/src/infrastructure/model/mosaicNamesDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicRestrictionEntryTypeEnum.ts b/src/infrastructure/model/mosaicRestrictionEntryTypeEnum.ts index e8f54fec2a..2fc22569e1 100644 --- a/src/infrastructure/model/mosaicRestrictionEntryTypeEnum.ts +++ b/src/infrastructure/model/mosaicRestrictionEntryTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicRestrictionTypeEnum.ts b/src/infrastructure/model/mosaicRestrictionTypeEnum.ts index be33b36d3e..f717ce1fab 100644 --- a/src/infrastructure/model/mosaicRestrictionTypeEnum.ts +++ b/src/infrastructure/model/mosaicRestrictionTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicSupplyChangeActionEnum.ts b/src/infrastructure/model/mosaicSupplyChangeActionEnum.ts index a0c465f65c..671d3ebd16 100644 --- a/src/infrastructure/model/mosaicSupplyChangeActionEnum.ts +++ b/src/infrastructure/model/mosaicSupplyChangeActionEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicSupplyChangeTransactionBodyDTO.ts b/src/infrastructure/model/mosaicSupplyChangeTransactionBodyDTO.ts index 3ae9aa3427..0843027b3d 100644 --- a/src/infrastructure/model/mosaicSupplyChangeTransactionBodyDTO.ts +++ b/src/infrastructure/model/mosaicSupplyChangeTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicSupplyChangeTransactionDTO.ts b/src/infrastructure/model/mosaicSupplyChangeTransactionDTO.ts index 1e15d2146a..06e95a3651 100644 --- a/src/infrastructure/model/mosaicSupplyChangeTransactionDTO.ts +++ b/src/infrastructure/model/mosaicSupplyChangeTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/mosaicsNamesDTO.ts b/src/infrastructure/model/mosaicsNamesDTO.ts index 617cd3fa47..d71e159f0a 100644 --- a/src/infrastructure/model/mosaicsNamesDTO.ts +++ b/src/infrastructure/model/mosaicsNamesDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/multisigAccountGraphInfoDTO.ts b/src/infrastructure/model/multisigAccountGraphInfoDTO.ts index cf9772b8a8..fa1e9b285a 100644 --- a/src/infrastructure/model/multisigAccountGraphInfoDTO.ts +++ b/src/infrastructure/model/multisigAccountGraphInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/multisigAccountInfoDTO.ts b/src/infrastructure/model/multisigAccountInfoDTO.ts index 124f401523..264048744c 100644 --- a/src/infrastructure/model/multisigAccountInfoDTO.ts +++ b/src/infrastructure/model/multisigAccountInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/multisigAccountModificationTransactionBodyDTO.ts b/src/infrastructure/model/multisigAccountModificationTransactionBodyDTO.ts index f3c66ed277..e3b659d432 100644 --- a/src/infrastructure/model/multisigAccountModificationTransactionBodyDTO.ts +++ b/src/infrastructure/model/multisigAccountModificationTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/multisigAccountModificationTransactionDTO.ts b/src/infrastructure/model/multisigAccountModificationTransactionDTO.ts index 9387c0be24..0dbd24af69 100644 --- a/src/infrastructure/model/multisigAccountModificationTransactionDTO.ts +++ b/src/infrastructure/model/multisigAccountModificationTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/multisigDTO.ts b/src/infrastructure/model/multisigDTO.ts index f966bfcc7e..cb5c6db4c0 100644 --- a/src/infrastructure/model/multisigDTO.ts +++ b/src/infrastructure/model/multisigDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceDTO.ts b/src/infrastructure/model/namespaceDTO.ts index b4c950b164..649b211740 100644 --- a/src/infrastructure/model/namespaceDTO.ts +++ b/src/infrastructure/model/namespaceDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceIds.ts b/src/infrastructure/model/namespaceIds.ts index 613c168f0f..a1df641d16 100644 --- a/src/infrastructure/model/namespaceIds.ts +++ b/src/infrastructure/model/namespaceIds.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceInfoDTO.ts b/src/infrastructure/model/namespaceInfoDTO.ts index 547389c563..e5add49ddf 100644 --- a/src/infrastructure/model/namespaceInfoDTO.ts +++ b/src/infrastructure/model/namespaceInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceMetaDTO.ts b/src/infrastructure/model/namespaceMetaDTO.ts index 7adb8828aa..d06292de30 100644 --- a/src/infrastructure/model/namespaceMetaDTO.ts +++ b/src/infrastructure/model/namespaceMetaDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceMetadataTransactionBodyDTO.ts b/src/infrastructure/model/namespaceMetadataTransactionBodyDTO.ts index 791af1af96..6c6114c3a3 100644 --- a/src/infrastructure/model/namespaceMetadataTransactionBodyDTO.ts +++ b/src/infrastructure/model/namespaceMetadataTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceMetadataTransactionDTO.ts b/src/infrastructure/model/namespaceMetadataTransactionDTO.ts index be47f1c485..d96015635e 100644 --- a/src/infrastructure/model/namespaceMetadataTransactionDTO.ts +++ b/src/infrastructure/model/namespaceMetadataTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceNameDTO.ts b/src/infrastructure/model/namespaceNameDTO.ts index 8580af7d03..70dc5c29f3 100644 --- a/src/infrastructure/model/namespaceNameDTO.ts +++ b/src/infrastructure/model/namespaceNameDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceRegistrationTransactionBodyDTO.ts b/src/infrastructure/model/namespaceRegistrationTransactionBodyDTO.ts index a3c21552a0..252dc827d7 100644 --- a/src/infrastructure/model/namespaceRegistrationTransactionBodyDTO.ts +++ b/src/infrastructure/model/namespaceRegistrationTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceRegistrationTransactionDTO.ts b/src/infrastructure/model/namespaceRegistrationTransactionDTO.ts index 16d1c746dd..77719732e5 100644 --- a/src/infrastructure/model/namespaceRegistrationTransactionDTO.ts +++ b/src/infrastructure/model/namespaceRegistrationTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/namespaceRegistrationTypeEnum.ts b/src/infrastructure/model/namespaceRegistrationTypeEnum.ts index 437b1494c8..1beff44b0a 100644 --- a/src/infrastructure/model/namespaceRegistrationTypeEnum.ts +++ b/src/infrastructure/model/namespaceRegistrationTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/networkTypeDTO.ts b/src/infrastructure/model/networkTypeDTO.ts index fa6605c537..b3c55f56cd 100644 --- a/src/infrastructure/model/networkTypeDTO.ts +++ b/src/infrastructure/model/networkTypeDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/nodeInfoDTO.ts b/src/infrastructure/model/nodeInfoDTO.ts index 9b22f69a0a..0f77c4a7b5 100644 --- a/src/infrastructure/model/nodeInfoDTO.ts +++ b/src/infrastructure/model/nodeInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/nodeTimeDTO.ts b/src/infrastructure/model/nodeTimeDTO.ts index 6862cf6500..8b69368e73 100644 --- a/src/infrastructure/model/nodeTimeDTO.ts +++ b/src/infrastructure/model/nodeTimeDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/receiptDTO.ts b/src/infrastructure/model/receiptDTO.ts index d0c1932d17..bf803e98a9 100644 --- a/src/infrastructure/model/receiptDTO.ts +++ b/src/infrastructure/model/receiptDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/receiptTypeEnum.ts b/src/infrastructure/model/receiptTypeEnum.ts index 0c84df3629..af56e639ac 100644 --- a/src/infrastructure/model/receiptTypeEnum.ts +++ b/src/infrastructure/model/receiptTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/resolutionEntryDTO.ts b/src/infrastructure/model/resolutionEntryDTO.ts index 19e2df7f1d..9e20122271 100644 --- a/src/infrastructure/model/resolutionEntryDTO.ts +++ b/src/infrastructure/model/resolutionEntryDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/resolutionStatementBodyDTO.ts b/src/infrastructure/model/resolutionStatementBodyDTO.ts index 4d9f6bddbf..a2265b1808 100644 --- a/src/infrastructure/model/resolutionStatementBodyDTO.ts +++ b/src/infrastructure/model/resolutionStatementBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/resolutionStatementDTO.ts b/src/infrastructure/model/resolutionStatementDTO.ts index 45493f4c6e..a72eddf8e8 100644 --- a/src/infrastructure/model/resolutionStatementDTO.ts +++ b/src/infrastructure/model/resolutionStatementDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/rolesTypeEnum.ts b/src/infrastructure/model/rolesTypeEnum.ts index 9383eb59c4..3beb003264 100644 --- a/src/infrastructure/model/rolesTypeEnum.ts +++ b/src/infrastructure/model/rolesTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/secretLockTransactionBodyDTO.ts b/src/infrastructure/model/secretLockTransactionBodyDTO.ts index 976228fdf1..f6607ba19c 100644 --- a/src/infrastructure/model/secretLockTransactionBodyDTO.ts +++ b/src/infrastructure/model/secretLockTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/secretLockTransactionDTO.ts b/src/infrastructure/model/secretLockTransactionDTO.ts index 1e97682b9d..820ead5247 100644 --- a/src/infrastructure/model/secretLockTransactionDTO.ts +++ b/src/infrastructure/model/secretLockTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/secretProofTransactionBodyDTO.ts b/src/infrastructure/model/secretProofTransactionBodyDTO.ts index 5bec3aa2d2..f0aa4691b0 100644 --- a/src/infrastructure/model/secretProofTransactionBodyDTO.ts +++ b/src/infrastructure/model/secretProofTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/secretProofTransactionDTO.ts b/src/infrastructure/model/secretProofTransactionDTO.ts index 516a9aa64a..1f669dfa00 100644 --- a/src/infrastructure/model/secretProofTransactionDTO.ts +++ b/src/infrastructure/model/secretProofTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/serverDTO.ts b/src/infrastructure/model/serverDTO.ts index fa2b0cd218..6ca3ec34c3 100644 --- a/src/infrastructure/model/serverDTO.ts +++ b/src/infrastructure/model/serverDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/serverInfoDTO.ts b/src/infrastructure/model/serverInfoDTO.ts index f457f56c5a..7477cdec40 100644 --- a/src/infrastructure/model/serverInfoDTO.ts +++ b/src/infrastructure/model/serverInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/sourceDTO.ts b/src/infrastructure/model/sourceDTO.ts index e7cb26b487..5a0da10f50 100644 --- a/src/infrastructure/model/sourceDTO.ts +++ b/src/infrastructure/model/sourceDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/statementsDTO.ts b/src/infrastructure/model/statementsDTO.ts index 51c5e7b889..19826a445c 100644 --- a/src/infrastructure/model/statementsDTO.ts +++ b/src/infrastructure/model/statementsDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/storageInfoDTO.ts b/src/infrastructure/model/storageInfoDTO.ts index 3792f26c71..80d9c34e30 100644 --- a/src/infrastructure/model/storageInfoDTO.ts +++ b/src/infrastructure/model/storageInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionBodyDTO.ts b/src/infrastructure/model/transactionBodyDTO.ts index 2e5c8791dd..0c1e60c8dc 100644 --- a/src/infrastructure/model/transactionBodyDTO.ts +++ b/src/infrastructure/model/transactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionDTO.ts b/src/infrastructure/model/transactionDTO.ts index 5ca7fc0fce..a7b021d308 100644 --- a/src/infrastructure/model/transactionDTO.ts +++ b/src/infrastructure/model/transactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionHashes.ts b/src/infrastructure/model/transactionHashes.ts index a2505d3a28..01575458a1 100644 --- a/src/infrastructure/model/transactionHashes.ts +++ b/src/infrastructure/model/transactionHashes.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionIds.ts b/src/infrastructure/model/transactionIds.ts index 5e8c76feb4..8b5d3b430a 100644 --- a/src/infrastructure/model/transactionIds.ts +++ b/src/infrastructure/model/transactionIds.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionInfoDTO.ts b/src/infrastructure/model/transactionInfoDTO.ts index 03729e0b15..bdd38fcae1 100644 --- a/src/infrastructure/model/transactionInfoDTO.ts +++ b/src/infrastructure/model/transactionInfoDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionMetaDTO.ts b/src/infrastructure/model/transactionMetaDTO.ts index 8c954af497..d2db983cba 100644 --- a/src/infrastructure/model/transactionMetaDTO.ts +++ b/src/infrastructure/model/transactionMetaDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionPayload.ts b/src/infrastructure/model/transactionPayload.ts index 8339cc9d34..ad924c23f8 100644 --- a/src/infrastructure/model/transactionPayload.ts +++ b/src/infrastructure/model/transactionPayload.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionStatementBodyDTO.ts b/src/infrastructure/model/transactionStatementBodyDTO.ts index 437e218cc0..eff40b8084 100644 --- a/src/infrastructure/model/transactionStatementBodyDTO.ts +++ b/src/infrastructure/model/transactionStatementBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionStatementDTO.ts b/src/infrastructure/model/transactionStatementDTO.ts index c424e1e39d..d67ec877d7 100644 --- a/src/infrastructure/model/transactionStatementDTO.ts +++ b/src/infrastructure/model/transactionStatementDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionStatusDTO.ts b/src/infrastructure/model/transactionStatusDTO.ts index 9fd7156054..2175477485 100644 --- a/src/infrastructure/model/transactionStatusDTO.ts +++ b/src/infrastructure/model/transactionStatusDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transactionTypeEnum.ts b/src/infrastructure/model/transactionTypeEnum.ts index ac7ecada8f..7ede0e278a 100644 --- a/src/infrastructure/model/transactionTypeEnum.ts +++ b/src/infrastructure/model/transactionTypeEnum.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transferTransactionBodyDTO.ts b/src/infrastructure/model/transferTransactionBodyDTO.ts index f3937250dc..ec7bd7080f 100644 --- a/src/infrastructure/model/transferTransactionBodyDTO.ts +++ b/src/infrastructure/model/transferTransactionBodyDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/transferTransactionDTO.ts b/src/infrastructure/model/transferTransactionDTO.ts index 3ed76c11ac..6d1095dd8a 100644 --- a/src/infrastructure/model/transferTransactionDTO.ts +++ b/src/infrastructure/model/transferTransactionDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/unresolvedMosaic.ts b/src/infrastructure/model/unresolvedMosaic.ts index 7a09e3c8d8..10947f3525 100644 --- a/src/infrastructure/model/unresolvedMosaic.ts +++ b/src/infrastructure/model/unresolvedMosaic.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/model/verifiableEntityDTO.ts b/src/infrastructure/model/verifiableEntityDTO.ts index 71d3cd1396..db424ee6b9 100644 --- a/src/infrastructure/model/verifiableEntityDTO.ts +++ b/src/infrastructure/model/verifiableEntityDTO.ts @@ -17,7 +17,7 @@ * 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 + * The version of the OpenAPI document: 0.7.19 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/infrastructure/templates/api-single.mustache b/src/infrastructure/templates/api-single.mustache index 9dd163676f..8588e38bc8 100755 --- a/src/infrastructure/templates/api-single.mustache +++ b/src/infrastructure/templates/api-single.mustache @@ -221,7 +221,10 @@ export class {{classname}} { if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) { resolve({ response, body }); } else { - reject({ response, body }); + reject({ response: { + statusCode: response.statusCode, + statusMessage: response.statusMessage, + }, body: response.body }); } } }); From 50ab61c3fe069faf8ef17bb3a76ada1bc0112a19 Mon Sep 17 00:00:00 2001 From: Steven Liu Date: Tue, 8 Oct 2019 13:51:10 +0100 Subject: [PATCH 3/3] JAV-60 [Github: #289] Changed MosaicRestrictionKey to hex string --- ...osaicRestrictionTransactionService.spec.ts | 11 +++--- .../transaction/CreateTransactionFromDTO.ts | 4 +-- .../transaction/SerializeTransactionToJSON.ts | 4 +-- .../MosaicRestrictionTransactionService.ts | 34 ++++++++----------- ...osaicRestrictionTransactionservice.spec.ts | 25 +++++--------- 5 files changed, 33 insertions(+), 45 deletions(-) diff --git a/e2e/service/MosaicRestrictionTransactionService.spec.ts b/e2e/service/MosaicRestrictionTransactionService.spec.ts index 038d9c4ff9..b13a685687 100644 --- a/e2e/service/MosaicRestrictionTransactionService.spec.ts +++ b/e2e/service/MosaicRestrictionTransactionService.spec.ts @@ -1,4 +1,5 @@ import { assert, expect } from 'chai'; +import { KeyGenerator } from '../../src/core/format/KeyGenerator'; import { Listener } from '../../src/infrastructure/Listener'; import { RestrictionHttp } from '../../src/infrastructure/RestrictionHttp'; import { TransactionHttp } from '../../src/infrastructure/TransactionHttp'; @@ -19,7 +20,7 @@ import { MosaicRestrictionTransactionService } from '../../src/service/MosaicRes describe('MosaicRestrictionTransactionService', () => { const deadline = Deadline.create(); - const key = '9876543'; + const key = KeyGenerator.generateUInt64Key('TestKey'); let targetAccount: Account; let account: Account; let restrictionHttp: RestrictionHttp; @@ -98,7 +99,7 @@ describe('MosaicRestrictionTransactionService', () => { const mosaicGlobalRestrictionTransaction = MosaicGlobalRestrictionTransaction.create( Deadline.create(), mosaicId, - UInt64.fromNumericString(key), + key, UInt64.fromUint(0), MosaicRestrictionType.NONE, UInt64.fromUint(0), @@ -132,7 +133,7 @@ describe('MosaicRestrictionTransactionService', () => { const mosaicAddressRestrictionTransaction = MosaicAddressRestrictionTransaction.create( Deadline.create(), mosaicId, - UInt64.fromNumericString(key), + key, targetAccount.address, UInt64.fromUint(2), NetworkType.MIJIN_TEST, @@ -177,7 +178,7 @@ describe('MosaicRestrictionTransactionService', () => { expect(transaction.previousRestrictionType).to.be.equal(MosaicRestrictionType.GE); expect(transaction.newRestrictionValue.toString()).to.be.equal('1'); expect(transaction.newRestrictionType).to.be.equal(MosaicRestrictionType.GE); - expect(transaction.restrictionKey.toString()).to.be.equal(key); + expect(transaction.restrictionKey.toHex()).to.be.equal(key.toHex()); done(); }); }); @@ -196,7 +197,7 @@ describe('MosaicRestrictionTransactionService', () => { expect(transaction.previousRestrictionValue.toString()).to.be.equal('2'); expect(transaction.newRestrictionValue.toString()).to.be.equal('3'); expect(transaction.targetAddress.plain()).to.be.equal(targetAccount.address.plain()); - expect(transaction.restrictionKey.toString()).to.be.equal(key); + expect(transaction.restrictionKey.toHex()).to.be.equal(key.toHex()); done(); }); }); diff --git a/src/infrastructure/transaction/CreateTransactionFromDTO.ts b/src/infrastructure/transaction/CreateTransactionFromDTO.ts index 815ced74e8..a2cfd921cc 100644 --- a/src/infrastructure/transaction/CreateTransactionFromDTO.ts +++ b/src/infrastructure/transaction/CreateTransactionFromDTO.ts @@ -347,7 +347,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr UInt64.fromNumericString(transactionDTO.maxFee || '0'), new MosaicId(transactionDTO.mosaicId), new MosaicId(transactionDTO.referenceMosaicId), - UInt64.fromNumericString(transactionDTO.restrictionKey), + UInt64.fromHex(transactionDTO.restrictionKey), UInt64.fromNumericString(transactionDTO.previousRestrictionValue), transactionDTO.previousRestrictionType, UInt64.fromNumericString(transactionDTO.newRestrictionValue), @@ -365,7 +365,7 @@ const CreateStandaloneTransactionFromDTO = (transactionDTO, transactionInfo): Tr Deadline.createFromDTO(transactionDTO.deadline), UInt64.fromNumericString(transactionDTO.maxFee || '0'), new MosaicId(transactionDTO.mosaicId), - UInt64.fromNumericString(transactionDTO.restrictionKey), + UInt64.fromHex(transactionDTO.restrictionKey), typeof targetAddress === 'object' && targetAddress.hasOwnProperty('address') ? Address.createFromRawAddress(targetAddress.address) : Address.createFromEncoded(targetAddress), UInt64.fromNumericString(transactionDTO.previousRestrictionValue), diff --git a/src/infrastructure/transaction/SerializeTransactionToJSON.ts b/src/infrastructure/transaction/SerializeTransactionToJSON.ts index 484859a279..fcdbb06501 100644 --- a/src/infrastructure/transaction/SerializeTransactionToJSON.ts +++ b/src/infrastructure/transaction/SerializeTransactionToJSON.ts @@ -170,7 +170,7 @@ export const SerializeTransactionToJSON = (transaction: Transaction): any => { return { mosaicId: (transaction as MosaicGlobalRestrictionTransaction).mosaicId.toHex(), referenceMosaicId: (transaction as MosaicGlobalRestrictionTransaction).referenceMosaicId.toHex(), - restrictionKey: (transaction as MosaicGlobalRestrictionTransaction).restrictionKey.toString(), + restrictionKey: (transaction as MosaicGlobalRestrictionTransaction).restrictionKey.toHex(), previousRestrictionValue: (transaction as MosaicGlobalRestrictionTransaction).previousRestrictionValue.toString(), previousRestrictionType: (transaction as MosaicGlobalRestrictionTransaction).previousRestrictionType, newRestrictionValue: (transaction as MosaicGlobalRestrictionTransaction).newRestrictionValue.toString(), @@ -179,7 +179,7 @@ export const SerializeTransactionToJSON = (transaction: Transaction): any => { case TransactionType.MOSAIC_ADDRESS_RESTRICTION: return { mosaicId: (transaction as MosaicAddressRestrictionTransaction).mosaicId.toHex(), - restrictionKey: (transaction as MosaicAddressRestrictionTransaction).restrictionKey.toString(), + restrictionKey: (transaction as MosaicAddressRestrictionTransaction).restrictionKey.toHex(), targetAddress: (transaction as MosaicAddressRestrictionTransaction).targetAddress.toDTO(), previousRestrictionValue: (transaction as MosaicAddressRestrictionTransaction).previousRestrictionValue.toString(), newRestrictionValue: (transaction as MosaicAddressRestrictionTransaction).newRestrictionValue.toString(), diff --git a/src/service/MosaicRestrictionTransactionService.ts b/src/service/MosaicRestrictionTransactionService.ts index 60576f11f6..4d35365e89 100644 --- a/src/service/MosaicRestrictionTransactionService.ts +++ b/src/service/MosaicRestrictionTransactionService.ts @@ -58,12 +58,12 @@ export class MosaicRestrictionTransactionService { public createMosaicGlobalRestrictionTransaction(deadline: Deadline, networkType: NetworkType, mosaicId: MosaicId, - restrictionKey: string, + restrictionKey: UInt64, restrictionValue: string, restrictionType: MosaicRestrictionType, referenceMosaicId: MosaicId = new MosaicId(UInt64.fromUint(0).toDTO()), maxFee: UInt64 = new UInt64([0, 0])): Observable { - this.validateInput(restrictionKey, restrictionValue); + this.validateInput(restrictionValue); return this.getGlobalRestrictionEntry(mosaicId, restrictionKey).pipe( map((restrictionEntry: MosaicGlobalRestrictionItem | undefined) => { const currentValue = restrictionEntry ? UInt64.fromNumericString(restrictionEntry.restrictionValue) : @@ -73,7 +73,7 @@ export class MosaicRestrictionTransactionService { return MosaicGlobalRestrictionTransaction.create( deadline, mosaicId, - UInt64.fromNumericString(restrictionKey), + restrictionKey, currentValue, currentType, UInt64.fromNumericString(restrictionValue), @@ -101,11 +101,11 @@ export class MosaicRestrictionTransactionService { public createMosaicAddressRestrictionTransaction(deadline: Deadline, networkType: NetworkType, mosaicId: MosaicId, - restrictionKey: string, + restrictionKey: UInt64, targetAddress: Address, restrictionValue: string, maxFee: UInt64 = new UInt64([0, 0])): Observable { - this.validateInput(restrictionKey, restrictionValue); + this.validateInput(restrictionValue); return this.getGlobalRestrictionEntry(mosaicId, restrictionKey).pipe( switchMap((restrictionEntry: MosaicGlobalRestrictionItem | undefined) => { if (!restrictionEntry) { @@ -113,13 +113,13 @@ export class MosaicRestrictionTransactionService { } return this.restrictionHttp.getMosaicAddressRestriction(mosaicId, targetAddress).pipe( map((addressRestriction: MosaicAddressRestriction) => { - const addressEntry = addressRestriction.restrictions.get(restrictionKey); + const addressEntry = addressRestriction.restrictions.get(restrictionKey.toHex()); const currentValue = addressEntry ? UInt64.fromNumericString(addressEntry) : this.defaultMosaicAddressRestrictionVaule; return MosaicAddressRestrictionTransaction.create( deadline, mosaicId, - UInt64.fromNumericString(restrictionKey), + restrictionKey, targetAddress, UInt64.fromNumericString(restrictionValue), networkType, @@ -133,7 +133,7 @@ export class MosaicRestrictionTransactionService { return of(MosaicAddressRestrictionTransaction.create( deadline, mosaicId, - UInt64.fromNumericString(restrictionKey), + restrictionKey, targetAddress, UInt64.fromNumericString(restrictionValue), networkType, @@ -153,29 +153,25 @@ export class MosaicRestrictionTransactionService { * @param restrictionKey - Mosaic global restriction key * @return {Observable} */ - private getGlobalRestrictionEntry(mosaicId: MosaicId, restrictionKey: string): Observable { + private getGlobalRestrictionEntry(mosaicId: MosaicId, restrictionKey: UInt64): Observable { return this.restrictionHttp.getMosaicGlobalRestriction(mosaicId).pipe( map((mosaicRestriction: MosaicGlobalRestriction) => { - return mosaicRestriction.restrictions.get(restrictionKey); + return mosaicRestriction.restrictions.get(restrictionKey.toHex()); }), - catchError((err) => { - if (err.response.statusCode && err.response.statusCode === 404) { + catchError((err: Error) => { + const error = JSON.parse(err.message); + if (error && error.statusCode && error.statusCode === 404) { return of(undefined); } - throw Error(err); + throw Error(err.message); })); } /** * Check if input restriction key and value are invalid or not - * @param key - Restriction key * @param value - Restriction value */ - private validateInput(key: string, value: string) { - if (!UInt64.isLongNumericString(key)) { - throw Error(`RestrictionKey: ${key} is not a valid numeric string.`); - } - + private validateInput(value: string) { if (!UInt64.isLongNumericString(value)) { throw Error(`RestrictionValue: ${value} is not a valid numeric string.`); } diff --git a/test/service/MosaicRestrictionTransactionservice.spec.ts b/test/service/MosaicRestrictionTransactionservice.spec.ts index bce758a2ee..9aa4779ba5 100644 --- a/test/service/MosaicRestrictionTransactionservice.spec.ts +++ b/test/service/MosaicRestrictionTransactionservice.spec.ts @@ -17,6 +17,7 @@ import {expect} from 'chai'; import {of as observableOf} from 'rxjs'; import {deepEqual, instance, mock, when} from 'ts-mockito'; +import { KeyGenerator } from '../../src/core/format/KeyGenerator'; import { RestrictionHttp } from '../../src/infrastructure/RestrictionHttp'; import { Account } from '../../src/model/account/Account'; import {NetworkType} from '../../src/model/blockchain/NetworkType'; @@ -39,8 +40,8 @@ describe('MosaicRestrictionTransactionService', () => { let mosaicId: MosaicId; let referenceMosaicId: MosaicId; let mosaicRestrictionTransactionService: MosaicRestrictionTransactionService; - const key = '123456'; - const invalidKey = '9999'; + const key = KeyGenerator.generateUInt64Key('TestKey'); + const invalidKey = KeyGenerator.generateUInt64Key('9999'); let mosaicIdWrongKey: MosaicId; const globalRestrictionValue = '1000'; const globalRestrictionType = MosaicRestrictionType.LE; @@ -76,7 +77,7 @@ describe('MosaicRestrictionTransactionService', () => { MosaicRestrictionType.LE) .subscribe((transaction: MosaicGlobalRestrictionTransaction) => { expect(transaction.type).to.be.equal(TransactionType.MOSAIC_GLOBAL_RESTRICTION); - expect(transaction.restrictionKey.toString()).to.be.equal(key); + expect(transaction.restrictionKey.toHex()).to.be.equal(key.toHex()); expect(transaction.previousRestrictionType).to.be.equal(globalRestrictionType); expect(transaction.previousRestrictionValue.toString()).to.be.equal(globalRestrictionValue); expect(transaction.referenceMosaicId.toHex()).to.be.equal(new MosaicId(UInt64.fromUint(0).toDTO()).toHex()); @@ -95,7 +96,7 @@ describe('MosaicRestrictionTransactionService', () => { referenceMosaicId) .subscribe((transaction: MosaicGlobalRestrictionTransaction) => { expect(transaction.type).to.be.equal(TransactionType.MOSAIC_GLOBAL_RESTRICTION); - expect(transaction.restrictionKey.toString()).to.be.equal(key); + expect(transaction.restrictionKey.toHex()).to.be.equal(key.toHex()); expect(transaction.previousRestrictionType).to.be.equal(globalRestrictionType); expect(transaction.previousRestrictionValue.toString()).to.be.equal(globalRestrictionValue); expect(transaction.referenceMosaicId.toHex()).to.be.equal(referenceMosaicId.toHex()); @@ -113,7 +114,7 @@ describe('MosaicRestrictionTransactionService', () => { '2000') .subscribe((transaction: MosaicAddressRestrictionTransaction) => { expect(transaction.type).to.be.equal(TransactionType.MOSAIC_ADDRESS_RESTRICTION); - expect(transaction.restrictionKey.toString()).to.be.equal(key); + expect(transaction.restrictionKey.toHex()).to.be.equal(key.toHex()); expect(transaction.targetAddress.plain()).to.be.equal(account.address.plain()); expect(transaction.previousRestrictionValue.toString()).to.be.equal(addressRestrictionValue); done(); @@ -131,16 +132,6 @@ describe('MosaicRestrictionTransactionService', () => { MosaicRestrictionType.LE); }).to.throw(Error, 'RestrictionValue: wrong value is not a valid numeric string.'); - expect(() => { - mosaicRestrictionTransactionService.createMosaicGlobalRestrictionTransaction( - Deadline.create(), - NetworkType.MIJIN_TEST, - mosaicId, - 'wrong key', - '2000', - MosaicRestrictionType.LE); - }).to.throw(Error, 'RestrictionKey: wrong key is not a valid numeric string.'); - expect(() => { mosaicRestrictionTransactionService.createMosaicAddressRestrictionTransaction( Deadline.create(), @@ -170,7 +161,7 @@ describe('MosaicRestrictionTransactionService', () => { MosaicRestrictionEntryType.GLOBAL, mosaicId, new Map() - .set(key, + .set(key.toHex(), new MosaicGlobalRestrictionItem( referenceMosaicId, globalRestrictionValue, @@ -187,7 +178,7 @@ describe('MosaicRestrictionTransactionService', () => { mosaicId, account.address, new Map() - .set(key, + .set(key.toHex(), addressRestrictionValue, ), );