@fractalwagmi/fractal-sdk-api
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -0,1 +1,6 @@ | ||
export declare type FractalSdkAdminSyncItemMetadataResponse = object; | ||
export interface FractalSdkScoreGetLatestScoresResponse { | ||
scores: FractalSdkScoreScore[]; | ||
next?: string; | ||
} | ||
export declare type FractalSdkScorePostCreateScoreResponse = object; | ||
@@ -14,4 +19,20 @@ export declare type FractalSdkScorePostCreateScoresTotalResponse = object; | ||
} | ||
export interface FractalSdkWalletGetCoinsResponse { | ||
coins: FractalSdkWalletGetCoinsResponseCoin[]; | ||
} | ||
export interface FractalSdkWalletGetCoinsResponseCoin { | ||
/** @format int64 */ | ||
amount: string; | ||
/** @format int64 */ | ||
decimals: number; | ||
uiAmount: string; | ||
symbol: string; | ||
name: string; | ||
address: string; | ||
logoUri: string; | ||
} | ||
export interface FractalSdkWalletGetInfoResponse { | ||
accountPublicKey?: string; | ||
email?: string; | ||
username?: string; | ||
} | ||
@@ -24,2 +45,3 @@ export interface FractalSdkWalletGetItemsResponse { | ||
name: string; | ||
isForSale: boolean; | ||
files: FractalSdkWalletFile[]; | ||
@@ -39,2 +61,17 @@ } | ||
* No description | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
*/ | ||
namespace SyncItemMetadata { | ||
type RequestParams = { | ||
id: string; | ||
}; | ||
type RequestQuery = {}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkAdminSyncItemMetadataResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags ScoreService | ||
@@ -56,2 +93,19 @@ * @name CreateScore | ||
* @tags ScoreService | ||
* @name GetLatestScores | ||
* @request GET:/sdk/v1/tournament/{tournamentId}/scores | ||
*/ | ||
namespace GetLatestScores { | ||
type RequestParams = { | ||
tournamentId: string; | ||
}; | ||
type RequestQuery = { | ||
offset?: string; | ||
}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkScoreGetLatestScoresResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags ScoreService | ||
* @name CreateScoresTotal | ||
@@ -72,2 +126,15 @@ * @request POST:/sdk/v1/tournament/{tournamentId}/scores_total | ||
* @tags SdkWalletApi | ||
* @name GetCoins | ||
* @request GET:/sdk/v1/wallet/coins | ||
*/ | ||
namespace GetCoins { | ||
type RequestParams = {}; | ||
type RequestQuery = {}; | ||
type RequestBody = never; | ||
type RequestHeaders = {}; | ||
type ResponseBody = FractalSdkWalletGetCoinsResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags SdkWalletApi | ||
* @name GetInfo | ||
@@ -163,2 +230,10 @@ * @request GET:/sdk/v1/wallet/info | ||
* | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
*/ | ||
syncItemMetadata: (id: string, params?: RequestParams) => Promise<HttpResponse<object, GoogleRpcStatus>>; | ||
/** | ||
* No description | ||
* | ||
* @tags ScoreService | ||
@@ -173,2 +248,12 @@ * @name CreateScore | ||
* @tags ScoreService | ||
* @name GetLatestScores | ||
* @request GET:/sdk/v1/tournament/{tournamentId}/scores | ||
*/ | ||
getLatestScores: (tournamentId: string, query?: { | ||
offset?: string | undefined; | ||
} | undefined, params?: RequestParams) => Promise<HttpResponse<FractalSdkScoreGetLatestScoresResponse, GoogleRpcStatus>>; | ||
/** | ||
* No description | ||
* | ||
* @tags ScoreService | ||
* @name CreateScoresTotal | ||
@@ -182,2 +267,10 @@ * @request POST:/sdk/v1/tournament/{tournamentId}/scores_total | ||
* @tags SdkWalletApi | ||
* @name GetCoins | ||
* @request GET:/sdk/v1/wallet/coins | ||
*/ | ||
getCoins: (params?: RequestParams) => Promise<HttpResponse<FractalSdkWalletGetCoinsResponse, GoogleRpcStatus>>; | ||
/** | ||
* No description | ||
* | ||
* @tags SdkWalletApi | ||
* @name GetInfo | ||
@@ -184,0 +277,0 @@ * @request GET:/sdk/v1/wallet/info |
@@ -165,2 +165,10 @@ "use strict"; | ||
* | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
*/ | ||
syncItemMetadata: (id, params = {}) => this.request(Object.assign({ path: `/sdk/v1/admin/item/${id}/sync_metadata`, method: "POST", format: "json" }, params)), | ||
/** | ||
* No description | ||
* | ||
* @tags ScoreService | ||
@@ -175,2 +183,10 @@ * @name CreateScore | ||
* @tags ScoreService | ||
* @name GetLatestScores | ||
* @request GET:/sdk/v1/tournament/{tournamentId}/scores | ||
*/ | ||
getLatestScores: (tournamentId, query, params = {}) => this.request(Object.assign({ path: `/sdk/v1/tournament/${tournamentId}/scores`, method: "GET", query: query, format: "json" }, params)), | ||
/** | ||
* No description | ||
* | ||
* @tags ScoreService | ||
* @name CreateScoresTotal | ||
@@ -184,2 +200,10 @@ * @request POST:/sdk/v1/tournament/{tournamentId}/scores_total | ||
* @tags SdkWalletApi | ||
* @name GetCoins | ||
* @request GET:/sdk/v1/wallet/coins | ||
*/ | ||
getCoins: (params = {}) => this.request(Object.assign({ path: `/sdk/v1/wallet/coins`, method: "GET", format: "json" }, params)), | ||
/** | ||
* No description | ||
* | ||
* @tags SdkWalletApi | ||
* @name GetInfo | ||
@@ -186,0 +210,0 @@ * @request GET:/sdk/v1/wallet/info |
112
fractal.ts
@@ -12,2 +12,9 @@ /* eslint-disable */ | ||
export type FractalSdkAdminSyncItemMetadataResponse = object; | ||
export interface FractalSdkScoreGetLatestScoresResponse { | ||
scores: FractalSdkScoreScore[]; | ||
next?: string; | ||
} | ||
export type FractalSdkScorePostCreateScoreResponse = object; | ||
@@ -31,4 +38,23 @@ | ||
export interface FractalSdkWalletGetCoinsResponse { | ||
coins: FractalSdkWalletGetCoinsResponseCoin[]; | ||
} | ||
export interface FractalSdkWalletGetCoinsResponseCoin { | ||
/** @format int64 */ | ||
amount: string; | ||
/** @format int64 */ | ||
decimals: number; | ||
uiAmount: string; | ||
symbol: string; | ||
name: string; | ||
address: string; | ||
logoUri: string; | ||
} | ||
export interface FractalSdkWalletGetInfoResponse { | ||
accountPublicKey?: string; | ||
email?: string; | ||
username?: string; | ||
} | ||
@@ -43,2 +69,3 @@ | ||
name: string; | ||
isForSale: boolean; | ||
files: FractalSdkWalletFile[]; | ||
@@ -61,2 +88,15 @@ } | ||
* No description | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
*/ | ||
export namespace SyncItemMetadata { | ||
export type RequestParams = { id: string }; | ||
export type RequestQuery = {}; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkAdminSyncItemMetadataResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags ScoreService | ||
@@ -76,2 +116,15 @@ * @name CreateScore | ||
* @tags ScoreService | ||
* @name GetLatestScores | ||
* @request GET:/sdk/v1/tournament/{tournamentId}/scores | ||
*/ | ||
export namespace GetLatestScores { | ||
export type RequestParams = { tournamentId: string }; | ||
export type RequestQuery = { offset?: string }; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkScoreGetLatestScoresResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags ScoreService | ||
* @name CreateScoresTotal | ||
@@ -90,2 +143,15 @@ * @request POST:/sdk/v1/tournament/{tournamentId}/scores_total | ||
* @tags SdkWalletApi | ||
* @name GetCoins | ||
* @request GET:/sdk/v1/wallet/coins | ||
*/ | ||
export namespace GetCoins { | ||
export type RequestParams = {}; | ||
export type RequestQuery = {}; | ||
export type RequestBody = never; | ||
export type RequestHeaders = {}; | ||
export type ResponseBody = FractalSdkWalletGetCoinsResponse; | ||
} | ||
/** | ||
* No description | ||
* @tags SdkWalletApi | ||
* @name GetInfo | ||
@@ -333,2 +399,17 @@ * @request GET:/sdk/v1/wallet/info | ||
* | ||
* @tags AdminService | ||
* @name SyncItemMetadata | ||
* @request POST:/sdk/v1/admin/item/{id}/sync_metadata | ||
*/ | ||
syncItemMetadata: (id: string, params: RequestParams = {}) => | ||
this.request<FractalSdkAdminSyncItemMetadataResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/admin/item/${id}/sync_metadata`, | ||
method: "POST", | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* No description | ||
* | ||
* @tags ScoreService | ||
@@ -351,2 +432,18 @@ * @name CreateScore | ||
* @tags ScoreService | ||
* @name GetLatestScores | ||
* @request GET:/sdk/v1/tournament/{tournamentId}/scores | ||
*/ | ||
getLatestScores: (tournamentId: string, query?: { offset?: string }, params: RequestParams = {}) => | ||
this.request<FractalSdkScoreGetLatestScoresResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/tournament/${tournamentId}/scores`, | ||
method: "GET", | ||
query: query, | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* No description | ||
* | ||
* @tags ScoreService | ||
* @name CreateScoresTotal | ||
@@ -368,2 +465,17 @@ * @request POST:/sdk/v1/tournament/{tournamentId}/scores_total | ||
* @tags SdkWalletApi | ||
* @name GetCoins | ||
* @request GET:/sdk/v1/wallet/coins | ||
*/ | ||
getCoins: (params: RequestParams = {}) => | ||
this.request<FractalSdkWalletGetCoinsResponse, GoogleRpcStatus>({ | ||
path: `/sdk/v1/wallet/coins`, | ||
method: "GET", | ||
format: "json", | ||
...params, | ||
}), | ||
/** | ||
* No description | ||
* | ||
* @tags SdkWalletApi | ||
* @name GetInfo | ||
@@ -370,0 +482,0 @@ * @request GET:/sdk/v1/wallet/info |
{ | ||
"name": "@fractalwagmi/fractal-sdk-api", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/fractal-sdk-api.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
35266
967
1