@fractalwagmi/fractal-sdk-public-api
Advanced tools
Comparing version 0.0.23 to 0.0.24
@@ -96,2 +96,5 @@ export interface FractalSdkAdminGetTransactionStatusResponse { | ||
} | ||
export interface FractalSdkSolanaCreateItemMintTransactionResponse { | ||
url: string; | ||
} | ||
export declare enum FractalSdkSolanaDirection { | ||
@@ -119,2 +122,22 @@ ASCENDING = "ASCENDING", | ||
} | ||
export interface FractalSdkSolanaGetItemsResponse { | ||
templates: FractalSdkSolanaGetItemsResponseTemplate[]; | ||
} | ||
export interface FractalSdkSolanaGetItemsResponseMetadata { | ||
name: string; | ||
description: string; | ||
imageUrl: string; | ||
attributes: FractalSdkSolanaGetItemsResponseMetadataAttribute[]; | ||
} | ||
export interface FractalSdkSolanaGetItemsResponseMetadataAttribute { | ||
name: string; | ||
/** @format int32 */ | ||
intValue?: number; | ||
stringValue?: string; | ||
} | ||
export interface FractalSdkSolanaGetItemsResponseTemplate { | ||
id: string; | ||
metadata: FractalSdkSolanaGetItemsResponseMetadata; | ||
price: FractalSdkCommonPrice; | ||
} | ||
export interface FractalSdkSolanaGetTokenBuyTransactionResponse { | ||
@@ -421,2 +444,53 @@ transaction: string; | ||
/** | ||
* @description Returns a collection's preminted inventory items. | ||
* @tags SolanaInventoryManagementService | ||
* @name GetCollectionItems | ||
* @summary getCollectionItems | ||
* @request GET:/sdk/v1/inventory/solana/collection/{collectionHandle}/items | ||
* @secure | ||
*/ | ||
namespace GetCollectionItems { | ||
type RequestParams = { | ||
collectionHandle: string; | ||
}; | ||
type RequestQuery = {}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkSolanaGetItemsResponse; | ||
} | ||
/** | ||
* @description Creates a mint transaction for an item. | ||
* @tags SolanaInventoryManagementService | ||
* @name CreateItemMintTransaction | ||
* @summary createItemMintTransaction | ||
* @request POST:/sdk/v1/inventory/solana/item/{itemId}/create_mint_transaction | ||
* @secure | ||
*/ | ||
namespace CreateItemMintTransaction { | ||
type RequestParams = { | ||
itemId: string; | ||
}; | ||
type RequestQuery = {}; | ||
type RequestBody = { | ||
walletPublicKey: string; | ||
}; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkSolanaCreateItemMintTransactionResponse; | ||
} | ||
/** | ||
* @description Returns a project's preminted inventory items. | ||
* @tags SolanaInventoryManagementService | ||
* @name GetItems | ||
* @summary getItems | ||
* @request GET:/sdk/v1/inventory/solana/items | ||
* @secure | ||
*/ | ||
namespace GetItems { | ||
type RequestParams = {}; | ||
type RequestQuery = {}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkSolanaGetItemsResponse; | ||
} | ||
/** | ||
* @description Returns whether an item is for sale or not. Requires project API token. | ||
@@ -897,2 +971,34 @@ * @tags SolanaMarketplaceService | ||
/** | ||
* @description Returns a collection's preminted inventory items. | ||
* | ||
* @tags SolanaInventoryManagementService | ||
* @name GetCollectionItems | ||
* @summary getCollectionItems | ||
* @request GET:/sdk/v1/inventory/solana/collection/{collectionHandle}/items | ||
* @secure | ||
*/ | ||
getCollectionItems: (collectionHandle: string, params?: RequestParams) => Promise<HttpResponse<FractalSdkSolanaGetItemsResponse, GoogleRpcStatus>>; | ||
/** | ||
* @description Creates a mint transaction for an item. | ||
* | ||
* @tags SolanaInventoryManagementService | ||
* @name CreateItemMintTransaction | ||
* @summary createItemMintTransaction | ||
* @request POST:/sdk/v1/inventory/solana/item/{itemId}/create_mint_transaction | ||
* @secure | ||
*/ | ||
createItemMintTransaction: (itemId: string, body: { | ||
walletPublicKey: string; | ||
}, params?: RequestParams) => Promise<HttpResponse<FractalSdkSolanaCreateItemMintTransactionResponse, GoogleRpcStatus>>; | ||
/** | ||
* @description Returns a project's preminted inventory items. | ||
* | ||
* @tags SolanaInventoryManagementService | ||
* @name GetItems | ||
* @summary getItems | ||
* @request GET:/sdk/v1/inventory/solana/items | ||
* @secure | ||
*/ | ||
getItems: (params?: RequestParams) => Promise<HttpResponse<FractalSdkSolanaGetItemsResponse, GoogleRpcStatus>>; | ||
/** | ||
* @description Returns whether an item is for sale or not. Requires project API token. | ||
@@ -899,0 +1005,0 @@ * |
@@ -300,2 +300,32 @@ "use strict"; | ||
/** | ||
* @description Returns a collection's preminted inventory items. | ||
* | ||
* @tags SolanaInventoryManagementService | ||
* @name GetCollectionItems | ||
* @summary getCollectionItems | ||
* @request GET:/sdk/v1/inventory/solana/collection/{collectionHandle}/items | ||
* @secure | ||
*/ | ||
getCollectionItems: (collectionHandle, params = {}) => this.request(Object.assign({ path: `/sdk/v1/inventory/solana/collection/${collectionHandle}/items`, method: "GET", secure: true, format: "json" }, params)), | ||
/** | ||
* @description Creates a mint transaction for an item. | ||
* | ||
* @tags SolanaInventoryManagementService | ||
* @name CreateItemMintTransaction | ||
* @summary createItemMintTransaction | ||
* @request POST:/sdk/v1/inventory/solana/item/{itemId}/create_mint_transaction | ||
* @secure | ||
*/ | ||
createItemMintTransaction: (itemId, body, params = {}) => this.request(Object.assign({ path: `/sdk/v1/inventory/solana/item/${itemId}/create_mint_transaction`, method: "POST", body: body, secure: true, type: ContentType.Json, format: "json" }, params)), | ||
/** | ||
* @description Returns a project's preminted inventory items. | ||
* | ||
* @tags SolanaInventoryManagementService | ||
* @name GetItems | ||
* @summary getItems | ||
* @request GET:/sdk/v1/inventory/solana/items | ||
* @secure | ||
*/ | ||
getItems: (params = {}) => this.request(Object.assign({ path: `/sdk/v1/inventory/solana/items`, method: "GET", secure: true, format: "json" }, params)), | ||
/** | ||
* @description Returns whether an item is for sale or not. Requires project API token. | ||
@@ -302,0 +332,0 @@ * |
@@ -134,2 +134,6 @@ /* eslint-disable */ | ||
export interface FractalSdkSolanaCreateItemMintTransactionResponse { | ||
url: string; | ||
} | ||
export enum FractalSdkSolanaDirection { | ||
@@ -162,2 +166,27 @@ ASCENDING = "ASCENDING", | ||
export interface FractalSdkSolanaGetItemsResponse { | ||
templates: FractalSdkSolanaGetItemsResponseTemplate[]; | ||
} | ||
export interface FractalSdkSolanaGetItemsResponseMetadata { | ||
name: string; | ||
description: string; | ||
imageUrl: string; | ||
attributes: FractalSdkSolanaGetItemsResponseMetadataAttribute[]; | ||
} | ||
export interface FractalSdkSolanaGetItemsResponseMetadataAttribute { | ||
name: string; | ||
/** @format int32 */ | ||
intValue?: number; | ||
stringValue?: string; | ||
} | ||
export interface FractalSdkSolanaGetItemsResponseTemplate { | ||
id: string; | ||
metadata: FractalSdkSolanaGetItemsResponseMetadata; | ||
price: FractalSdkCommonPrice; | ||
} | ||
export interface FractalSdkSolanaGetTokenBuyTransactionResponse { | ||
@@ -481,2 +510,47 @@ transaction: string; | ||
/** | ||
* @description Returns a collection's preminted inventory items. | ||
* @tags SolanaInventoryManagementService | ||
* @name GetCollectionItems | ||
* @summary getCollectionItems | ||
* @request GET:/sdk/v1/inventory/solana/collection/{collectionHandle}/items | ||
* @secure | ||
*/ | ||
export namespace GetCollectionItems { | ||
export type RequestParams = { collectionHandle: string }; | ||
export type RequestQuery = {}; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkSolanaGetItemsResponse; | ||
} | ||
/** | ||
* @description Creates a mint transaction for an item. | ||
* @tags SolanaInventoryManagementService | ||
* @name CreateItemMintTransaction | ||
* @summary createItemMintTransaction | ||
* @request POST:/sdk/v1/inventory/solana/item/{itemId}/create_mint_transaction | ||
* @secure | ||
*/ | ||
export namespace CreateItemMintTransaction { | ||
export type RequestParams = { itemId: string }; | ||
export type RequestQuery = {}; | ||
export type RequestBody = { walletPublicKey: string }; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkSolanaCreateItemMintTransactionResponse; | ||
} | ||
/** | ||
* @description Returns a project's preminted inventory items. | ||
* @tags SolanaInventoryManagementService | ||
* @name GetItems | ||
* @summary getItems | ||
* @request GET:/sdk/v1/inventory/solana/items | ||
* @secure | ||
*/ | ||
export namespace GetItems { | ||
export type RequestParams = {}; | ||
export type RequestQuery = {}; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkSolanaGetItemsResponse; | ||
} | ||
/** | ||
* @description Returns whether an item is for sale or not. Requires project API token. | ||
@@ -1165,2 +1239,58 @@ * @tags SolanaMarketplaceService | ||
/** | ||
* @description Returns a collection's preminted inventory items. | ||
* | ||
* @tags SolanaInventoryManagementService | ||
* @name GetCollectionItems | ||
* @summary getCollectionItems | ||
* @request GET:/sdk/v1/inventory/solana/collection/{collectionHandle}/items | ||
* @secure | ||
*/ | ||
getCollectionItems: (collectionHandle: string, params: RequestParams = {}) => | ||
this.request<FractalSdkSolanaGetItemsResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/inventory/solana/collection/${collectionHandle}/items`, | ||
method: "GET", | ||
secure: true, | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* @description Creates a mint transaction for an item. | ||
* | ||
* @tags SolanaInventoryManagementService | ||
* @name CreateItemMintTransaction | ||
* @summary createItemMintTransaction | ||
* @request POST:/sdk/v1/inventory/solana/item/{itemId}/create_mint_transaction | ||
* @secure | ||
*/ | ||
createItemMintTransaction: (itemId: string, body: { walletPublicKey: string }, params: RequestParams = {}) => | ||
this.request<FractalSdkSolanaCreateItemMintTransactionResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/inventory/solana/item/${itemId}/create_mint_transaction`, | ||
method: "POST", | ||
body: body, | ||
secure: true, | ||
type: ContentType.Json, | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* @description Returns a project's preminted inventory items. | ||
* | ||
* @tags SolanaInventoryManagementService | ||
* @name GetItems | ||
* @summary getItems | ||
* @request GET:/sdk/v1/inventory/solana/items | ||
* @secure | ||
*/ | ||
getItems: (params: RequestParams = {}) => | ||
this.request<FractalSdkSolanaGetItemsResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/inventory/solana/items`, | ||
method: "GET", | ||
secure: true, | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* @description Returns whether an item is for sale or not. Requires project API token. | ||
@@ -1167,0 +1297,0 @@ * |
{ | ||
"name": "@fractalwagmi/fractal-sdk-public-api", | ||
"version": "0.0.23", | ||
"version": "0.0.24", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/fractal-sdk-api.js", |
125609
3238