Skip to content

Commit

Permalink
feat: update ts client with image thumbnails (#206)
Browse files Browse the repository at this point in the history
* feat: update ts client with image thumbnails

* fix: restore enums
  • Loading branch information
rafaelcr authored May 2, 2024
1 parent 2fdcb33 commit c24cb56
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 9 deletions.
2 changes: 1 addition & 1 deletion client/typescript/.swagger-codegen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.46
3.0.52
22 changes: 20 additions & 2 deletions client/typescript/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// tslint:disable
/**
* Token Metadata API
* Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
* Welcome to the API reference overview for the [Token Metadata API](https://docs.hiro.so/token-metadata-api). Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
*
* OpenAPI spec version: v0.4.0
*
Expand Down Expand Up @@ -71,7 +71,7 @@ export class BaseAPI {
* @extends {Error}
*/
export class RequiredError extends Error {
name: "RequiredError"
name = "RequiredError"
constructor(public field: string, msg?: string) {
super(msg);
}
Expand Down Expand Up @@ -250,6 +250,12 @@ export interface FtBasicMetadataResponse {
* @memberof FtBasicMetadataResponse
*/
image_uri?: string;
/**
*
* @type {string}
* @memberof FtBasicMetadataResponse
*/
image_thumbnail_uri?: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -323,6 +329,12 @@ export interface FtMetadataResponse {
* @memberof FtMetadataResponse
*/
image_uri?: string;
/**
*
* @type {string}
* @memberof FtMetadataResponse
*/
image_thumbnail_uri?: string;
/**
*
* @type {string}
Expand Down Expand Up @@ -384,6 +396,12 @@ export interface Metadata {
* @memberof Metadata
*/
cached_image?: string;
/**
*
* @type {string}
* @memberof Metadata
*/
cached_thumbnail_image?: string;
/**
*
* @type {Array<MetadataAttribute>}
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/api_test.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Token Metadata API
* Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
* Welcome to the API reference overview for the [Token Metadata API](https://docs.hiro.so/token-metadata-api). Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
*
* OpenAPI spec version: v0.4.0
*
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/configuration.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
/**
* Token Metadata API
* Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
* Welcome to the API reference overview for the [Token Metadata API](https://docs.hiro.so/token-metadata-api). Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
*
* OpenAPI spec version: v0.4.0
*
Expand Down
2 changes: 1 addition & 1 deletion client/typescript/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// tslint:disable
/**
* Token Metadata API
* Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
* Welcome to the API reference overview for the [Token Metadata API](https://docs.hiro.so/token-metadata-api). Service that indexes metadata for every SIP-009, SIP-010, and SIP-013 Token in the Stacks blockchain and exposes it via REST API endpoints.
*
* OpenAPI spec version: v0.4.0
*
Expand Down
4 changes: 2 additions & 2 deletions client/typescript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hirosystems/token-metadata-api-client",
"version": "1.2.0",
"version": "1.3.0",
"description": "Client for @hirosystems/token-metadata-api",
"author": "Hiro Systems PBC <[email protected]> (https://hiro.so)",
"keywords": [
Expand Down

0 comments on commit c24cb56

Please sign in to comment.