@fractalwagmi/fractal-sdk-public-api
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -15,2 +15,6 @@ export declare type FractalSdkAdminSyncItemMetadataResponse = object; | ||
} | ||
export interface FractalSdkCommonPrice { | ||
amount: string; | ||
unit: string; | ||
} | ||
export interface FractalSdkExperimentalCreateMintTransactionRequest { | ||
@@ -50,2 +54,9 @@ payer: string; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenListingsResponse { | ||
listings: FractalSdkMarketplaceGetTokenListingsResponseListing[]; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenListingsResponseListing { | ||
listingId: string; | ||
price: FractalSdkCommonPrice; | ||
} | ||
export interface FractalSdkMetagameGetFlakesSummaryResponse { | ||
@@ -567,2 +578,22 @@ attributes: Record<string, FractalSdkMetagameGetFlakesSummaryResponseMinMax>; | ||
} | ||
export declare namespace V2 { | ||
/** | ||
* @description Returns listings for a given token. Requires project API token. | ||
* @tags MarketplaceService | ||
* @name GetTokenListings | ||
* @summary GetListings | ||
* @request GET:/sdk/v2/marketplace/{chain}/item/{address}/listings | ||
* @secure | ||
*/ | ||
namespace GetTokenListings { | ||
type RequestParams = { | ||
chain: "UNKNOWN" | "ETH" | "SOLANA" | "POLYGON"; | ||
address: string; | ||
}; | ||
type RequestQuery = {}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkMarketplaceGetTokenListingsResponse; | ||
} | ||
} | ||
export declare type QueryParamsType = Record<string | number, any>; | ||
@@ -869,3 +900,15 @@ export declare type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">; | ||
}; | ||
v2: { | ||
/** | ||
* @description Returns listings for a given token. Requires project API token. | ||
* | ||
* @tags MarketplaceService | ||
* @name GetTokenListings | ||
* @summary GetListings | ||
* @request GET:/sdk/v2/marketplace/{chain}/item/{address}/listings | ||
* @secure | ||
*/ | ||
getTokenListings: (chain: "UNKNOWN" | "ETH" | "SOLANA" | "POLYGON", address: string, params?: RequestParams) => Promise<HttpResponse<FractalSdkMarketplaceGetTokenListingsResponse, GoogleRpcStatus>>; | ||
}; | ||
} | ||
export {}; |
@@ -391,4 +391,16 @@ "use strict"; | ||
}; | ||
this.v2 = { | ||
/** | ||
* @description Returns listings for a given token. Requires project API token. | ||
* | ||
* @tags MarketplaceService | ||
* @name GetTokenListings | ||
* @summary GetListings | ||
* @request GET:/sdk/v2/marketplace/{chain}/item/{address}/listings | ||
* @secure | ||
*/ | ||
getTokenListings: (chain, address, params = {}) => this.request(Object.assign({ path: `/sdk/v2/marketplace/${chain}/item/${address}/listings`, method: "GET", secure: true, format: "json" }, params)), | ||
}; | ||
} | ||
} | ||
exports.Api = Api; |
@@ -30,2 +30,7 @@ /* eslint-disable */ | ||
export interface FractalSdkCommonPrice { | ||
amount: string; | ||
unit: string; | ||
} | ||
export interface FractalSdkExperimentalCreateMintTransactionRequest { | ||
@@ -74,2 +79,11 @@ payer: string; | ||
export interface FractalSdkMarketplaceGetTokenListingsResponse { | ||
listings: FractalSdkMarketplaceGetTokenListingsResponseListing[]; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenListingsResponseListing { | ||
listingId: string; | ||
price: FractalSdkCommonPrice; | ||
} | ||
export interface FractalSdkMetagameGetFlakesSummaryResponse { | ||
@@ -593,2 +607,20 @@ attributes: Record<string, FractalSdkMetagameGetFlakesSummaryResponseMinMax>; | ||
export namespace V2 { | ||
/** | ||
* @description Returns listings for a given token. Requires project API token. | ||
* @tags MarketplaceService | ||
* @name GetTokenListings | ||
* @summary GetListings | ||
* @request GET:/sdk/v2/marketplace/{chain}/item/{address}/listings | ||
* @secure | ||
*/ | ||
export namespace GetTokenListings { | ||
export type RequestParams = { chain: "UNKNOWN" | "ETH" | "SOLANA" | "POLYGON"; address: string }; | ||
export type RequestQuery = {}; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkMarketplaceGetTokenListingsResponse; | ||
} | ||
} | ||
export type QueryParamsType = Record<string | number, any>; | ||
@@ -1218,2 +1250,21 @@ export type ResponseFormat = keyof Omit<Body, "body" | "bodyUsed">; | ||
}; | ||
v2 = { | ||
/** | ||
* @description Returns listings for a given token. Requires project API token. | ||
* | ||
* @tags MarketplaceService | ||
* @name GetTokenListings | ||
* @summary GetListings | ||
* @request GET:/sdk/v2/marketplace/{chain}/item/{address}/listings | ||
* @secure | ||
*/ | ||
getTokenListings: (chain: "UNKNOWN" | "ETH" | "SOLANA" | "POLYGON", address: string, params: RequestParams = {}) => | ||
this.request<FractalSdkMarketplaceGetTokenListingsResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v2/marketplace/${chain}/item/${address}/listings`, | ||
method: "GET", | ||
secure: true, | ||
format: "json", | ||
...params, | ||
}), | ||
}; | ||
} |
{ | ||
"name": "@fractalwagmi/fractal-sdk-public-api", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/fractal-sdk-api.js", |
99158
2504