@fractalwagmi/fractal-sdk-public-api
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -226,2 +226,13 @@ export interface FractalSdkAdminGetTransactionStatusResponse { | ||
} | ||
/** | ||
* `NullValue` is a singleton enumeration to represent the null value for the | ||
`Value` type union. | ||
The JSON representation for `NullValue` is JSON `null`. | ||
- NULL_VALUE: Null value. | ||
*/ | ||
export declare enum GoogleProtobufNullValue { | ||
NULL_VALUE = "NULL_VALUE" | ||
} | ||
export interface GoogleRpcStatus { | ||
@@ -258,2 +269,21 @@ /** @format int32 */ | ||
* @tags ChainService | ||
* @name GetTokenMetadata | ||
* @request GET:/sdk/chain/{chain}/token/{address}/metadata | ||
* @secure | ||
*/ | ||
namespace GetTokenMetadata { | ||
type RequestParams = { | ||
chain: "UNKNOWN" | "ETH" | "SOLANA" | "POLYGON"; | ||
address: string; | ||
}; | ||
type RequestQuery = { | ||
id?: string; | ||
}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkAdminRefreshMetadataResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags ChainService | ||
* @name RefreshMetadata | ||
@@ -766,2 +796,13 @@ * @request POST:/sdk/chain/{chain}/token/{address}/refresh_metadata | ||
* @tags ChainService | ||
* @name GetTokenMetadata | ||
* @request GET:/sdk/chain/{chain}/token/{address}/metadata | ||
* @secure | ||
*/ | ||
getTokenMetadata: (chain: "UNKNOWN" | "ETH" | "SOLANA" | "POLYGON", address: string, query?: { | ||
id?: string; | ||
}, params?: RequestParams) => Promise<HttpResponse<object, GoogleRpcStatus>>; | ||
/** | ||
* No description | ||
* | ||
* @tags ChainService | ||
* @name RefreshMetadata | ||
@@ -768,0 +809,0 @@ * @request POST:/sdk/chain/{chain}/token/{address}/refresh_metadata |
@@ -33,3 +33,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Api = exports.HttpClient = exports.ContentType = exports.FractalSdkTournamentLeaderboardType = exports.FractalSdkTournamentGetLeaderboardRequestDirection = exports.FractalSdkSolanaGetForSaleItemsRequestSortField = exports.FractalSdkSolanaDirection = exports.FractalSdkCommonChain = void 0; | ||
exports.Api = exports.HttpClient = exports.ContentType = exports.GoogleProtobufNullValue = exports.FractalSdkTournamentLeaderboardType = exports.FractalSdkTournamentGetLeaderboardRequestDirection = exports.FractalSdkSolanaGetForSaleItemsRequestSortField = exports.FractalSdkSolanaDirection = exports.FractalSdkCommonChain = void 0; | ||
var FractalSdkCommonChain; | ||
@@ -63,2 +63,14 @@ (function (FractalSdkCommonChain) { | ||
})(FractalSdkTournamentLeaderboardType = exports.FractalSdkTournamentLeaderboardType || (exports.FractalSdkTournamentLeaderboardType = {})); | ||
/** | ||
* `NullValue` is a singleton enumeration to represent the null value for the | ||
`Value` type union. | ||
The JSON representation for `NullValue` is JSON `null`. | ||
- NULL_VALUE: Null value. | ||
*/ | ||
var GoogleProtobufNullValue; | ||
(function (GoogleProtobufNullValue) { | ||
GoogleProtobufNullValue["NULL_VALUE"] = "NULL_VALUE"; | ||
})(GoogleProtobufNullValue = exports.GoogleProtobufNullValue || (exports.GoogleProtobufNullValue = {})); | ||
var ContentType; | ||
@@ -208,2 +220,11 @@ (function (ContentType) { | ||
* @tags ChainService | ||
* @name GetTokenMetadata | ||
* @request GET:/sdk/chain/{chain}/token/{address}/metadata | ||
* @secure | ||
*/ | ||
getTokenMetadata: (chain, address, query, params = {}) => this.request(Object.assign({ path: `/sdk/chain/${chain}/token/${address}/metadata`, method: "GET", query: query, secure: true, format: "json" }, params)), | ||
/** | ||
* No description | ||
* | ||
* @tags ChainService | ||
* @name RefreshMetadata | ||
@@ -210,0 +231,0 @@ * @request POST:/sdk/chain/{chain}/token/{address}/refresh_metadata |
@@ -296,2 +296,14 @@ /* eslint-disable */ | ||
/** | ||
* `NullValue` is a singleton enumeration to represent the null value for the | ||
`Value` type union. | ||
The JSON representation for `NullValue` is JSON `null`. | ||
- NULL_VALUE: Null value. | ||
*/ | ||
export enum GoogleProtobufNullValue { | ||
NULL_VALUE = "NULL_VALUE", | ||
} | ||
export interface GoogleRpcStatus { | ||
@@ -325,2 +337,16 @@ /** @format int32 */ | ||
* @tags ChainService | ||
* @name GetTokenMetadata | ||
* @request GET:/sdk/chain/{chain}/token/{address}/metadata | ||
* @secure | ||
*/ | ||
export namespace GetTokenMetadata { | ||
export type RequestParams = { chain: "UNKNOWN" | "ETH" | "SOLANA" | "POLYGON"; address: string }; | ||
export type RequestQuery = { id?: string }; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkAdminRefreshMetadataResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags ChainService | ||
* @name RefreshMetadata | ||
@@ -949,2 +975,25 @@ * @request POST:/sdk/chain/{chain}/token/{address}/refresh_metadata | ||
* @tags ChainService | ||
* @name GetTokenMetadata | ||
* @request GET:/sdk/chain/{chain}/token/{address}/metadata | ||
* @secure | ||
*/ | ||
getTokenMetadata: ( | ||
chain: "UNKNOWN" | "ETH" | "SOLANA" | "POLYGON", | ||
address: string, | ||
query?: { id?: string }, | ||
params: RequestParams = {}, | ||
) => | ||
this.request<FractalSdkAdminRefreshMetadataResponse, GoogleRpcStatus>({ | ||
path: `/sdk/chain/${chain}/token/${address}/metadata`, | ||
method: "GET", | ||
query: query, | ||
secure: true, | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* No description | ||
* | ||
* @tags ChainService | ||
* @name RefreshMetadata | ||
@@ -951,0 +1000,0 @@ * @request POST:/sdk/chain/{chain}/token/{address}/refresh_metadata |
{ | ||
"name": "@fractalwagmi/fractal-sdk-public-api", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/fractal-sdk-api.js", |
112982
2936