@alembic/nft-api-sdk
Advanced tools
Comparing version 1.1.5 to 1.1.6
@@ -33,2 +33,3 @@ export { NftApi } from './NftApi'; | ||
export { CollectionStandard } from './models/CollectionStandard'; | ||
export type { CollectionUpdates } from './models/CollectionUpdates'; | ||
export type { ContractAddress } from './models/ContractAddress'; | ||
@@ -35,0 +36,0 @@ export type { contractAddressParam } from './models/contractAddressParam'; |
@@ -14,6 +14,2 @@ import type { CollectionStandard } from './CollectionStandard'; | ||
/** | ||
* Hash of the body | ||
*/ | ||
hash: string; | ||
/** | ||
* Id of the client | ||
@@ -20,0 +16,0 @@ */ |
import type { Collection } from '../models/Collection'; | ||
import type { CollectionAttributes } from '../models/CollectionAttributes'; | ||
import type { CollectionUpdates } from '../models/CollectionUpdates'; | ||
import type { ContractAddress } from '../models/ContractAddress'; | ||
@@ -17,3 +18,3 @@ import type { GetCollectionProgressResponse } from '../models/GetCollectionProgressResponse'; | ||
* Register a new collection | ||
* Register a new collection in the NFT API. This will start the process of indexing this ERC721 contract. For now, this will not do anything about the 0x indexing settings (planned for later). | ||
* Register a new collection in the NFT API. This will start the process of indexing this ERC721 contract. | ||
* @param requestBody | ||
@@ -41,2 +42,11 @@ * @returns Collection Successful operation | ||
/** | ||
* Update a collection | ||
* Update a collection in the NFT API. Only given fields will be updated. | ||
* @param contractAddress | ||
* @param requestBody | ||
* @returns Collection Collection information | ||
* @throws ApiError | ||
*/ | ||
updateCollection(contractAddress: ContractAddress, requestBody: CollectionUpdates): CancelablePromise<Collection>; | ||
/** | ||
* Refreshes the metadata of the specified collection | ||
@@ -43,0 +53,0 @@ * Queue jobs to refresh the metadata of all the NFTs of the specified collection. |
@@ -10,3 +10,3 @@ "use strict"; | ||
* Register a new collection | ||
* Register a new collection in the NFT API. This will start the process of indexing this ERC721 contract. For now, this will not do anything about the 0x indexing settings (planned for later). | ||
* Register a new collection in the NFT API. This will start the process of indexing this ERC721 contract. | ||
* @param requestBody | ||
@@ -71,2 +71,26 @@ * @returns Collection Successful operation | ||
/** | ||
* Update a collection | ||
* Update a collection in the NFT API. Only given fields will be updated. | ||
* @param contractAddress | ||
* @param requestBody | ||
* @returns Collection Collection information | ||
* @throws ApiError | ||
*/ | ||
updateCollection(contractAddress, requestBody) { | ||
return this.httpRequest.request({ | ||
method: 'PATCH', | ||
url: '/collections/{contractAddress}', | ||
path: { | ||
'contractAddress': contractAddress, | ||
}, | ||
body: requestBody, | ||
mediaType: 'application/json', | ||
errors: { | ||
400: `Invalid input, object invalid.`, | ||
404: `Resource not found.`, | ||
500: `Internal server error`, | ||
}, | ||
}); | ||
} | ||
/** | ||
* Refreshes the metadata of the specified collection | ||
@@ -73,0 +97,0 @@ * Queue jobs to refresh the metadata of all the NFTs of the specified collection. |
{ | ||
"name": "@alembic/nft-api-sdk", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"description": "SDK to use alembic NFT API", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
167585
269
4776