From 9f7f1a951c839d8db83f944d73d608b13fedf09c Mon Sep 17 00:00:00 2001 From: Allan Almeida Date: Fri, 5 Apr 2024 13:26:26 +1100 Subject: [PATCH] update blockchain data types --- .../blockchain-data/.openapi-generator/FILES | 3 ++ .../blockchain-data/domain/collections-api.ts | 11 +++++ .../src/blockchain-data/domain/nfts-api.ts | 4 ++ .../src/blockchain-data/domain/tokens-api.ts | 11 +++++ .../models/apierror409-all-of.ts | 45 +++++++++++++++++++ .../src/blockchain-data/models/apierror409.ts | 29 ++++++++++++ .../models/asset-verification-status.ts | 32 +++++++++++++ .../src/blockchain-data/models/collection.ts | 9 ++++ .../src/blockchain-data/models/index.ts | 3 ++ .../src/blockchain-data/models/mint-asset.ts | 2 +- .../src/blockchain-data/models/nftowner.ts | 9 +++- .../blockchain-data/models/nftwith-balance.ts | 2 +- .../blockchain-data/models/nftwith-owner.ts | 9 +++- .../src/blockchain-data/models/token.ts | 11 +++++ 14 files changed, 176 insertions(+), 4 deletions(-) create mode 100644 packages/internal/generated-clients/src/blockchain-data/models/apierror409-all-of.ts create mode 100644 packages/internal/generated-clients/src/blockchain-data/models/apierror409.ts create mode 100644 packages/internal/generated-clients/src/blockchain-data/models/asset-verification-status.ts diff --git a/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES index 9835f91903..f9d5a8cbd4 100644 --- a/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES +++ b/packages/internal/generated-clients/src/blockchain-data/.openapi-generator/FILES @@ -32,12 +32,15 @@ models/apierror403-all-of.ts models/apierror403.ts models/apierror404-all-of.ts models/apierror404.ts +models/apierror409-all-of.ts +models/apierror409.ts models/apierror429-all-of.ts models/apierror429.ts models/apierror500-all-of.ts models/apierror500.ts models/apierror501-all-of.ts models/apierror501.ts +models/asset-verification-status.ts models/basic-apierror.ts models/blockchain-metadata.ts models/burn.ts diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/collections-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/collections-api.ts index 5ec6fa20d6..9b84131921 100644 --- a/packages/internal/generated-clients/src/blockchain-data/domain/collections-api.ts +++ b/packages/internal/generated-clients/src/blockchain-data/domain/collections-api.ts @@ -24,6 +24,8 @@ import { APIError404 } from '../models'; // @ts-ignore import { APIError500 } from '../models'; // @ts-ignore +import { AssetVerificationStatus } from '../models'; +// @ts-ignore import { GetCollectionResult } from '../models'; // @ts-ignore import { ListCollectionsResult } from '../models'; @@ -42,6 +44,8 @@ export { APIError404 } from '../models'; // @ts-ignore export { APIError500 } from '../models'; // @ts-ignore +export { AssetVerificationStatus } from '../models'; +// @ts-ignore export { GetCollectionResult } from '../models'; // @ts-ignore export { ListCollectionsResult } from '../models'; @@ -91,6 +95,13 @@ export interface ListCollectionsRequestParams { */ readonly contractAddress?: Array + /** + * List of verification status to filter by + * @type {Array} + * @memberof ListCollections + */ + readonly verificationStatus?: Array + /** * Datetime to use as the oldest updated timestamp * @type {string} diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/nfts-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/nfts-api.ts index 83b9cb101c..200ef8db87 100644 --- a/packages/internal/generated-clients/src/blockchain-data/domain/nfts-api.ts +++ b/packages/internal/generated-clients/src/blockchain-data/domain/nfts-api.ts @@ -22,6 +22,8 @@ import { APIError403 } from '../models'; // @ts-ignore import { APIError404 } from '../models'; // @ts-ignore +import { APIError409 } from '../models'; +// @ts-ignore import { APIError429 } from '../models'; // @ts-ignore import { APIError500 } from '../models'; @@ -48,6 +50,8 @@ export { APIError403 } from '../models'; // @ts-ignore export { APIError404 } from '../models'; // @ts-ignore +export { APIError409 } from '../models'; +// @ts-ignore export { APIError429 } from '../models'; // @ts-ignore export { APIError500 } from '../models'; diff --git a/packages/internal/generated-clients/src/blockchain-data/domain/tokens-api.ts b/packages/internal/generated-clients/src/blockchain-data/domain/tokens-api.ts index 067d829cd6..082ca8972a 100644 --- a/packages/internal/generated-clients/src/blockchain-data/domain/tokens-api.ts +++ b/packages/internal/generated-clients/src/blockchain-data/domain/tokens-api.ts @@ -20,6 +20,8 @@ import { APIError404 } from '../models'; // @ts-ignore import { APIError500 } from '../models'; // @ts-ignore +import { AssetVerificationStatus } from '../models'; +// @ts-ignore import { GetTokenResult } from '../models'; // @ts-ignore import { ListTokensResult } from '../models'; @@ -30,6 +32,8 @@ export { APIError404 } from '../models'; // @ts-ignore export { APIError500 } from '../models'; // @ts-ignore +export { AssetVerificationStatus } from '../models'; +// @ts-ignore export { GetTokenResult } from '../models'; // @ts-ignore export { ListTokensResult } from '../models'; @@ -75,6 +79,13 @@ export interface ListERC20TokensRequestParams { */ readonly fromUpdatedAt?: string + /** + * List of verification status to filter by + * @type {Array} + * @memberof ListERC20Tokens + */ + readonly verificationStatus?: Array + /** * Encoded page cursor to retrieve previous or next page. Use the value returned in the response. * @type {string} diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror409-all-of.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror409-all-of.ts new file mode 100644 index 0000000000..dd086e0254 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror409-all-of.ts @@ -0,0 +1,45 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Immutable zkEVM API + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface APIError409AllOf + */ +export interface APIError409AllOf { + /** + * Error Code + * @type {string} + * @memberof APIError409AllOf + */ + 'code': APIError409AllOfCodeEnum; + /** + * Additional details to help resolve the error + * @type {{ [key: string]: any; }} + * @memberof APIError409AllOf + */ + 'details': { [key: string]: any; } | null; +} + +/** + * @export + * @enum {string} + */ +export enum APIError409AllOfCodeEnum { + ConflictError = 'CONFLICT_ERROR' +} + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/apierror409.ts b/packages/internal/generated-clients/src/blockchain-data/models/apierror409.ts new file mode 100644 index 0000000000..cbc212cb59 --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/apierror409.ts @@ -0,0 +1,29 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Immutable zkEVM API + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { APIError409AllOf } from './apierror409-all-of'; +// May contain unused imports in some cases +// @ts-ignore +import { BasicAPIError } from './basic-apierror'; + +/** + * @type APIError409 + * @export + */ +export type APIError409 = APIError409AllOf & BasicAPIError; + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/asset-verification-status.ts b/packages/internal/generated-clients/src/blockchain-data/models/asset-verification-status.ts new file mode 100644 index 0000000000..a80974826a --- /dev/null +++ b/packages/internal/generated-clients/src/blockchain-data/models/asset-verification-status.ts @@ -0,0 +1,32 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Immutable zkEVM API + * Immutable Multi Rollup API + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@immutable.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * The verification status for a given contract + * @export + * @enum {string} + */ + +export enum AssetVerificationStatus { + Pending = 'pending', + Verified = 'verified', + Unverified = 'unverified', + Spam = 'spam', + Inactive = 'inactive' +} + + + diff --git a/packages/internal/generated-clients/src/blockchain-data/models/collection.ts b/packages/internal/generated-clients/src/blockchain-data/models/collection.ts index 7eab4370c0..5f07fb0609 100644 --- a/packages/internal/generated-clients/src/blockchain-data/models/collection.ts +++ b/packages/internal/generated-clients/src/blockchain-data/models/collection.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { AssetVerificationStatus } from './asset-verification-status'; // May contain unused imports in some cases // @ts-ignore import { Chain } from './chain'; @@ -86,6 +89,12 @@ export interface Collection { * @memberof Collection */ 'base_uri': string | null; + /** + * + * @type {AssetVerificationStatus} + * @memberof Collection + */ + 'verification_status': AssetVerificationStatus; /** * When the collection was first indexed * @type {string} diff --git a/packages/internal/generated-clients/src/blockchain-data/models/index.ts b/packages/internal/generated-clients/src/blockchain-data/models/index.ts index 13f4ab292d..a407c1b057 100644 --- a/packages/internal/generated-clients/src/blockchain-data/models/index.ts +++ b/packages/internal/generated-clients/src/blockchain-data/models/index.ts @@ -6,6 +6,8 @@ export * from './apierror403'; export * from './apierror403-all-of'; export * from './apierror404'; export * from './apierror404-all-of'; +export * from './apierror409'; +export * from './apierror409-all-of'; export * from './apierror429'; export * from './apierror429-all-of'; export * from './apierror500'; @@ -20,6 +22,7 @@ export * from './activity-nft'; export * from './activity-native-token'; export * from './activity-token'; export * from './activity-type'; +export * from './asset-verification-status'; export * from './basic-apierror'; export * from './blockchain-metadata'; export * from './burn'; diff --git a/packages/internal/generated-clients/src/blockchain-data/models/mint-asset.ts b/packages/internal/generated-clients/src/blockchain-data/models/mint-asset.ts index d8782b7d72..2c2b4c12f1 100644 --- a/packages/internal/generated-clients/src/blockchain-data/models/mint-asset.ts +++ b/packages/internal/generated-clients/src/blockchain-data/models/mint-asset.ts @@ -36,7 +36,7 @@ export interface MintAsset { */ 'owner_address': string; /** - * An `uint256` token id as string. Including token_id is currently only possible on Testnet + * An optional `uint256` token id as string. It is recommended to omit token_id for more efficient minting * @type {string} * @memberof MintAsset */ diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftowner.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftowner.ts index fdd0e88587..fd502829e7 100644 --- a/packages/internal/generated-clients/src/blockchain-data/models/nftowner.ts +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftowner.ts @@ -48,11 +48,18 @@ export interface NFTOwner { */ 'account_address': string; /** - * The quantity of owned tokens (uint256 as string) + * (deprecated - use balance instead) The quantity of owned tokens (uint256 as string) * @type {string} * @memberof NFTOwner + * @deprecated */ 'quantity': string; + /** + * The amount of owned tokens (uint256 as string) + * @type {string} + * @memberof NFTOwner + */ + 'balance': string; /** * When the NFT owner was last updated * @type {string} diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftwith-balance.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-balance.ts index 32415d023c..208f3052c7 100644 --- a/packages/internal/generated-clients/src/blockchain-data/models/nftwith-balance.ts +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-balance.ts @@ -120,7 +120,7 @@ export interface NFTWithBalance { */ 'attributes': Array; /** - * The balance of NFT in the account + * The amount of this NFT this account owns * @type {string} * @memberof NFTWithBalance */ diff --git a/packages/internal/generated-clients/src/blockchain-data/models/nftwith-owner.ts b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-owner.ts index 6dd0f2ba57..9f7bc44bc0 100644 --- a/packages/internal/generated-clients/src/blockchain-data/models/nftwith-owner.ts +++ b/packages/internal/generated-clients/src/blockchain-data/models/nftwith-owner.ts @@ -48,11 +48,18 @@ export interface NFTWithOwner { */ 'account_address': string; /** - * The quantity of owned tokens (uint256 as string) + * (deprecated - use balance instead) The quantity of owned tokens (uint256 as string) * @type {string} * @memberof NFTWithOwner + * @deprecated */ 'quantity': string; + /** + * The amount of owned tokens (uint256 as string) + * @type {string} + * @memberof NFTWithOwner + */ + 'balance': string; /** * When the owner last changed for the given NFT * @type {string} diff --git a/packages/internal/generated-clients/src/blockchain-data/models/token.ts b/packages/internal/generated-clients/src/blockchain-data/models/token.ts index 7ac8c20211..d943969256 100644 --- a/packages/internal/generated-clients/src/blockchain-data/models/token.ts +++ b/packages/internal/generated-clients/src/blockchain-data/models/token.ts @@ -13,6 +13,9 @@ */ +// May contain unused imports in some cases +// @ts-ignore +import { AssetVerificationStatus } from './asset-verification-status'; // May contain unused imports in some cases // @ts-ignore import { Chain } from './chain'; @@ -65,6 +68,12 @@ export interface Token { * @memberof Token */ 'name': string | null; + /** + * + * @type {AssetVerificationStatus} + * @memberof Token + */ + 'verification_status': AssetVerificationStatus; /** * When the collection was last updated * @type {string} @@ -73,3 +82,5 @@ export interface Token { 'updated_at': string; } + +