@fractalwagmi/fractal-sdk-api
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -1,41 +0,48 @@ | ||
export interface FractalSdkAdminIsForSaleResponse { | ||
isForSale?: boolean; | ||
} | ||
export declare type FractalSdkAdminSyncItemMetadataResponse = object; | ||
export interface FractalSdkMarketplaceGetTokenBuyTransactionResponse { | ||
transaction: string; | ||
export interface FractalSdkAdminUpdateItemMetadataRequestArgs { | ||
description?: string; | ||
image?: string; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenCancelSellTransactionResponse { | ||
transaction: string; | ||
export interface FractalSdkAdminUpdateItemMetadataResponse { | ||
updated?: boolean; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenSellTransactionResponse { | ||
transaction: string; | ||
} | ||
export declare enum FractalSdkProjectDirection { | ||
export declare enum FractalSdkMarketplaceDirection { | ||
ASCENDING = "ASCENDING", | ||
DESCENDING = "DESCENDING" | ||
} | ||
export interface FractalSdkProjectGetForSaleItemsRequestSort { | ||
direction?: FractalSdkProjectDirection; | ||
field?: FractalSdkProjectGetForSaleItemsRequestSortField; | ||
export interface FractalSdkMarketplaceGetForSaleItemsRequestSort { | ||
direction?: FractalSdkMarketplaceDirection; | ||
field?: FractalSdkMarketplaceGetForSaleItemsRequestSortField; | ||
} | ||
export declare enum FractalSdkProjectGetForSaleItemsRequestSortField { | ||
export declare enum FractalSdkMarketplaceGetForSaleItemsRequestSortField { | ||
LIST_TIME = "LIST_TIME", | ||
PRICE = "PRICE" | ||
} | ||
export interface FractalSdkProjectGetForSaleItemsResponse { | ||
items: FractalSdkProjectGetForSaleItemsResponseItem[]; | ||
export interface FractalSdkMarketplaceGetForSaleItemsResponse { | ||
items: FractalSdkMarketplaceGetForSaleItemsResponseItem[]; | ||
} | ||
export interface FractalSdkProjectGetForSaleItemsResponseItem { | ||
export interface FractalSdkMarketplaceGetForSaleItemsResponseItem { | ||
id: string; | ||
name: string; | ||
imageUrl: string; | ||
listTime?: FractalSdkProjectTime; | ||
price?: FractalSdkProjectPrice; | ||
listTime?: FractalSdkMarketplaceTime; | ||
price?: FractalSdkMarketplacePrice; | ||
} | ||
export interface FractalSdkProjectPrice { | ||
export interface FractalSdkMarketplaceGetTokenBuyTransactionResponse { | ||
transaction: string; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenCancelSellTransactionResponse { | ||
transaction: string; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenSellTransactionResponse { | ||
transaction: string; | ||
} | ||
export interface FractalSdkMarketplaceIsForSaleResponse { | ||
isForSale?: boolean; | ||
} | ||
export interface FractalSdkMarketplacePrice { | ||
amount: string; | ||
unit: string; | ||
} | ||
export interface FractalSdkProjectTime { | ||
export interface FractalSdkMarketplaceTime { | ||
/** @format uint64 */ | ||
@@ -125,8 +132,8 @@ epochMillis: string; | ||
* @tags AdminService | ||
* @name IsForSale | ||
* @summary Returns whether an item is for sale or not. | ||
* @request GET:/sdk/v1/admin/item/{id}/for_sale_state | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @secure | ||
*/ | ||
namespace IsForSale { | ||
namespace SyncItemMetadata { | ||
type RequestParams = { | ||
@@ -138,3 +145,3 @@ id: string; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkAdminIsForSaleResponse; | ||
type ResponseBody = FractalSdkAdminSyncItemMetadataResponse; | ||
} | ||
@@ -144,8 +151,7 @@ /** | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @name UpdateItemMetadata | ||
* @request PATCH:/sdk/v1/admin/item/{id}/update_metadata | ||
* @secure | ||
*/ | ||
namespace SyncItemMetadata { | ||
namespace UpdateItemMetadata { | ||
type RequestParams = { | ||
@@ -155,5 +161,22 @@ id: string; | ||
type RequestQuery = {}; | ||
type RequestBody = FractalSdkAdminUpdateItemMetadataRequestArgs; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkAdminUpdateItemMetadataResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags MarketplaceService | ||
* @name IsForSale | ||
* @summary Returns whether an item is for sale or not. | ||
* @request GET:/sdk/v1/marketplace/solana/item/{id}/for_sale_state | ||
* @secure | ||
*/ | ||
namespace IsForSale { | ||
type RequestParams = { | ||
id: string; | ||
}; | ||
type RequestQuery = {}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkAdminSyncItemMetadataResponse; | ||
type ResponseBody = FractalSdkMarketplaceIsForSaleResponse; | ||
} | ||
@@ -163,2 +186,21 @@ /** | ||
* @tags MarketplaceService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/marketplace/solana/items/for_sale | ||
* @secure | ||
*/ | ||
namespace GetForSaleItems { | ||
type RequestParams = {}; | ||
type RequestQuery = { | ||
"sort.direction"?: "ASCENDING" | "DESCENDING"; | ||
"sort.field"?: "LIST_TIME" | "PRICE"; | ||
limit?: number; | ||
}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkMarketplaceGetForSaleItemsResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags MarketplaceService | ||
* @name TokenBuyTransaction | ||
@@ -221,21 +263,2 @@ * @summary Generates a buy transaction for a Solana token listed on Fractal's marketplace. | ||
* No description | ||
* @tags ProjectService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/project/items/for_sale | ||
* @secure | ||
*/ | ||
namespace GetForSaleItems { | ||
type RequestParams = {}; | ||
type RequestQuery = { | ||
"sort.direction"?: "ASCENDING" | "DESCENDING"; | ||
"sort.field"?: "LIST_TIME" | "PRICE"; | ||
limit?: number; | ||
}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkProjectGetForSaleItemsResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags TournamentService | ||
@@ -368,3 +391,3 @@ * @name GetScore | ||
* @name GetInfo | ||
* @summary Returns info about a give Fractal wallet. | ||
* @summary Returns info about a given Fractal wallet. | ||
* @request GET:/sdk/v1/wallet/info | ||
@@ -464,18 +487,41 @@ * @secure | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @secure | ||
*/ | ||
syncItemMetadata: (id: string, params?: RequestParams) => Promise<HttpResponse<object, GoogleRpcStatus>>; | ||
/** | ||
* No description | ||
* | ||
* @tags AdminService | ||
* @name UpdateItemMetadata | ||
* @request PATCH:/sdk/v1/admin/item/{id}/update_metadata | ||
* @secure | ||
*/ | ||
updateItemMetadata: (id: string, body: FractalSdkAdminUpdateItemMetadataRequestArgs, params?: RequestParams) => Promise<HttpResponse<FractalSdkAdminUpdateItemMetadataResponse, GoogleRpcStatus>>; | ||
/** | ||
* No description | ||
* | ||
* @tags MarketplaceService | ||
* @name IsForSale | ||
* @summary Returns whether an item is for sale or not. | ||
* @request GET:/sdk/v1/admin/item/{id}/for_sale_state | ||
* @request GET:/sdk/v1/marketplace/solana/item/{id}/for_sale_state | ||
* @secure | ||
*/ | ||
isForSale: (id: string, params?: RequestParams) => Promise<HttpResponse<FractalSdkAdminIsForSaleResponse, GoogleRpcStatus>>; | ||
isForSale: (id: string, params?: RequestParams) => Promise<HttpResponse<FractalSdkMarketplaceIsForSaleResponse, GoogleRpcStatus>>; | ||
/** | ||
* No description | ||
* | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @tags MarketplaceService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/marketplace/solana/items/for_sale | ||
* @secure | ||
*/ | ||
syncItemMetadata: (id: string, params?: RequestParams) => Promise<HttpResponse<object, GoogleRpcStatus>>; | ||
getForSaleItems: (query?: { | ||
"sort.direction"?: "ASCENDING" | "DESCENDING"; | ||
"sort.field"?: "LIST_TIME" | "PRICE"; | ||
limit?: number; | ||
}, params?: RequestParams) => Promise<HttpResponse<FractalSdkMarketplaceGetForSaleItemsResponse, GoogleRpcStatus>>; | ||
/** | ||
@@ -527,16 +573,2 @@ * No description | ||
* | ||
* @tags ProjectService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/project/items/for_sale | ||
* @secure | ||
*/ | ||
getForSaleItems: (query?: { | ||
"sort.direction"?: "ASCENDING" | "DESCENDING"; | ||
"sort.field"?: "LIST_TIME" | "PRICE"; | ||
limit?: number; | ||
}, params?: RequestParams) => Promise<HttpResponse<FractalSdkProjectGetForSaleItemsResponse, GoogleRpcStatus>>; | ||
/** | ||
* No description | ||
* | ||
* @tags TournamentService | ||
@@ -621,3 +653,3 @@ * @name GetScore | ||
* @name GetInfo | ||
* @summary Returns info about a give Fractal wallet. | ||
* @summary Returns info about a given Fractal wallet. | ||
* @request GET:/sdk/v1/wallet/info | ||
@@ -624,0 +656,0 @@ * @secure |
@@ -33,13 +33,13 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Api = exports.HttpClient = exports.ContentType = exports.FractalSdkProjectGetForSaleItemsRequestSortField = exports.FractalSdkProjectDirection = void 0; | ||
var FractalSdkProjectDirection; | ||
(function (FractalSdkProjectDirection) { | ||
FractalSdkProjectDirection["ASCENDING"] = "ASCENDING"; | ||
FractalSdkProjectDirection["DESCENDING"] = "DESCENDING"; | ||
})(FractalSdkProjectDirection = exports.FractalSdkProjectDirection || (exports.FractalSdkProjectDirection = {})); | ||
var FractalSdkProjectGetForSaleItemsRequestSortField; | ||
(function (FractalSdkProjectGetForSaleItemsRequestSortField) { | ||
FractalSdkProjectGetForSaleItemsRequestSortField["LIST_TIME"] = "LIST_TIME"; | ||
FractalSdkProjectGetForSaleItemsRequestSortField["PRICE"] = "PRICE"; | ||
})(FractalSdkProjectGetForSaleItemsRequestSortField = exports.FractalSdkProjectGetForSaleItemsRequestSortField || (exports.FractalSdkProjectGetForSaleItemsRequestSortField = {})); | ||
exports.Api = exports.HttpClient = exports.ContentType = exports.FractalSdkMarketplaceGetForSaleItemsRequestSortField = exports.FractalSdkMarketplaceDirection = void 0; | ||
var FractalSdkMarketplaceDirection; | ||
(function (FractalSdkMarketplaceDirection) { | ||
FractalSdkMarketplaceDirection["ASCENDING"] = "ASCENDING"; | ||
FractalSdkMarketplaceDirection["DESCENDING"] = "DESCENDING"; | ||
})(FractalSdkMarketplaceDirection = exports.FractalSdkMarketplaceDirection || (exports.FractalSdkMarketplaceDirection = {})); | ||
var FractalSdkMarketplaceGetForSaleItemsRequestSortField; | ||
(function (FractalSdkMarketplaceGetForSaleItemsRequestSortField) { | ||
FractalSdkMarketplaceGetForSaleItemsRequestSortField["LIST_TIME"] = "LIST_TIME"; | ||
FractalSdkMarketplaceGetForSaleItemsRequestSortField["PRICE"] = "PRICE"; | ||
})(FractalSdkMarketplaceGetForSaleItemsRequestSortField = exports.FractalSdkMarketplaceGetForSaleItemsRequestSortField || (exports.FractalSdkMarketplaceGetForSaleItemsRequestSortField = {})); | ||
var ContentType; | ||
@@ -178,18 +178,37 @@ (function (ContentType) { | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @secure | ||
*/ | ||
syncItemMetadata: (id, params = {}) => this.request(Object.assign({ path: `/sdk/v1/admin/item/${id}/sync_metadata`, method: "POST", secure: true, format: "json" }, params)), | ||
/** | ||
* No description | ||
* | ||
* @tags AdminService | ||
* @name UpdateItemMetadata | ||
* @request PATCH:/sdk/v1/admin/item/{id}/update_metadata | ||
* @secure | ||
*/ | ||
updateItemMetadata: (id, body, params = {}) => this.request(Object.assign({ path: `/sdk/v1/admin/item/${id}/update_metadata`, method: "PATCH", body: body, secure: true, type: ContentType.Json, format: "json" }, params)), | ||
/** | ||
* No description | ||
* | ||
* @tags MarketplaceService | ||
* @name IsForSale | ||
* @summary Returns whether an item is for sale or not. | ||
* @request GET:/sdk/v1/admin/item/{id}/for_sale_state | ||
* @request GET:/sdk/v1/marketplace/solana/item/{id}/for_sale_state | ||
* @secure | ||
*/ | ||
isForSale: (id, params = {}) => this.request(Object.assign({ path: `/sdk/v1/admin/item/${id}/for_sale_state`, method: "GET", secure: true, format: "json" }, params)), | ||
isForSale: (id, params = {}) => this.request(Object.assign({ path: `/sdk/v1/marketplace/solana/item/${id}/for_sale_state`, method: "GET", secure: true, format: "json" }, params)), | ||
/** | ||
* No description | ||
* | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @tags MarketplaceService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/marketplace/solana/items/for_sale | ||
* @secure | ||
*/ | ||
syncItemMetadata: (id, params = {}) => this.request(Object.assign({ path: `/sdk/v1/admin/item/${id}/sync_metadata`, method: "POST", secure: true, format: "json" }, params)), | ||
getForSaleItems: (query, params = {}) => this.request(Object.assign({ path: `/sdk/v1/marketplace/solana/items/for_sale`, method: "GET", query: query, secure: true, format: "json" }, params)), | ||
/** | ||
@@ -228,12 +247,2 @@ * No description | ||
* | ||
* @tags ProjectService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/project/items/for_sale | ||
* @secure | ||
*/ | ||
getForSaleItems: (query, params = {}) => this.request(Object.assign({ path: `/sdk/v1/project/items/for_sale`, method: "GET", query: query, secure: true, format: "json" }, params)), | ||
/** | ||
* No description | ||
* | ||
* @tags TournamentService | ||
@@ -311,3 +320,3 @@ * @name GetScore | ||
* @name GetInfo | ||
* @summary Returns info about a give Fractal wallet. | ||
* @summary Returns info about a given Fractal wallet. | ||
* @request GET:/sdk/v1/wallet/info | ||
@@ -314,0 +323,0 @@ * @secure |
@@ -12,21 +12,14 @@ /* eslint-disable */ | ||
export interface FractalSdkAdminIsForSaleResponse { | ||
isForSale?: boolean; | ||
} | ||
export type FractalSdkAdminSyncItemMetadataResponse = object; | ||
export interface FractalSdkMarketplaceGetTokenBuyTransactionResponse { | ||
transaction: string; | ||
export interface FractalSdkAdminUpdateItemMetadataRequestArgs { | ||
description?: string; | ||
image?: string; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenCancelSellTransactionResponse { | ||
transaction: string; | ||
export interface FractalSdkAdminUpdateItemMetadataResponse { | ||
updated?: boolean; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenSellTransactionResponse { | ||
transaction: string; | ||
} | ||
export enum FractalSdkProjectDirection { | ||
export enum FractalSdkMarketplaceDirection { | ||
ASCENDING = "ASCENDING", | ||
@@ -36,8 +29,8 @@ DESCENDING = "DESCENDING", | ||
export interface FractalSdkProjectGetForSaleItemsRequestSort { | ||
direction?: FractalSdkProjectDirection; | ||
field?: FractalSdkProjectGetForSaleItemsRequestSortField; | ||
export interface FractalSdkMarketplaceGetForSaleItemsRequestSort { | ||
direction?: FractalSdkMarketplaceDirection; | ||
field?: FractalSdkMarketplaceGetForSaleItemsRequestSortField; | ||
} | ||
export enum FractalSdkProjectGetForSaleItemsRequestSortField { | ||
export enum FractalSdkMarketplaceGetForSaleItemsRequestSortField { | ||
LIST_TIME = "LIST_TIME", | ||
@@ -47,15 +40,31 @@ PRICE = "PRICE", | ||
export interface FractalSdkProjectGetForSaleItemsResponse { | ||
items: FractalSdkProjectGetForSaleItemsResponseItem[]; | ||
export interface FractalSdkMarketplaceGetForSaleItemsResponse { | ||
items: FractalSdkMarketplaceGetForSaleItemsResponseItem[]; | ||
} | ||
export interface FractalSdkProjectGetForSaleItemsResponseItem { | ||
export interface FractalSdkMarketplaceGetForSaleItemsResponseItem { | ||
id: string; | ||
name: string; | ||
imageUrl: string; | ||
listTime?: FractalSdkProjectTime; | ||
price?: FractalSdkProjectPrice; | ||
listTime?: FractalSdkMarketplaceTime; | ||
price?: FractalSdkMarketplacePrice; | ||
} | ||
export interface FractalSdkProjectPrice { | ||
export interface FractalSdkMarketplaceGetTokenBuyTransactionResponse { | ||
transaction: string; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenCancelSellTransactionResponse { | ||
transaction: string; | ||
} | ||
export interface FractalSdkMarketplaceGetTokenSellTransactionResponse { | ||
transaction: string; | ||
} | ||
export interface FractalSdkMarketplaceIsForSaleResponse { | ||
isForSale?: boolean; | ||
} | ||
export interface FractalSdkMarketplacePrice { | ||
amount: string; | ||
@@ -65,3 +74,3 @@ unit: string; | ||
export interface FractalSdkProjectTime { | ||
export interface FractalSdkMarketplaceTime { | ||
/** @format uint64 */ | ||
@@ -173,8 +182,8 @@ epochMillis: string; | ||
* @tags AdminService | ||
* @name IsForSale | ||
* @summary Returns whether an item is for sale or not. | ||
* @request GET:/sdk/v1/admin/item/{id}/for_sale_state | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @secure | ||
*/ | ||
export namespace IsForSale { | ||
export namespace SyncItemMetadata { | ||
export type RequestParams = { id: string }; | ||
@@ -184,3 +193,3 @@ export type RequestQuery = {}; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkAdminIsForSaleResponse; | ||
export type ResponseBody = FractalSdkAdminSyncItemMetadataResponse; | ||
} | ||
@@ -190,13 +199,27 @@ /** | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @name UpdateItemMetadata | ||
* @request PATCH:/sdk/v1/admin/item/{id}/update_metadata | ||
* @secure | ||
*/ | ||
export namespace SyncItemMetadata { | ||
export namespace UpdateItemMetadata { | ||
export type RequestParams = { id: string }; | ||
export type RequestQuery = {}; | ||
export type RequestBody = FractalSdkAdminUpdateItemMetadataRequestArgs; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkAdminUpdateItemMetadataResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags MarketplaceService | ||
* @name IsForSale | ||
* @summary Returns whether an item is for sale or not. | ||
* @request GET:/sdk/v1/marketplace/solana/item/{id}/for_sale_state | ||
* @secure | ||
*/ | ||
export namespace IsForSale { | ||
export type RequestParams = { id: string }; | ||
export type RequestQuery = {}; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkAdminSyncItemMetadataResponse; | ||
export type ResponseBody = FractalSdkMarketplaceIsForSaleResponse; | ||
} | ||
@@ -206,2 +229,21 @@ /** | ||
* @tags MarketplaceService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/marketplace/solana/items/for_sale | ||
* @secure | ||
*/ | ||
export namespace GetForSaleItems { | ||
export type RequestParams = {}; | ||
export type RequestQuery = { | ||
"sort.direction"?: "ASCENDING" | "DESCENDING"; | ||
"sort.field"?: "LIST_TIME" | "PRICE"; | ||
limit?: number; | ||
}; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkMarketplaceGetForSaleItemsResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags MarketplaceService | ||
* @name TokenBuyTransaction | ||
@@ -251,21 +293,2 @@ * @summary Generates a buy transaction for a Solana token listed on Fractal's marketplace. | ||
* No description | ||
* @tags ProjectService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/project/items/for_sale | ||
* @secure | ||
*/ | ||
export namespace GetForSaleItems { | ||
export type RequestParams = {}; | ||
export type RequestQuery = { | ||
"sort.direction"?: "ASCENDING" | "DESCENDING"; | ||
"sort.field"?: "LIST_TIME" | "PRICE"; | ||
limit?: number; | ||
}; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkProjectGetForSaleItemsResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags TournamentService | ||
@@ -378,3 +401,3 @@ * @name GetScore | ||
* @name GetInfo | ||
* @summary Returns info about a give Fractal wallet. | ||
* @summary Returns info about a given Fractal wallet. | ||
* @request GET:/sdk/v1/wallet/info | ||
@@ -626,10 +649,47 @@ * @secure | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @secure | ||
*/ | ||
syncItemMetadata: (id: string, params: RequestParams = {}) => | ||
this.request<FractalSdkAdminSyncItemMetadataResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/admin/item/${id}/sync_metadata`, | ||
method: "POST", | ||
secure: true, | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* No description | ||
* | ||
* @tags AdminService | ||
* @name UpdateItemMetadata | ||
* @request PATCH:/sdk/v1/admin/item/{id}/update_metadata | ||
* @secure | ||
*/ | ||
updateItemMetadata: (id: string, body: FractalSdkAdminUpdateItemMetadataRequestArgs, params: RequestParams = {}) => | ||
this.request<FractalSdkAdminUpdateItemMetadataResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/admin/item/${id}/update_metadata`, | ||
method: "PATCH", | ||
body: body, | ||
secure: true, | ||
type: ContentType.Json, | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* No description | ||
* | ||
* @tags MarketplaceService | ||
* @name IsForSale | ||
* @summary Returns whether an item is for sale or not. | ||
* @request GET:/sdk/v1/admin/item/{id}/for_sale_state | ||
* @request GET:/sdk/v1/marketplace/solana/item/{id}/for_sale_state | ||
* @secure | ||
*/ | ||
isForSale: (id: string, params: RequestParams = {}) => | ||
this.request<FractalSdkAdminIsForSaleResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/admin/item/${id}/for_sale_state`, | ||
this.request<FractalSdkMarketplaceIsForSaleResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/marketplace/solana/item/${id}/for_sale_state`, | ||
method: "GET", | ||
@@ -644,12 +704,16 @@ secure: true, | ||
* | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @summary Syncs an item's off-chain metadata. | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
* @tags MarketplaceService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/marketplace/solana/items/for_sale | ||
* @secure | ||
*/ | ||
syncItemMetadata: (id: string, params: RequestParams = {}) => | ||
this.request<FractalSdkAdminSyncItemMetadataResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/admin/item/${id}/sync_metadata`, | ||
method: "POST", | ||
getForSaleItems: ( | ||
query?: { "sort.direction"?: "ASCENDING" | "DESCENDING"; "sort.field"?: "LIST_TIME" | "PRICE"; limit?: number }, | ||
params: RequestParams = {}, | ||
) => | ||
this.request<FractalSdkMarketplaceGetForSaleItemsResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/marketplace/solana/items/for_sale`, | ||
method: "GET", | ||
query: query, | ||
secure: true, | ||
@@ -726,24 +790,2 @@ format: "json", | ||
* | ||
* @tags ProjectService | ||
* @name GetForSaleItems | ||
* @summary Returns a project's items for sale on Fractal's marketplace. | ||
* @request GET:/sdk/v1/project/items/for_sale | ||
* @secure | ||
*/ | ||
getForSaleItems: ( | ||
query?: { "sort.direction"?: "ASCENDING" | "DESCENDING"; "sort.field"?: "LIST_TIME" | "PRICE"; limit?: number }, | ||
params: RequestParams = {}, | ||
) => | ||
this.request<FractalSdkProjectGetForSaleItemsResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/project/items/for_sale`, | ||
method: "GET", | ||
query: query, | ||
secure: true, | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* No description | ||
* | ||
* @tags TournamentService | ||
@@ -887,3 +929,3 @@ * @name GetScore | ||
* @name GetInfo | ||
* @summary Returns info about a give Fractal wallet. | ||
* @summary Returns info about a given Fractal wallet. | ||
* @request GET:/sdk/v1/wallet/info | ||
@@ -890,0 +932,0 @@ * @secure |
{ | ||
"name": "@fractalwagmi/fractal-sdk-api", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "", | ||
@@ -21,3 +21,6 @@ "main": "dist/fractal-sdk-api.js", | ||
}, | ||
"homepage": "https://github.com/fractalwagmi/fractal-sdk-api#readme" | ||
"homepage": "https://github.com/fractalwagmi/fractal-sdk-api#readme", | ||
"devDependencies": { | ||
"typescript": "^4.7.4" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
1
69245
1
5
1880