New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

symbol-statistics-service-typescript-fetch-client

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

symbol-statistics-service-typescript-fetch-client - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3-alpha-202111181919

dist/models/NodeListOrder.d.ts

43

dist/apis/NodeApi.d.ts

@@ -1,17 +0,9 @@

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import { HostDetail, NodeHeightStats, NodeInfo, NodeListFilter, NodeStats, TimeSeriesNodeCount } from '../models';
import { HostDetail, NodeHeightStats, NodeInfo, NodeListFilter, NodeListOrder, NodeStats, TimeSeriesNodeCount } from '../models';
export interface GetNodeRequest {
publicKey: string;
}
export interface GetNodeByNodePublicKeyRequest {
nodePublicKey: string;
}
export interface GetNodesRequest {

@@ -21,2 +13,3 @@ filter?: NodeListFilter;

ssl?: boolean;
order?: NodeListOrder;
}

@@ -28,31 +21,39 @@ /**

/**
* Returns the node information for the given public key.
* Returns information about the node with the given main account.
*/
getNodeRaw(requestParameters: GetNodeRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NodeInfo>>;
/**
* Returns the node information for the given public key.
* Returns information about the node with the given main account.
*/
getNode(publicKey: string, initOverrides?: RequestInit): Promise<NodeInfo>;
/**
* Returns a summary of the number per role over time.
* Returns the node information for the given transport public key.
*/
getNodeByNodePublicKeyRaw(requestParameters: GetNodeByNodePublicKeyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NodeInfo>>;
/**
* Returns the node information for the given transport public key.
*/
getNodeByNodePublicKey(nodePublicKey: string, initOverrides?: RequestInit): Promise<NodeInfo>;
/**
* Returns the summary of the number of nodes per role over time.
*/
getNodeCountRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<TimeSeriesNodeCount>>>;
/**
* Returns a summary of the number per role over time.
* Returns the summary of the number of nodes per role over time.
*/
getNodeCount(initOverrides?: RequestInit): Promise<Array<TimeSeriesNodeCount>>;
/**
* Returns a summary of the number of nodes per height and finalized height.
* Returns the summary of the number of nodes per height and finalized height.
*/
getNodeHeightStatsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<NodeHeightStats>>;
/**
* Returns a summary of the number of nodes per height and finalized height.
* Returns the summary of the number of nodes per height and finalized height.
*/
getNodeHeightStats(initOverrides?: RequestInit): Promise<NodeHeightStats>;
/**
* Returns a summary of the number of nodes per role type.
* Returns the summary of the number of nodes per role type.
*/
getNodeStatsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<NodeStats>>;
/**
* Returns a summary of the number of nodes per role type.
* Returns the summary of the number of nodes per role type.
*/

@@ -67,3 +68,3 @@ getNodeStats(initOverrides?: RequestInit): Promise<NodeStats>;

*/
getNodes(filter?: NodeListFilter, limit?: number, ssl?: boolean, initOverrides?: RequestInit): Promise<Array<NodeInfo>>;
getNodes(filter?: NodeListFilter, limit?: number, ssl?: boolean, order?: NodeListOrder, initOverrides?: RequestInit): Promise<Array<NodeInfo>>;
/**

@@ -70,0 +71,0 @@ * Returns the list of hosting details for all the known nodes.

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -33,3 +49,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

/**
* Returns the node information for the given public key.
* Returns information about the node with the given main account.
*/

@@ -53,3 +69,3 @@ getNodeRaw(requestParameters, initOverrides) {

/**
* Returns the node information for the given public key.
* Returns information about the node with the given main account.
*/

@@ -63,4 +79,32 @@ getNode(publicKey, initOverrides) {

/**
* Returns a summary of the number per role over time.
* Returns the node information for the given transport public key.
*/
getNodeByNodePublicKeyRaw(requestParameters, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
if (requestParameters.nodePublicKey === null || requestParameters.nodePublicKey === undefined) {
throw new runtime.RequiredError('nodePublicKey', 'Required parameter requestParameters.nodePublicKey was null or undefined when calling getNodeByNodePublicKey.');
}
const queryParameters = {};
const headerParameters = {};
const response = yield this.request({
path: `/nodes/nodePublicKey/{nodePublicKey}`.replace(`{${"nodePublicKey"}}`, encodeURIComponent(String(requestParameters.nodePublicKey))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => models_1.NodeInfoFromJSON(jsonValue));
});
}
/**
* Returns the node information for the given transport public key.
*/
getNodeByNodePublicKey(nodePublicKey, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.getNodeByNodePublicKeyRaw({ nodePublicKey: nodePublicKey }, initOverrides);
return yield response.value();
});
}
/**
* Returns the summary of the number of nodes per role over time.
*/
getNodeCountRaw(initOverrides) {

@@ -80,3 +124,3 @@ return __awaiter(this, void 0, void 0, function* () {

/**
* Returns a summary of the number per role over time.
* Returns the summary of the number of nodes per role over time.
*/

@@ -90,3 +134,3 @@ getNodeCount(initOverrides) {

/**
* Returns a summary of the number of nodes per height and finalized height.
* Returns the summary of the number of nodes per height and finalized height.
*/

@@ -107,3 +151,3 @@ getNodeHeightStatsRaw(initOverrides) {

/**
* Returns a summary of the number of nodes per height and finalized height.
* Returns the summary of the number of nodes per height and finalized height.
*/

@@ -117,3 +161,3 @@ getNodeHeightStats(initOverrides) {

/**
* Returns a summary of the number of nodes per role type.
* Returns the summary of the number of nodes per role type.
*/

@@ -134,3 +178,3 @@ getNodeStatsRaw(initOverrides) {

/**
* Returns a summary of the number of nodes per role type.
* Returns the summary of the number of nodes per role type.
*/

@@ -158,2 +202,5 @@ getNodeStats(initOverrides) {

}
if (requestParameters.order !== undefined) {
queryParameters['order'] = requestParameters.order;
}
const headerParameters = {};

@@ -172,5 +219,5 @@ const response = yield this.request({

*/
getNodes(filter, limit, ssl, initOverrides) {
getNodes(filter, limit, ssl, order, initOverrides) {
return __awaiter(this, void 0, void 0, function* () {
const response = yield this.getNodesRaw({ filter: filter, limit: limit, ssl: ssl }, initOverrides);
const response = yield this.getNodesRaw({ filter: filter, limit: limit, ssl: ssl, order: order }, initOverrides);
return yield response.value();

@@ -177,0 +224,0 @@ });

@@ -0,15 +1,4 @@

import { Finalization, NodeStatus, WebSocketStatus } from './';
/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Finalization, NodeStatus } from './';
/**
* The status of the api node. Information is from the rest gateway.
* The status of the API node. Information comes from the REST gateway.
* @export

@@ -20,3 +9,9 @@ * @interface ApiStatus

/**
* The rest gateway url ready to be connected.
*
* @type {WebSocketStatus}
* @memberof ApiStatus
*/
webSocket: WebSocketStatus;
/**
* The REST gateway URL ready to be connected to.
* @type {string}

@@ -27,3 +22,3 @@ * @memberof ApiStatus

/**
*
* Whether the API is ready to accept queries.
* @type {boolean}

@@ -34,3 +29,3 @@ * @memberof ApiStatus

/**
*
* When was the API last checked, in milliseconds elapsed since UNIX epoch (January 1, 1970 00:00:00 UTC).
* @type {number}

@@ -47,3 +42,3 @@ * @memberof ApiStatus

/**
*
* Whether the API accepts connections through HTTPS.
* @type {boolean}

@@ -54,3 +49,4 @@ * @memberof ApiStatus

/**
*
* Node's public key used to stablish TLS connections and
* [delegated harvesting](https://docs.symbolplatform.com/guides/harvesting/activating-delegated-harvesting-manual.html), for example.
* @type {string}

@@ -61,3 +57,3 @@ * @memberof ApiStatus

/**
*
* Current chain height as reported by this node.
* @type {number}

@@ -74,3 +70,3 @@ * @memberof ApiStatus

/**
*
* Version of the REST API used by this node.
* @type {string}

@@ -77,0 +73,0 @@ * @memberof ApiStatus

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -28,2 +44,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

return {
'webSocket': _1.WebSocketStatusFromJSON(json['webSocket']),
'restGatewayUrl': json['restGatewayUrl'],

@@ -49,2 +66,3 @@ 'isAvailable': json['isAvailable'],

return {
'webSocket': _1.WebSocketStatusToJSON(value.webSocket),
'restGatewayUrl': value.restGatewayUrl,

@@ -51,0 +69,0 @@ 'isAvailable': value.isAvailable,

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The world coordinates of the node based on the ip address.
* The world coordinates of the node based on its IP address.
* @export

@@ -15,0 +4,0 @@ * @interface Coordinates

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* Status of the [finalization](https://docs.symbolplatform.com/concepts/block.html#finalization) gadget.
* @export

@@ -19,3 +8,4 @@ * @interface Finalization

/**
* The finalized block of the blockchain.
* The latest finalized block of the blockchain.
* This block and all blocks before it are immutable and cannot be rolled back.
* @type {number}

@@ -26,3 +16,3 @@ * @memberof Finalization

/**
*
* Current [finalization epoch](https://docs.symbolplatform.com/concepts/block.html#finalization).
* @type {number}

@@ -33,3 +23,3 @@ * @memberof Finalization

/**
*
* Current [finalization point](https://docs.symbolplatform.com/concepts/block.html#finalization).
* @type {number}

@@ -36,0 +26,0 @@ * @memberof Finalization

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,15 +0,4 @@

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { Coordinates } from './';
/**
* Location detils of the node.
* Location details of the node.
* @export

@@ -32,3 +21,3 @@ * @interface HostDetail

/**
*
* Text description of the host's location.
* @type {string}

@@ -45,3 +34,3 @@ * @memberof HostDetail

/**
*
* Text description of the organization managing this node.
* @type {string}

@@ -52,3 +41,3 @@ * @memberof HostDetail

/**
*
* AS number and organization, separated by space (RIR).
* @type {string}

@@ -55,0 +44,0 @@ * @memberof HostDetail

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -11,2 +11,3 @@ export * from './ApiStatus';

export * from './NodeListFilter';
export * from './NodeListOrder';
export * from './NodeStats';

@@ -17,1 +18,2 @@ export * from './NodeStatus';

export * from './TimeSeriesNodeCountAllOf';
export * from './WebSocketStatus';

@@ -25,2 +25,3 @@ "use strict";

__exportStar(require("./NodeListFilter"), exports);
__exportStar(require("./NodeListOrder"), exports);
__exportStar(require("./NodeStats"), exports);

@@ -31,1 +32,2 @@ __exportStar(require("./NodeStatus"), exports);

__exportStar(require("./TimeSeriesNodeCountAllOf"), exports);
__exportStar(require("./WebSocketStatus"), exports);
/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* An error has occurred processing the request.

@@ -14,0 +3,0 @@ * @export

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Network type:

@@ -14,0 +3,0 @@ * * 0x68 (104 decimal) - Public main network.

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,15 +0,4 @@

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { NodeHeightStatValue } from './';
/**
* A summary of the number of nodes per height and finalized height.
* The summary of the number of nodes per height and finalized height.
* @export

@@ -20,3 +9,3 @@ * @interface NodeHeightStats

/**
*
* Histogram of chain heights.
* @type {Array<NodeHeightStatValue>}

@@ -27,3 +16,3 @@ * @memberof NodeHeightStats

/**
*
* Histogram of chain [finalization](https://docs.symbolplatform.com/concepts/block.html#finalization) heights.
* @type {Array<NodeHeightStatValue>}

@@ -34,3 +23,3 @@ * @memberof NodeHeightStats

/**
* Date and time when the data was collected
* Date and time when the data was collected.
* @type {string}

@@ -37,0 +26,0 @@ * @memberof NodeHeightStats

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* A simple value of the Node Hight Stats.
* A single value of the Node Height Stats.
* @export

@@ -19,3 +8,3 @@ * @interface NodeHeightStatValue

/**
*
* Height, as a string because it represents a 64-bit integer.
* @type {string}

@@ -26,3 +15,3 @@ * @memberof NodeHeightStatValue

/**
*
* Number of nodes currently at that height.
* @type {number}

@@ -29,0 +18,0 @@ * @memberof NodeHeightStatValue

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,15 +0,4 @@

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { ApiStatus, HostDetail, NetworkType, PeerStatus } from './';
/**
* The node information the statitcs service has recolected from the chain.
* Node information gathered from the chain by the statistics service.
* @export

@@ -20,3 +9,3 @@ * @interface NodeInfo

/**
*
* Node's main account's public key.
* @type {string}

@@ -29,3 +18,3 @@ * @memberof NodeInfo

* * 1 - Peer node.
* * 2 - Api node.
* * 2 - API node.
* * 4 - Voting node.

@@ -35,7 +24,7 @@ * * 64 - IPv4 compatible node

*
* The values are bitwise added together, Examples:
* 1 = Just Peer.
* 2 = Just Api.
* 3 = Peer and Api node.
* 7 = Peer, Api and Voting node.
* The values are bitwise added together, for example:
* 1 = Only Peer.
* 2 = Only API.
* 3 = Both Peer and API node.
* 7 = Peer, API and Voting node.
* 65 = IPv4 and Peer node.

@@ -47,3 +36,5 @@ * @type {number}

/**
* The client version. Each pair of digits represent a digit number. E.g. 16777728 is 1.0.2.0
* The version is encoded as a single 4-byte integer, where the Most-Significant Byte
* encodes the Major version, and the rest of bytes are the Minor, the Micro and the Patch version.
* For example, version 16777472 (decimal) is 01000100h (hex), which corresponds to version 1.0.1.0.
* @type {number}

@@ -60,3 +51,5 @@ * @memberof NodeInfo

/**
*
* Hash seed of the network this node is connected to.
* All nodes connected to the same network have the same
* [Hash Seed](https://docs.symbolplatform.com/guides/network/configuring-network-properties.html#network-configuration).
* @type {string}

@@ -63,0 +56,0 @@ * @memberof NodeInfo

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* suggested: all available api nodes that have a rest endpoint and are online.
* preferred: all preferred api nodes that have a rest endpoint and are online. Prefered are nodes that match some specific domains.
* `suggested`: All available API nodes that have a REST endpoint and are online.
* `preferred`: Preferred API nodes that have a REST endpoint and are online. Preferred nodes match some specific domains.
* @export

@@ -16,0 +5,0 @@ * @enum {string}

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -18,4 +34,4 @@ Object.defineProperty(exports, "__esModule", { value: true });

/**
* suggested: all available api nodes that have a rest endpoint and are online.
* preferred: all preferred api nodes that have a rest endpoint and are online. Prefered are nodes that match some specific domains.
* `suggested`: All available API nodes that have a REST endpoint and are online.
* `preferred`: Preferred API nodes that have a REST endpoint and are online. Preferred nodes match some specific domains.
* @export

@@ -22,0 +38,0 @@ * @enum {string}

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* A summary of the number of nodes per role type.
* The summary of the number of nodes per role type.
* @export

@@ -19,3 +8,3 @@ * @interface NodeStats

/**
* The number of nodes indexed by role type
* The number of nodes indexed by role type.
* @type {{ [key: string]: object; }}

@@ -22,0 +11,0 @@ * @memberof NodeStats

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The status of the rest gateway.
* The status of the REST gateway.
* @export

@@ -19,3 +8,3 @@ * @interface NodeStatus

/**
*
* Whether the front-end REST gateway is up and running. Possible values are `up` and `down`. Node needs to be restarted if `down`.
* @type {string}

@@ -26,3 +15,3 @@ * @memberof NodeStatus

/**
*
* Whether the back-end database is up and running. Possible values are `up` and `down`. Node needs to be restarted if `down`.
* @type {string}

@@ -29,0 +18,0 @@ * @memberof NodeStatus

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* The status of the peer node.

@@ -19,3 +8,3 @@ * @export

/**
*
* When was the peer last contacted, in milliseconds elapsed since UNIX epoch (January 1, 1970 00:00:00 UTC).
* @type {number}

@@ -26,3 +15,3 @@ * @memberof PeerStatus

/**
*
* Whether the node is currently available (reachable and answering queries).
* @type {boolean}

@@ -29,0 +18,0 @@ * @memberof PeerStatus

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -15,0 +31,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* A summary of the number per role over time.
* Summary of the number of nodes per role over time.
* @export

@@ -19,3 +8,3 @@ * @interface TimeSeriesNodeCount

/**
*
* Total number of nodes
* @type {number}

@@ -25,8 +14,2 @@ * @memberof TimeSeriesNodeCount

total?: number;
/**
*
* @type {number}
* @memberof TimeSeriesNodeCount
*/
rand?: number;
}

@@ -33,0 +16,0 @@ export declare function TimeSeriesNodeCountFromJSON(json: any): TimeSeriesNodeCount;

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -28,3 +44,2 @@ Object.defineProperty(exports, "__esModule", { value: true });

'total': !runtime_1.exists(json, 'total') ? undefined : json['total'],
'rand': !runtime_1.exists(json, 'rand') ? undefined : json['rand'],
};

@@ -42,5 +57,4 @@ }

'total': value.total,
'rand': value.rand,
};
}
exports.TimeSeriesNodeCountToJSON = TimeSeriesNodeCountToJSON;
/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export

@@ -19,3 +8,3 @@ * @interface TimeSeriesNodeCountAllOf

/**
*
* Total number of nodes
* @type {number}

@@ -25,8 +14,2 @@ * @memberof TimeSeriesNodeCountAllOf

total?: number;
/**
*
* @type {number}
* @memberof TimeSeriesNodeCountAllOf
*/
rand?: number;
}

@@ -33,0 +16,0 @@ export declare function TimeSeriesNodeCountAllOfFromJSON(json: any): TimeSeriesNodeCountAllOf;

"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -28,3 +44,2 @@ Object.defineProperty(exports, "__esModule", { value: true });

'total': !runtime_1.exists(json, 'total') ? undefined : json['total'],
'rand': !runtime_1.exists(json, 'rand') ? undefined : json['rand'],
};

@@ -42,5 +57,4 @@ }

'total': value.total,
'rand': value.rand,
};
}
exports.TimeSeriesNodeCountAllOfToJSON = TimeSeriesNodeCountAllOfToJSON;

@@ -1,12 +0,1 @@

/**
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
export declare const BASE_PATH: string;

@@ -152,3 +141,3 @@ /**

export declare class RestClientUtils {
static getErrorFromFetchResponse(error: Response | Error): Promise<RestClientCallError>;
static getErrorFromFetchResponse(error: Response): Promise<RestClientCallError>;
}
"use strict";
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
* MIT License
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -268,25 +284,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

return __awaiter(this, void 0, void 0, function* () {
if (error instanceof Error) {
const statusCode = 0;
const message = error.message || 'Unknown Error';
const statusMessage = (error['code'] || 'Unknown Error').toString();
return new RestClientCallError(message, statusCode, statusMessage, '');
}
else {
const statusCode = (error === null || error === void 0 ? void 0 : error.status) || 0;
const statusMessage = ((error === null || error === void 0 ? void 0 : error.statusText) || 'Unknown Error').toString();
const body = (error.text && typeof error.text === 'function' && (yield error.text())) || '';
const getMessage = () => {
var _a;
const defaultMessage = `${statusCode} - ${statusMessage}`;
try {
return ((_a = JSON.parse(body)) === null || _a === void 0 ? void 0 : _a.message) || defaultMessage;
}
catch (e) {
return defaultMessage;
}
};
const message = getMessage();
return new RestClientCallError(message, statusCode, statusMessage, body);
}
const statusCode = (error === null || error === void 0 ? void 0 : error.status) || 0;
const statusMessage = ((error === null || error === void 0 ? void 0 : error.statusText) || 'Unknown Error').toString();
const body = (error.text && typeof error.text === 'function' && (yield error.text())) || '';
const getMessage = () => {
var _a;
const defaultMessage = `${statusCode} - ${statusMessage}`;
try {
return ((_a = JSON.parse(body)) === null || _a === void 0 ? void 0 : _a.message) || defaultMessage;
}
catch (e) {
return defaultMessage;
}
};
const message = getMessage();
return new RestClientCallError(message, statusCode, statusMessage, body);
});

@@ -293,0 +301,0 @@ }

{
"name": "symbol-statistics-service-typescript-fetch-client",
"version": "1.1.2",
"description": "OpenAPI client for symbol-statistics-service-typescript-fetch-client",
"version": "1.1.3-alpha-202111181919",
"description": "OpenAPI client for https://github.com/symbol/statistics-service",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

@@ -1,2 +0,2 @@

## symbol-statistics-service-typescript-fetch-client@1.1.2
## symbol-statistics-service-typescript-fetch-client@1.1.3-alpha-202111181919

@@ -39,3 +39,3 @@ This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:

```
npm install symbol-statistics-service-typescript-fetch-client@1.1.2 --save
npm install symbol-statistics-service-typescript-fetch-client@1.1.3-alpha-202111181919 --save
```

@@ -42,0 +42,0 @@

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -30,2 +46,5 @@

NodeListFilterToJSON,
NodeListOrder,
NodeListOrderFromJSON,
NodeListOrderToJSON,
NodeStats,

@@ -43,2 +62,6 @@ NodeStatsFromJSON,

export interface GetNodeByNodePublicKeyRequest {
nodePublicKey: string;
}
export interface GetNodesRequest {

@@ -48,2 +71,3 @@ filter?: NodeListFilter;

ssl?: boolean;
order?: NodeListOrder;
}

@@ -57,3 +81,3 @@

/**
* Returns the node information for the given public key.
* Returns information about the node with the given main account.
*/

@@ -80,3 +104,3 @@ async getNodeRaw(requestParameters: GetNodeRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NodeInfo>> {

/**
* Returns the node information for the given public key.
* Returns information about the node with the given main account.
*/

@@ -89,4 +113,34 @@ async getNode(publicKey: string, initOverrides?: RequestInit): Promise<NodeInfo> {

/**
* Returns a summary of the number per role over time.
* Returns the node information for the given transport public key.
*/
async getNodeByNodePublicKeyRaw(requestParameters: GetNodeByNodePublicKeyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<NodeInfo>> {
if (requestParameters.nodePublicKey === null || requestParameters.nodePublicKey === undefined) {
throw new runtime.RequiredError('nodePublicKey','Required parameter requestParameters.nodePublicKey was null or undefined when calling getNodeByNodePublicKey.');
}
const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {};
const response = await this.request({
path: `/nodes/nodePublicKey/{nodePublicKey}`.replace(`{${"nodePublicKey"}}`, encodeURIComponent(String(requestParameters.nodePublicKey))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.JSONApiResponse(response, (jsonValue) => NodeInfoFromJSON(jsonValue));
}
/**
* Returns the node information for the given transport public key.
*/
async getNodeByNodePublicKey(nodePublicKey: string, initOverrides?: RequestInit): Promise<NodeInfo> {
const response = await this.getNodeByNodePublicKeyRaw({ nodePublicKey: nodePublicKey }, initOverrides);
return await response.value();
}
/**
* Returns the summary of the number of nodes per role over time.
*/
async getNodeCountRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<TimeSeriesNodeCount>>> {

@@ -108,3 +162,3 @@ const queryParameters: any = {};

/**
* Returns a summary of the number per role over time.
* Returns the summary of the number of nodes per role over time.
*/

@@ -117,3 +171,3 @@ async getNodeCount(initOverrides?: RequestInit): Promise<Array<TimeSeriesNodeCount>> {

/**
* Returns a summary of the number of nodes per height and finalized height.
* Returns the summary of the number of nodes per height and finalized height.
*/

@@ -136,3 +190,3 @@ async getNodeHeightStatsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<NodeHeightStats>> {

/**
* Returns a summary of the number of nodes per height and finalized height.
* Returns the summary of the number of nodes per height and finalized height.
*/

@@ -145,3 +199,3 @@ async getNodeHeightStats(initOverrides?: RequestInit): Promise<NodeHeightStats> {

/**
* Returns a summary of the number of nodes per role type.
* Returns the summary of the number of nodes per role type.
*/

@@ -164,3 +218,3 @@ async getNodeStatsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<NodeStats>> {

/**
* Returns a summary of the number of nodes per role type.
* Returns the summary of the number of nodes per role type.
*/

@@ -190,2 +244,6 @@ async getNodeStats(initOverrides?: RequestInit): Promise<NodeStats> {

if (requestParameters.order !== undefined) {
queryParameters['order'] = requestParameters.order;
}
const headerParameters: runtime.HTTPHeaders = {};

@@ -206,4 +264,4 @@

*/
async getNodes(filter?: NodeListFilter, limit?: number, ssl?: boolean, initOverrides?: RequestInit): Promise<Array<NodeInfo>> {
const response = await this.getNodesRaw({ filter: filter, limit: limit, ssl: ssl }, initOverrides);
async getNodes(filter?: NodeListFilter, limit?: number, ssl?: boolean, order?: NodeListOrder, initOverrides?: RequestInit): Promise<Array<NodeInfo>> {
const response = await this.getNodesRaw({ filter: filter, limit: limit, ssl: ssl, order: order }, initOverrides);
return await response.value();

@@ -210,0 +268,0 @@ }

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -25,6 +41,10 @@

NodeStatusToJSON,
WebSocketStatus,
WebSocketStatusFromJSON,
WebSocketStatusFromJSONTyped,
WebSocketStatusToJSON,
} from './';
/**
* The status of the api node. Information is from the rest gateway.
* The status of the API node. Information comes from the REST gateway.
* @export

@@ -35,3 +55,9 @@ * @interface ApiStatus

/**
* The rest gateway url ready to be connected.
*
* @type {WebSocketStatus}
* @memberof ApiStatus
*/
webSocket: WebSocketStatus;
/**
* The REST gateway URL ready to be connected to.
* @type {string}

@@ -42,3 +68,3 @@ * @memberof ApiStatus

/**
*
* Whether the API is ready to accept queries.
* @type {boolean}

@@ -49,3 +75,3 @@ * @memberof ApiStatus

/**
*
* When was the API last checked, in milliseconds elapsed since UNIX epoch (January 1, 1970 00:00:00 UTC).
* @type {number}

@@ -62,3 +88,3 @@ * @memberof ApiStatus

/**
*
* Whether the API accepts connections through HTTPS.
* @type {boolean}

@@ -69,3 +95,4 @@ * @memberof ApiStatus

/**
*
* Node's public key used to stablish TLS connections and
* [delegated harvesting](https://docs.symbolplatform.com/guides/harvesting/activating-delegated-harvesting-manual.html), for example.
* @type {string}

@@ -76,3 +103,3 @@ * @memberof ApiStatus

/**
*
* Current chain height as reported by this node.
* @type {number}

@@ -89,3 +116,3 @@ * @memberof ApiStatus

/**
*
* Version of the REST API used by this node.
* @type {string}

@@ -107,2 +134,3 @@ * @memberof ApiStatus

'webSocket': WebSocketStatusFromJSON(json['webSocket']),
'restGatewayUrl': json['restGatewayUrl'],

@@ -129,2 +157,3 @@ 'isAvailable': json['isAvailable'],

'webSocket': WebSocketStatusToJSON(value.webSocket),
'restGatewayUrl': value.restGatewayUrl,

@@ -131,0 +160,0 @@ 'isAvailable': value.isAvailable,

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -17,3 +33,3 @@

/**
* The world coordinates of the node based on the ip address.
* The world coordinates of the node based on its IP address.
* @export

@@ -20,0 +36,0 @@ * @interface Coordinates

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -17,3 +33,3 @@

/**
*
* Status of the [finalization](https://docs.symbolplatform.com/concepts/block.html#finalization) gadget.
* @export

@@ -24,3 +40,4 @@ * @interface Finalization

/**
* The finalized block of the blockchain.
* The latest finalized block of the blockchain.
* This block and all blocks before it are immutable and cannot be rolled back.
* @type {number}

@@ -31,3 +48,3 @@ * @memberof Finalization

/**
*
* Current [finalization epoch](https://docs.symbolplatform.com/concepts/block.html#finalization).
* @type {number}

@@ -38,3 +55,3 @@ * @memberof Finalization

/**
*
* Current [finalization point](https://docs.symbolplatform.com/concepts/block.html#finalization).
* @type {number}

@@ -41,0 +58,0 @@ * @memberof Finalization

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -24,3 +40,3 @@

/**
* Location detils of the node.
* Location details of the node.
* @export

@@ -43,3 +59,3 @@ * @interface HostDetail

/**
*
* Text description of the host's location.
* @type {string}

@@ -56,3 +72,3 @@ * @memberof HostDetail

/**
*
* Text description of the organization managing this node.
* @type {string}

@@ -63,3 +79,3 @@ * @memberof HostDetail

/**
*
* AS number and organization, separated by space (RIR).
* @type {string}

@@ -66,0 +82,0 @@ * @memberof HostDetail

@@ -13,2 +13,3 @@ /* tslint:disable */

export * from './NodeListFilter';
export * from './NodeListOrder';
export * from './NodeStats';

@@ -19,1 +20,2 @@ export * from './NodeStatus';

export * from './TimeSeriesNodeCountAllOf';
export * from './WebSocketStatus';
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -14,0 +30,0 @@

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -14,0 +30,0 @@

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -24,3 +40,3 @@

/**
* A summary of the number of nodes per height and finalized height.
* The summary of the number of nodes per height and finalized height.
* @export

@@ -31,3 +47,3 @@ * @interface NodeHeightStats

/**
*
* Histogram of chain heights.
* @type {Array<NodeHeightStatValue>}

@@ -38,3 +54,3 @@ * @memberof NodeHeightStats

/**
*
* Histogram of chain [finalization](https://docs.symbolplatform.com/concepts/block.html#finalization) heights.
* @type {Array<NodeHeightStatValue>}

@@ -45,3 +61,3 @@ * @memberof NodeHeightStats

/**
* Date and time when the data was collected
* Date and time when the data was collected.
* @type {string}

@@ -48,0 +64,0 @@ * @memberof NodeHeightStats

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -17,3 +33,3 @@

/**
* A simple value of the Node Hight Stats.
* A single value of the Node Height Stats.
* @export

@@ -24,3 +40,3 @@ * @interface NodeHeightStatValue

/**
*
* Height, as a string because it represents a 64-bit integer.
* @type {string}

@@ -31,3 +47,3 @@ * @memberof NodeHeightStatValue

/**
*
* Number of nodes currently at that height.
* @type {number}

@@ -34,0 +50,0 @@ * @memberof NodeHeightStatValue

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -36,3 +52,3 @@

/**
* The node information the statitcs service has recolected from the chain.
* Node information gathered from the chain by the statistics service.
* @export

@@ -43,3 +59,3 @@ * @interface NodeInfo

/**
*
* Node's main account's public key.
* @type {string}

@@ -52,3 +68,3 @@ * @memberof NodeInfo

* * 1 - Peer node.
* * 2 - Api node.
* * 2 - API node.
* * 4 - Voting node.

@@ -58,7 +74,7 @@ * * 64 - IPv4 compatible node

*
* The values are bitwise added together, Examples:
* 1 = Just Peer.
* 2 = Just Api.
* 3 = Peer and Api node.
* 7 = Peer, Api and Voting node.
* The values are bitwise added together, for example:
* 1 = Only Peer.
* 2 = Only API.
* 3 = Both Peer and API node.
* 7 = Peer, API and Voting node.
* 65 = IPv4 and Peer node.

@@ -70,3 +86,5 @@ * @type {number}

/**
* The client version. Each pair of digits represent a digit number. E.g. 16777728 is 1.0.2.0
* The version is encoded as a single 4-byte integer, where the Most-Significant Byte
* encodes the Major version, and the rest of bytes are the Minor, the Micro and the Patch version.
* For example, version 16777472 (decimal) is 01000100h (hex), which corresponds to version 1.0.1.0.
* @type {number}

@@ -83,3 +101,5 @@ * @memberof NodeInfo

/**
*
* Hash seed of the network this node is connected to.
* All nodes connected to the same network have the same
* [Hash Seed](https://docs.symbolplatform.com/guides/network/configuring-network-properties.html#network-configuration).
* @type {string}

@@ -86,0 +106,0 @@ * @memberof NodeInfo

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/**
* suggested: all available api nodes that have a rest endpoint and are online.
* preferred: all preferred api nodes that have a rest endpoint and are online. Prefered are nodes that match some specific domains.
* `suggested`: All available API nodes that have a REST endpoint and are online.
* `preferred`: Preferred API nodes that have a REST endpoint and are online. Preferred nodes match some specific domains.
* @export

@@ -19,0 +35,0 @@ * @enum {string}

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -17,3 +33,3 @@

/**
* A summary of the number of nodes per role type.
* The summary of the number of nodes per role type.
* @export

@@ -24,3 +40,3 @@ * @interface NodeStats

/**
* The number of nodes indexed by role type
* The number of nodes indexed by role type.
* @type {{ [key: string]: object; }}

@@ -27,0 +43,0 @@ * @memberof NodeStats

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -17,3 +33,3 @@

/**
* The status of the rest gateway.
* The status of the REST gateway.
* @export

@@ -24,3 +40,3 @@ * @interface NodeStatus

/**
*
* Whether the front-end REST gateway is up and running. Possible values are `up` and `down`. Node needs to be restarted if `down`.
* @type {string}

@@ -31,3 +47,3 @@ * @memberof NodeStatus

/**
*
* Whether the back-end database is up and running. Possible values are `up` and `down`. Node needs to be restarted if `down`.
* @type {string}

@@ -34,0 +50,0 @@ * @memberof NodeStatus

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -23,3 +39,3 @@

/**
*
* When was the peer last contacted, in milliseconds elapsed since UNIX epoch (January 1, 1970 00:00:00 UTC).
* @type {number}

@@ -30,3 +46,3 @@ * @memberof PeerStatus

/**
*
* Whether the node is currently available (reachable and answering queries).
* @type {boolean}

@@ -33,0 +49,0 @@ * @memberof PeerStatus

/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -24,3 +40,3 @@

/**
* A summary of the number per role over time.
* Summary of the number of nodes per role over time.
* @export

@@ -31,3 +47,3 @@ * @interface TimeSeriesNodeCount

/**
*
* Total number of nodes
* @type {number}

@@ -37,8 +53,2 @@ * @memberof TimeSeriesNodeCount

total?: number;
/**
*
* @type {number}
* @memberof TimeSeriesNodeCount
*/
rand?: number;
}

@@ -57,3 +67,2 @@

'total': !exists(json, 'total') ? undefined : json['total'],
'rand': !exists(json, 'rand') ? undefined : json['rand'],
};

@@ -72,5 +81,4 @@ }

'total': value.total,
'rand': value.rand,
};
}
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -23,3 +39,3 @@

/**
*
* Total number of nodes
* @type {number}

@@ -29,8 +45,2 @@ * @memberof TimeSeriesNodeCountAllOf

total?: number;
/**
*
* @type {number}
* @memberof TimeSeriesNodeCountAllOf
*/
rand?: number;
}

@@ -49,3 +59,2 @@

'total': !exists(json, 'total') ? undefined : json['total'],
'rand': !exists(json, 'rand') ? undefined : json['rand'],
};

@@ -64,5 +73,4 @@ }

'total': value.total,
'rand': value.rand,
};
}
/* tslint:disable */
/* eslint-disable */
/**
/*
* Symbol Statistic Service API Documentation
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 1.1.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
* MIT License
*
* Copyright (c) 2021 Symbol Contributor(s)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/

@@ -333,24 +349,17 @@

export class RestClientUtils {
public static async getErrorFromFetchResponse(error: Response | Error): Promise<RestClientCallError> {
if (error instanceof Error) {
const statusCode = 0;
const message = error.message || 'Unknown Error';
const statusMessage = (error['code'] || 'Unknown Error').toString();
return new RestClientCallError(message, statusCode, statusMessage, '');
} else {
const statusCode = error?.status || 0;
const statusMessage = (error?.statusText || 'Unknown Error').toString();
const body = (error.text && typeof error.text === 'function' && (await error.text())) || '';
const getMessage = () => {
const defaultMessage = `${statusCode} - ${statusMessage}`;
try {
return JSON.parse(body)?.message || defaultMessage;
} catch (e) {
return defaultMessage;
}
};
const message = getMessage();
return new RestClientCallError(message, statusCode, statusMessage, body);
}
}
public static async getErrorFromFetchResponse(error: Response): Promise<RestClientCallError> {
const statusCode = error?.status || 0;
const statusMessage = (error?.statusText || 'Unknown Error').toString();
const body = (error.text && typeof error.text === 'function' && (await error.text())) || '';
const getMessage = () => {
const defaultMessage = `${statusCode} - ${statusMessage}`;
try {
return JSON.parse(body)?.message || defaultMessage;
} catch (e) {
return defaultMessage;
}
};
const message = getMessage();
return new RestClientCallError(message, statusCode, statusMessage, body);
}
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc