@alembic/nft-api-sdk
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -47,2 +47,5 @@ export { NftApi } from './NftApi'; | ||
export type { MintTransfer } from './models/MintTransfer'; | ||
export type { MonthlyCountStats } from './models/MonthlyCountStats'; | ||
export type { MonthlySalesVolume } from './models/MonthlySalesVolume'; | ||
export type { MonthlyVolumeStats } from './models/MonthlyVolumeStats'; | ||
export type { NewAuction } from './models/NewAuction'; | ||
@@ -54,3 +57,5 @@ export type { NewBid } from './models/NewBid'; | ||
export type { NullableBignumber } from './models/NullableBignumber'; | ||
export type { NullableSignature } from './models/NullableSignature'; | ||
export type { Order } from './models/Order'; | ||
export type { OrderCore } from './models/OrderCore'; | ||
export type { OrderWithAsset } from './models/OrderWithAsset'; | ||
@@ -64,2 +69,4 @@ export type { OwnersSpreadRange } from './models/OwnersSpreadRange'; | ||
export type { PaginatedOrders } from './models/PaginatedOrders'; | ||
export type { PercentageVariation } from './models/PercentageVariation'; | ||
export type { ProjectCollectionsStats } from './models/ProjectCollectionsStats'; | ||
export type { RefreshCollectionMetadataResponse } from './models/RefreshCollectionMetadataResponse'; | ||
@@ -91,2 +98,3 @@ export type { SearchAssetResponse } from './models/SearchAssetResponse'; | ||
export { OrderService } from './services/OrderService'; | ||
export { ProjectService } from './services/ProjectService'; | ||
export { TransferService } from './services/TransferService'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TransferService = exports.OrderService = exports.CollectionService = exports.BidService = exports.AuctionService = exports.AssetService = exports.AnalyticsService = exports.AdminService = exports.TradeStatus = exports.TradeDirection = exports.TokenType = exports.FilterOrderBy = exports.FilterDirection = exports.CollectionStandard = exports.CollectionAnalyticsFilters = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.NftApi = void 0; | ||
exports.TransferService = exports.ProjectService = exports.OrderService = exports.CollectionService = exports.BidService = exports.AuctionService = exports.AssetService = exports.AnalyticsService = exports.AdminService = exports.TradeStatus = exports.TradeDirection = exports.TokenType = exports.FilterOrderBy = exports.FilterDirection = exports.CollectionStandard = exports.CollectionAnalyticsFilters = exports.OpenAPI = exports.CancelError = exports.CancelablePromise = exports.BaseHttpRequest = exports.ApiError = exports.NftApi = void 0; | ||
/* generated using openapi-typescript-codegen -- do no edit */ | ||
@@ -47,3 +47,5 @@ /* istanbul ignore file */ | ||
Object.defineProperty(exports, "OrderService", { enumerable: true, get: function () { return OrderService_1.OrderService; } }); | ||
var ProjectService_1 = require("./services/ProjectService"); | ||
Object.defineProperty(exports, "ProjectService", { enumerable: true, get: function () { return ProjectService_1.ProjectService; } }); | ||
var TransferService_1 = require("./services/TransferService"); | ||
Object.defineProperty(exports, "TransferService", { enumerable: true, get: function () { return TransferService_1.TransferService; } }); |
@@ -5,4 +5,3 @@ /** | ||
export declare enum CollectionStandard { | ||
ERC721 = "ERC721", | ||
ERC1155 = "ERC1155" | ||
ERC721 = "ERC721" | ||
} |
@@ -14,3 +14,2 @@ "use strict"; | ||
CollectionStandard["ERC721"] = "ERC721"; | ||
CollectionStandard["ERC1155"] = "ERC1155"; | ||
})(CollectionStandard || (exports.CollectionStandard = CollectionStandard = {})); |
export type GetCollectionProgressResponse = { | ||
progressBlockNumber: number; | ||
updatedAt?: string; | ||
startBlock: number | null; | ||
latestBlockNumber: number; | ||
/** | ||
* The percentage of blocks indexed. 2 decimals precision. | ||
*/ | ||
progressPercentage: number; | ||
updatedAt: string | null; | ||
}; |
@@ -18,7 +18,7 @@ import type { CollectionFees } from './CollectionFees'; | ||
contract: { | ||
standard: CollectionStandard; | ||
standard?: CollectionStandard; | ||
address: ContractAddress; | ||
}; | ||
webhookSubscriptions: Array<WebhookSubscriptions>; | ||
collectionFees: CollectionFees; | ||
webhookSubscriptions?: Array<WebhookSubscriptions>; | ||
collectionFees?: CollectionFees; | ||
}; |
@@ -1,30 +0,5 @@ | ||
import type { Bignumber } from './Bignumber'; | ||
import type { Fee } from './Fee'; | ||
import type { OrderCore } from './OrderCore'; | ||
import type { Signature } from './Signature'; | ||
import type { Token } from './Token'; | ||
import type { TradeDirection } from './TradeDirection'; | ||
import type { UserAddress } from './UserAddress'; | ||
export type NewOrder = (Token & { | ||
direction: TradeDirection; | ||
/** | ||
* the token used for the payment | ||
*/ | ||
erc20Token: string; | ||
/** | ||
* the amount of tokens used for the payment | ||
*/ | ||
erc20TokenAmount: Bignumber; | ||
/** | ||
* Date of the signature | ||
*/ | ||
signedAt: string; | ||
/** | ||
* Expiration date of the order | ||
*/ | ||
expiry: string; | ||
fees: Array<Fee>; | ||
maker: UserAddress; | ||
taker: UserAddress; | ||
nonce: string; | ||
export type NewOrder = (OrderCore & { | ||
signature: Signature; | ||
}); |
@@ -1,2 +0,2 @@ | ||
import type { MetadataWithAttributes } from './MetadataWithAttributes'; | ||
import type { Metadata } from './Metadata'; | ||
export type NullableAsset = { | ||
@@ -18,3 +18,3 @@ /** | ||
*/ | ||
metadata: MetadataWithAttributes; | ||
metadata: Metadata; | ||
/** | ||
@@ -21,0 +21,0 @@ * The cached image URL of the asset. |
import type { Bignumber } from './Bignumber'; | ||
import type { NewOrder } from './NewOrder'; | ||
import type { NullableSignature } from './NullableSignature'; | ||
import type { OrderCore } from './OrderCore'; | ||
import type { TradeStatus } from './TradeStatus'; | ||
export type Order = (NewOrder & { | ||
export type Order = (OrderCore & { | ||
/** | ||
@@ -15,2 +16,6 @@ * Unique identifier of the order, a UUID. | ||
/** | ||
* Date the order was cancelled at | ||
*/ | ||
cancelledAt: string | null; | ||
/** | ||
* the total amount of combined fees | ||
@@ -27,2 +32,3 @@ */ | ||
updatedAtBlockNumber: number | null; | ||
signature: NullableSignature; | ||
}); |
@@ -10,2 +10,3 @@ import type { BaseHttpRequest } from './core/BaseHttpRequest'; | ||
import { OrderService } from './services/OrderService'; | ||
import { ProjectService } from './services/ProjectService'; | ||
import { TransferService } from './services/TransferService'; | ||
@@ -21,2 +22,3 @@ type HttpRequestConstructor = new (config: OpenAPIConfig) => BaseHttpRequest; | ||
readonly order: OrderService; | ||
readonly project: ProjectService; | ||
readonly transfer: TransferService; | ||
@@ -23,0 +25,0 @@ readonly request: BaseHttpRequest; |
@@ -12,2 +12,3 @@ "use strict"; | ||
const OrderService_1 = require("./services/OrderService"); | ||
const ProjectService_1 = require("./services/ProjectService"); | ||
const TransferService_1 = require("./services/TransferService"); | ||
@@ -34,2 +35,3 @@ class NftApi { | ||
this.order = new OrderService_1.OrderService(this.request); | ||
this.project = new ProjectService_1.ProjectService(this.request); | ||
this.transfer = new TransferService_1.TransferService(this.request); | ||
@@ -36,0 +38,0 @@ } |
{ | ||
"name": "@alembic/nft-api-sdk", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "SDK to use alembic NFT API", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
165972
267
4729