diff --git a/src/vendors/oasisscan-v2/models/AccountDebondingResponse.ts b/src/vendors/oasisscan-v2/models/AccountDebondingResponse.ts index 2af15a3ead..f2bb7057c3 100644 --- a/src/vendors/oasisscan-v2/models/AccountDebondingResponse.ts +++ b/src/vendors/oasisscan-v2/models/AccountDebondingResponse.ts @@ -1,96 +1,95 @@ /* tslint:disable */ /* eslint-disable */ /** - * + * * This api document example is the Mainnet document, and the Testnet base URL is api.oasisscan.com/v2/testnet * - * The version of the OpenAPI document: - * + * The version of the OpenAPI document: + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { exists, mapValues } from '../runtime'; +import { exists, mapValues } from '../runtime' import { - AccountDebondingInfo, - AccountDebondingInfoFromJSON, - AccountDebondingInfoFromJSONTyped, - AccountDebondingInfoToJSON, -} from './'; + AccountDebondingInfo, + AccountDebondingInfoFromJSON, + AccountDebondingInfoFromJSONTyped, + AccountDebondingInfoToJSON, +} from './' /** - * + * * @export * @interface AccountDebondingResponse */ export interface AccountDebondingResponse { - /** - * - * @type {Array} - * @memberof AccountDebondingResponse - */ - list: Array; - /** - * - * @type {number} - * @memberof AccountDebondingResponse - */ - page?: number; - /** - * - * @type {number} - * @memberof AccountDebondingResponse - */ - size?: number; - /** - * - * @type {number} - * @memberof AccountDebondingResponse - */ - maxPage?: number; - /** - * - * @type {number} - * @memberof AccountDebondingResponse - */ - totalSize?: number; + /** + * + * @type {Array} + * @memberof AccountDebondingResponse + */ + list: Array + /** + * + * @type {number} + * @memberof AccountDebondingResponse + */ + page?: number + /** + * + * @type {number} + * @memberof AccountDebondingResponse + */ + size?: number + /** + * + * @type {number} + * @memberof AccountDebondingResponse + */ + maxPage?: number + /** + * + * @type {number} + * @memberof AccountDebondingResponse + */ + totalSize?: number } export function AccountDebondingResponseFromJSON(json: any): AccountDebondingResponse { - return AccountDebondingResponseFromJSONTyped(json, false); + return AccountDebondingResponseFromJSONTyped(json.data, false) } -export function AccountDebondingResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDebondingResponse { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'list': ((json['list'] as Array).map(AccountDebondingInfoFromJSON)), - 'page': !exists(json, 'page') ? undefined : json['page'], - 'size': !exists(json, 'size') ? undefined : json['size'], - 'maxPage': !exists(json, 'maxPage') ? undefined : json['maxPage'], - 'totalSize': !exists(json, 'totalSize') ? undefined : json['totalSize'], - }; +export function AccountDebondingResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): AccountDebondingResponse { + if (json === undefined || json === null) { + return json + } + return { + list: (json['list'] as Array).map(AccountDebondingInfoFromJSON), + page: !exists(json, 'page') ? undefined : json['page'], + size: !exists(json, 'size') ? undefined : json['size'], + maxPage: !exists(json, 'maxPage') ? undefined : json['maxPage'], + totalSize: !exists(json, 'totalSize') ? undefined : json['totalSize'], + } } export function AccountDebondingResponseToJSON(value?: AccountDebondingResponse | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'list': ((value.list as Array).map(AccountDebondingInfoToJSON)), - 'page': value.page, - 'size': value.size, - 'maxPage': value.maxPage, - 'totalSize': value.totalSize, - }; + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + list: (value.list as Array).map(AccountDebondingInfoToJSON), + page: value.page, + size: value.size, + maxPage: value.maxPage, + totalSize: value.totalSize, + } } - - diff --git a/src/vendors/oasisscan-v2/models/AccountDelegationsResponse.ts b/src/vendors/oasisscan-v2/models/AccountDelegationsResponse.ts index 0b37ea0378..9b8356ddc0 100644 --- a/src/vendors/oasisscan-v2/models/AccountDelegationsResponse.ts +++ b/src/vendors/oasisscan-v2/models/AccountDelegationsResponse.ts @@ -1,96 +1,95 @@ /* tslint:disable */ /* eslint-disable */ /** - * + * * This api document example is the Mainnet document, and the Testnet base URL is api.oasisscan.com/v2/testnet * - * The version of the OpenAPI document: - * + * The version of the OpenAPI document: + * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ -import { exists, mapValues } from '../runtime'; +import { exists, mapValues } from '../runtime' import { - AccountDelegationsInfo, - AccountDelegationsInfoFromJSON, - AccountDelegationsInfoFromJSONTyped, - AccountDelegationsInfoToJSON, -} from './'; + AccountDelegationsInfo, + AccountDelegationsInfoFromJSON, + AccountDelegationsInfoFromJSONTyped, + AccountDelegationsInfoToJSON, +} from './' /** - * + * * @export * @interface AccountDelegationsResponse */ export interface AccountDelegationsResponse { - /** - * - * @type {Array} - * @memberof AccountDelegationsResponse - */ - list: Array; - /** - * - * @type {number} - * @memberof AccountDelegationsResponse - */ - page?: number; - /** - * - * @type {number} - * @memberof AccountDelegationsResponse - */ - size?: number; - /** - * - * @type {number} - * @memberof AccountDelegationsResponse - */ - maxPage?: number; - /** - * - * @type {number} - * @memberof AccountDelegationsResponse - */ - totalSize?: number; + /** + * + * @type {Array} + * @memberof AccountDelegationsResponse + */ + list: Array + /** + * + * @type {number} + * @memberof AccountDelegationsResponse + */ + page?: number + /** + * + * @type {number} + * @memberof AccountDelegationsResponse + */ + size?: number + /** + * + * @type {number} + * @memberof AccountDelegationsResponse + */ + maxPage?: number + /** + * + * @type {number} + * @memberof AccountDelegationsResponse + */ + totalSize?: number } export function AccountDelegationsResponseFromJSON(json: any): AccountDelegationsResponse { - return AccountDelegationsResponseFromJSONTyped(json, false); + return AccountDelegationsResponseFromJSONTyped(json.data, false) } -export function AccountDelegationsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountDelegationsResponse { - if ((json === undefined) || (json === null)) { - return json; - } - return { - - 'list': ((json['list'] as Array).map(AccountDelegationsInfoFromJSON)), - 'page': !exists(json, 'page') ? undefined : json['page'], - 'size': !exists(json, 'size') ? undefined : json['size'], - 'maxPage': !exists(json, 'maxPage') ? undefined : json['maxPage'], - 'totalSize': !exists(json, 'totalSize') ? undefined : json['totalSize'], - }; +export function AccountDelegationsResponseFromJSONTyped( + json: any, + ignoreDiscriminator: boolean, +): AccountDelegationsResponse { + if (json === undefined || json === null) { + return json + } + return { + list: (json['list'] as Array).map(AccountDelegationsInfoFromJSON), + page: !exists(json, 'page') ? undefined : json['page'], + size: !exists(json, 'size') ? undefined : json['size'], + maxPage: !exists(json, 'maxPage') ? undefined : json['maxPage'], + totalSize: !exists(json, 'totalSize') ? undefined : json['totalSize'], + } } export function AccountDelegationsResponseToJSON(value?: AccountDelegationsResponse | null): any { - if (value === undefined) { - return undefined; - } - if (value === null) { - return null; - } - return { - - 'list': ((value.list as Array).map(AccountDelegationsInfoToJSON)), - 'page': value.page, - 'size': value.size, - 'maxPage': value.maxPage, - 'totalSize': value.totalSize, - }; + if (value === undefined) { + return undefined + } + if (value === null) { + return null + } + return { + list: (value.list as Array).map(AccountDelegationsInfoToJSON), + page: value.page, + size: value.size, + maxPage: value.maxPage, + totalSize: value.totalSize, + } } - -