@rarible/ethereum-api-client
Advanced tools
Comparing version 0.1.18 to 0.1.19
@@ -0,6 +1,6 @@ | ||
export * from './AuctionActivityControllerApi'; | ||
export * from './AuctionControllerApi'; | ||
export * from './Erc20BalanceControllerApi'; | ||
export * from './BalanceControllerApi'; | ||
export * from './Erc20TokenControllerApi'; | ||
export * from './GatewayControllerApi'; | ||
export * from './LockControllerApi'; | ||
export * from './NftActivityControllerApi'; | ||
@@ -7,0 +7,0 @@ export * from './NftCollectionControllerApi'; |
@@ -13,7 +13,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./AuctionActivityControllerApi"), exports); | ||
__exportStar(require("./AuctionControllerApi"), exports); | ||
__exportStar(require("./Erc20BalanceControllerApi"), exports); | ||
__exportStar(require("./BalanceControllerApi"), exports); | ||
__exportStar(require("./Erc20TokenControllerApi"), exports); | ||
__exportStar(require("./GatewayControllerApi"), exports); | ||
__exportStar(require("./LockControllerApi"), exports); | ||
__exportStar(require("./NftActivityControllerApi"), exports); | ||
@@ -20,0 +20,0 @@ __exportStar(require("./NftCollectionControllerApi"), exports); |
@@ -21,2 +21,5 @@ /** | ||
} | ||
export interface ResetNftCollectionMetaByIdRequest { | ||
collection: string; | ||
} | ||
export interface SearchNftAllCollectionsRequest { | ||
@@ -52,2 +55,10 @@ continuation?: string; | ||
/** | ||
* Deletes the NFT collection meta by identifier | ||
*/ | ||
resetNftCollectionMetaByIdRaw(requestParameters: ResetNftCollectionMetaByIdRequest): Promise<ResetNftCollectionMetaByIdResponse>; | ||
/** | ||
* Deletes the NFT collection meta by identifier | ||
*/ | ||
resetNftCollectionMetaById(requestParameters: ResetNftCollectionMetaByIdRequest): Promise<void>; | ||
/** | ||
* Returns all NFT collections | ||
@@ -99,2 +110,14 @@ */ | ||
export declare type GetNftCollectionByIdResponse = GetNftCollectionById200 | GetNftCollectionById404 | GetNftCollectionById400 | GetNftCollectionById500; | ||
export declare type ResetNftCollectionMetaById200 = { | ||
status: 200; | ||
}; | ||
export declare type ResetNftCollectionMetaById400 = { | ||
status: 400; | ||
value: EthereumApiErrorBadRequest; | ||
}; | ||
export declare type ResetNftCollectionMetaById500 = { | ||
status: 500; | ||
value: EthereumApiErrorServerError; | ||
}; | ||
export declare type ResetNftCollectionMetaByIdResponse = ResetNftCollectionMetaById200 | ResetNftCollectionMetaById400 | ResetNftCollectionMetaById500; | ||
export declare type SearchNftAllCollections200 = { | ||
@@ -101,0 +124,0 @@ status: 200; |
@@ -251,2 +251,65 @@ "use strict"; | ||
/** | ||
* Deletes the NFT collection meta by identifier | ||
*/ | ||
NftCollectionControllerApi.prototype.resetNftCollectionMetaByIdRaw = function (requestParameters) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var queryParameters, headerParameters, response; | ||
var _a, _b; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
if (requestParameters.collection === null || requestParameters.collection === undefined) { | ||
throw new runtime.RequiredError('collection', 'Required parameter requestParameters.collection was null or undefined when calling resetNftCollectionMetaById.'); | ||
} | ||
queryParameters = {}; | ||
headerParameters = {}; | ||
return [4 /*yield*/, this.request({ | ||
path: "/v0.1/nft/collections/{collection}/resetMeta".replace("{" + "collection" + "}", encodeURIComponent(String(requestParameters.collection))), | ||
method: 'DELETE', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
})]; | ||
case 1: | ||
response = _c.sent(); | ||
if (response.status === 200) { | ||
return [2 /*return*/, { | ||
status: 200, | ||
}]; | ||
} | ||
if (!(response.status === 400)) return [3 /*break*/, 3]; | ||
_a = { | ||
status: 400 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 2: return [2 /*return*/, (_a.value = _c.sent(), | ||
_a)]; | ||
case 3: | ||
if (!(response.status === 500)) return [3 /*break*/, 5]; | ||
_b = { | ||
status: 500 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 4: return [2 /*return*/, (_b.value = _c.sent(), | ||
_b)]; | ||
case 5: throw response; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Deletes the NFT collection meta by identifier | ||
*/ | ||
NftCollectionControllerApi.prototype.resetNftCollectionMetaById = function (requestParameters) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.resetNftCollectionMetaByIdRaw(requestParameters)]; | ||
case 1: | ||
_a.sent(); | ||
return [2 /*return*/]; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Returns all NFT collections | ||
@@ -253,0 +316,0 @@ */ |
@@ -13,3 +13,3 @@ /** | ||
import * as runtime from '../runtime'; | ||
import { BurnLazyNftForm, EthereumApiErrorBadRequest, EthereumApiErrorEntityNotFound, EthereumApiErrorServerError, LazyNft, NftItem, NftItemMeta, NftItemRoyaltyList, NftItems } from '../models'; | ||
import { BurnLazyNftForm, EthereumApiErrorBadRequest, EthereumApiErrorEntityNotFound, EthereumApiErrorServerError, LazyNft, NftItem, NftItemIds, NftItemMeta, NftItemRoyaltyList, NftItems } from '../models'; | ||
export interface DeleteLazyMintNftAssetRequest { | ||
@@ -46,2 +46,5 @@ itemId: string; | ||
} | ||
export interface GetNftItemsByIdsRequest { | ||
nftItemIds: NftItemIds; | ||
} | ||
export interface GetNftItemsByOwnerRequest { | ||
@@ -87,7 +90,7 @@ owner: string; | ||
/** | ||
* Returns the NFT item meta by identifier | ||
* Deprecated and will be removed. Ethereum Protocol API will not be responsible for loading NFT metadata. Please migrate to Rarible Multichain Protocol (https://docs.rarible.org/) and especially this endpoint - https://api.rarible.org/v0.1/doc#operation/getItemById. | ||
*/ | ||
getNftItemMetaByIdRaw(requestParameters: GetNftItemMetaByIdRequest): Promise<GetNftItemMetaByIdResponse>; | ||
/** | ||
* Returns the NFT item meta by identifier | ||
* Deprecated and will be removed. Ethereum Protocol API will not be responsible for loading NFT metadata. Please migrate to Rarible Multichain Protocol (https://docs.rarible.org/) and especially this endpoint - https://api.rarible.org/v0.1/doc#operation/getItemById. | ||
*/ | ||
@@ -120,2 +123,10 @@ getNftItemMetaById(requestParameters: GetNftItemMetaByIdRequest): Promise<NftItemMeta>; | ||
/** | ||
* Returns the NFT item by identifier | ||
*/ | ||
getNftItemsByIdsRaw(requestParameters: GetNftItemsByIdsRequest): Promise<GetNftItemsByIdsResponse>; | ||
/** | ||
* Returns the NFT item by identifier | ||
*/ | ||
getNftItemsByIds(requestParameters: GetNftItemsByIdsRequest): Promise<Array<NftItem>>; | ||
/** | ||
* Returns the NFT item by owner | ||
@@ -199,2 +210,6 @@ */ | ||
}; | ||
export declare type GetNftItemMetaById404 = { | ||
status: 404; | ||
value: EthereumApiErrorEntityNotFound; | ||
}; | ||
export declare type GetNftItemMetaById500 = { | ||
@@ -204,3 +219,3 @@ status: 500; | ||
}; | ||
export declare type GetNftItemMetaByIdResponse = GetNftItemMetaById200 | GetNftItemMetaById400 | GetNftItemMetaById500; | ||
export declare type GetNftItemMetaByIdResponse = GetNftItemMetaById200 | GetNftItemMetaById400 | GetNftItemMetaById404 | GetNftItemMetaById500; | ||
export declare type GetNftItemRoyaltyById200 = { | ||
@@ -245,2 +260,15 @@ status: 200; | ||
export declare type GetNftItemsByCreatorResponse = GetNftItemsByCreator200 | GetNftItemsByCreator400 | GetNftItemsByCreator500; | ||
export declare type GetNftItemsByIds200 = { | ||
status: 200; | ||
value: Array<NftItem>; | ||
}; | ||
export declare type GetNftItemsByIds400 = { | ||
status: 400; | ||
value: EthereumApiErrorBadRequest; | ||
}; | ||
export declare type GetNftItemsByIds500 = { | ||
status: 500; | ||
value: EthereumApiErrorServerError; | ||
}; | ||
export declare type GetNftItemsByIdsResponse = GetNftItemsByIds200 | GetNftItemsByIds400 | GetNftItemsByIds500; | ||
export declare type GetNftItemsByOwner200 = { | ||
@@ -247,0 +275,0 @@ status: 200; |
@@ -333,3 +333,3 @@ "use strict"; | ||
/** | ||
* Returns the NFT item meta by identifier | ||
* Deprecated and will be removed. Ethereum Protocol API will not be responsible for loading NFT metadata. Please migrate to Rarible Multichain Protocol (https://docs.rarible.org/) and especially this endpoint - https://api.rarible.org/v0.1/doc#operation/getItemById. | ||
*/ | ||
@@ -339,5 +339,5 @@ NftItemControllerApi.prototype.getNftItemMetaByIdRaw = function (requestParameters) { | ||
var queryParameters, headerParameters, response; | ||
var _a, _b, _c; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
var _a, _b, _c, _d; | ||
return __generator(this, function (_e) { | ||
switch (_e.label) { | ||
case 0: | ||
@@ -356,3 +356,3 @@ if (requestParameters.itemId === null || requestParameters.itemId === undefined) { | ||
case 1: | ||
response = _d.sent(); | ||
response = _e.sent(); | ||
if (!(response.status === 200)) return [3 /*break*/, 3]; | ||
@@ -363,3 +363,3 @@ _a = { | ||
return [4 /*yield*/, response.json()]; | ||
case 2: return [2 /*return*/, (_a.value = _d.sent(), | ||
case 2: return [2 /*return*/, (_a.value = _e.sent(), | ||
_a)]; | ||
@@ -372,13 +372,21 @@ case 3: | ||
return [4 /*yield*/, response.json()]; | ||
case 4: return [2 /*return*/, (_b.value = _d.sent(), | ||
case 4: return [2 /*return*/, (_b.value = _e.sent(), | ||
_b)]; | ||
case 5: | ||
if (!(response.status === 500)) return [3 /*break*/, 7]; | ||
if (!(response.status === 404)) return [3 /*break*/, 7]; | ||
_c = { | ||
status: 404 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 6: return [2 /*return*/, (_c.value = _e.sent(), | ||
_c)]; | ||
case 7: | ||
if (!(response.status === 500)) return [3 /*break*/, 9]; | ||
_d = { | ||
status: 500 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 6: return [2 /*return*/, (_c.value = _d.sent(), | ||
_c)]; | ||
case 7: throw response; | ||
case 8: return [2 /*return*/, (_d.value = _e.sent(), | ||
_d)]; | ||
case 9: throw response; | ||
} | ||
@@ -389,3 +397,3 @@ }); | ||
/** | ||
* Returns the NFT item meta by identifier | ||
* Deprecated and will be removed. Ethereum Protocol API will not be responsible for loading NFT metadata. Please migrate to Rarible Multichain Protocol (https://docs.rarible.org/) and especially this endpoint - https://api.rarible.org/v0.1/doc#operation/getItemById. | ||
*/ | ||
@@ -640,2 +648,74 @@ NftItemControllerApi.prototype.getNftItemMetaById = function (requestParameters) { | ||
/** | ||
* Returns the NFT item by identifier | ||
*/ | ||
NftItemControllerApi.prototype.getNftItemsByIdsRaw = function (requestParameters) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var queryParameters, headerParameters, response; | ||
var _a, _b, _c; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
case 0: | ||
if (requestParameters.nftItemIds === null || requestParameters.nftItemIds === undefined) { | ||
throw new runtime.RequiredError('nftItemIds', 'Required parameter requestParameters.nftItemIds was null or undefined when calling getNftItemsByIds.'); | ||
} | ||
queryParameters = {}; | ||
headerParameters = {}; | ||
headerParameters['Content-Type'] = 'application/json'; | ||
return [4 /*yield*/, this.request({ | ||
path: "/v0.1/nft/items/byIds", | ||
method: 'POST', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
body: requestParameters.nftItemIds, | ||
})]; | ||
case 1: | ||
response = _d.sent(); | ||
if (!(response.status === 200)) return [3 /*break*/, 3]; | ||
_a = { | ||
status: 200 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 2: return [2 /*return*/, (_a.value = _d.sent(), | ||
_a)]; | ||
case 3: | ||
if (!(response.status === 400)) return [3 /*break*/, 5]; | ||
_b = { | ||
status: 400 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 4: return [2 /*return*/, (_b.value = _d.sent(), | ||
_b)]; | ||
case 5: | ||
if (!(response.status === 500)) return [3 /*break*/, 7]; | ||
_c = { | ||
status: 500 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 6: return [2 /*return*/, (_c.value = _d.sent(), | ||
_c)]; | ||
case 7: throw response; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Returns the NFT item by identifier | ||
*/ | ||
NftItemControllerApi.prototype.getNftItemsByIds = function (requestParameters) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var response; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.getNftItemsByIdsRaw(requestParameters)]; | ||
case 1: | ||
response = _a.sent(); | ||
if (response.status === 200) { | ||
return [2 /*return*/, response.value]; | ||
} | ||
throw response; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
* Returns the NFT item by owner | ||
@@ -642,0 +722,0 @@ */ |
@@ -17,5 +17,7 @@ /** | ||
size?: number; | ||
showDeleted?: boolean; | ||
} | ||
export interface GetNftOwnershipByIdRequest { | ||
ownershipId: string; | ||
showDeleted?: boolean; | ||
} | ||
@@ -28,2 +30,7 @@ export interface GetNftOwnershipsByItemRequest { | ||
} | ||
export interface GetNftOwnershipsByOwnerRequest { | ||
owner: string; | ||
continuation?: string; | ||
size?: number; | ||
} | ||
/** | ||
@@ -51,2 +58,8 @@ * no description | ||
getNftOwnershipsByItem(requestParameters: GetNftOwnershipsByItemRequest): Promise<NftOwnerships>; | ||
/** | ||
*/ | ||
getNftOwnershipsByOwnerRaw(requestParameters: GetNftOwnershipsByOwnerRequest): Promise<GetNftOwnershipsByOwnerResponse>; | ||
/** | ||
*/ | ||
getNftOwnershipsByOwner(requestParameters: GetNftOwnershipsByOwnerRequest): Promise<NftOwnerships>; | ||
} | ||
@@ -96,1 +109,14 @@ export declare type GetNftAllOwnerships200 = { | ||
export declare type GetNftOwnershipsByItemResponse = GetNftOwnershipsByItem200 | GetNftOwnershipsByItem400 | GetNftOwnershipsByItem500; | ||
export declare type GetNftOwnershipsByOwner200 = { | ||
status: 200; | ||
value: NftOwnerships; | ||
}; | ||
export declare type GetNftOwnershipsByOwner400 = { | ||
status: 400; | ||
value: EthereumApiErrorBadRequest; | ||
}; | ||
export declare type GetNftOwnershipsByOwner500 = { | ||
status: 500; | ||
value: EthereumApiErrorServerError; | ||
}; | ||
export declare type GetNftOwnershipsByOwnerResponse = GetNftOwnershipsByOwner200 | GetNftOwnershipsByOwner400 | GetNftOwnershipsByOwner500; |
@@ -112,2 +112,5 @@ "use strict"; | ||
} | ||
if (requestParameters.showDeleted !== undefined) { | ||
queryParameters['showDeleted'] = requestParameters.showDeleted; | ||
} | ||
headerParameters = {}; | ||
@@ -181,2 +184,5 @@ return [4 /*yield*/, this.request({ | ||
queryParameters = {}; | ||
if (requestParameters.showDeleted !== undefined) { | ||
queryParameters['showDeleted'] = requestParameters.showDeleted; | ||
} | ||
headerParameters = {}; | ||
@@ -328,4 +334,81 @@ return [4 /*yield*/, this.request({ | ||
}; | ||
/** | ||
*/ | ||
NftOwnershipControllerApi.prototype.getNftOwnershipsByOwnerRaw = function (requestParameters) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var queryParameters, headerParameters, response; | ||
var _a, _b, _c; | ||
return __generator(this, function (_d) { | ||
switch (_d.label) { | ||
case 0: | ||
if (requestParameters.owner === null || requestParameters.owner === undefined) { | ||
throw new runtime.RequiredError('owner', 'Required parameter requestParameters.owner was null or undefined when calling getNftOwnershipsByOwner.'); | ||
} | ||
queryParameters = {}; | ||
if (requestParameters.owner !== undefined) { | ||
queryParameters['owner'] = requestParameters.owner; | ||
} | ||
if (requestParameters.continuation !== undefined) { | ||
queryParameters['continuation'] = requestParameters.continuation; | ||
} | ||
if (requestParameters.size !== undefined) { | ||
queryParameters['size'] = requestParameters.size; | ||
} | ||
headerParameters = {}; | ||
return [4 /*yield*/, this.request({ | ||
path: "/v0.1/nft/ownerships/byOwner", | ||
method: 'GET', | ||
headers: headerParameters, | ||
query: queryParameters, | ||
})]; | ||
case 1: | ||
response = _d.sent(); | ||
if (!(response.status === 200)) return [3 /*break*/, 3]; | ||
_a = { | ||
status: 200 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 2: return [2 /*return*/, (_a.value = _d.sent(), | ||
_a)]; | ||
case 3: | ||
if (!(response.status === 400)) return [3 /*break*/, 5]; | ||
_b = { | ||
status: 400 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 4: return [2 /*return*/, (_b.value = _d.sent(), | ||
_b)]; | ||
case 5: | ||
if (!(response.status === 500)) return [3 /*break*/, 7]; | ||
_c = { | ||
status: 500 | ||
}; | ||
return [4 /*yield*/, response.json()]; | ||
case 6: return [2 /*return*/, (_c.value = _d.sent(), | ||
_c)]; | ||
case 7: throw response; | ||
} | ||
}); | ||
}); | ||
}; | ||
/** | ||
*/ | ||
NftOwnershipControllerApi.prototype.getNftOwnershipsByOwner = function (requestParameters) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
var response; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, this.getNftOwnershipsByOwnerRaw(requestParameters)]; | ||
case 1: | ||
response = _a.sent(); | ||
if (response.status === 200) { | ||
return [2 /*return*/, response.value]; | ||
} | ||
throw response; | ||
} | ||
}); | ||
}); | ||
}; | ||
return NftOwnershipControllerApi; | ||
}(runtime.BaseAPI)); | ||
exports.NftOwnershipControllerApi = NftOwnershipControllerApi; |
@@ -18,3 +18,3 @@ /** | ||
status: Array<OrderBidStatus>; | ||
maker?: string; | ||
maker?: Array<string>; | ||
origin?: string; | ||
@@ -21,0 +21,0 @@ platform?: Platform; |
@@ -124,3 +124,3 @@ "use strict"; | ||
} | ||
if (requestParameters.maker !== undefined) { | ||
if (requestParameters.maker) { | ||
queryParameters['maker'] = requestParameters.maker; | ||
@@ -127,0 +127,0 @@ } |
@@ -29,3 +29,3 @@ /** | ||
tokenId: string; | ||
maker?: string; | ||
maker?: Array<string>; | ||
origin?: string; | ||
@@ -40,3 +40,3 @@ platform?: Platform; | ||
status: Array<OrderStatus>; | ||
maker?: string; | ||
maker?: Array<string>; | ||
origin?: string; | ||
@@ -43,0 +43,0 @@ platform?: Platform; |
@@ -36,11 +36,15 @@ /** | ||
/** | ||
* This method should not be used and will be removed soon | ||
*/ | ||
encodeOrderAssetTypeRaw(requestParameters: EncodeOrderAssetTypeRequest): Promise<EncodeOrderAssetTypeResponse>; | ||
/** | ||
* This method should not be used and will be removed soon | ||
*/ | ||
encodeOrderAssetType(requestParameters: EncodeOrderAssetTypeRequest): Promise<EncodedOrderData>; | ||
/** | ||
* This method should not be used and will be removed soon | ||
*/ | ||
encodeOrderDataRaw(requestParameters: EncodeOrderDataRequest): Promise<EncodeOrderDataResponse>; | ||
/** | ||
* This method should not be used and will be removed soon | ||
*/ | ||
@@ -47,0 +51,0 @@ encodeOrderData(requestParameters: EncodeOrderDataRequest): Promise<EncodedOrderData>; |
@@ -169,2 +169,3 @@ "use strict"; | ||
/** | ||
* This method should not be used and will be removed soon | ||
*/ | ||
@@ -222,2 +223,3 @@ OrderEncodeControllerApi.prototype.encodeOrderAssetTypeRaw = function (requestParameters) { | ||
/** | ||
* This method should not be used and will be removed soon | ||
*/ | ||
@@ -241,2 +243,3 @@ OrderEncodeControllerApi.prototype.encodeOrderAssetType = function (requestParameters) { | ||
/** | ||
* This method should not be used and will be removed soon | ||
*/ | ||
@@ -294,2 +297,3 @@ OrderEncodeControllerApi.prototype.encodeOrderDataRaw = function (requestParameters) { | ||
/** | ||
* This method should not be used and will be removed soon | ||
*/ | ||
@@ -296,0 +300,0 @@ OrderEncodeControllerApi.prototype.encodeOrderData = function (requestParameters) { |
import { Address } from "@rarible/types"; | ||
import { Asset } from "./Asset"; | ||
import { AssetType } from "./AssetType"; | ||
import { Auction } from "./Auction"; | ||
import { AuctionBid } from "./AuctionBid"; | ||
@@ -130,3 +131,3 @@ import { BigNumber } from "@rarible/types"; | ||
} | ||
export declare type AuctionActivity = AuctionActivityOpen | AuctionActivityBid | AuctionActivityFinish | AuctionActivityCancel; | ||
export declare type AuctionActivity = AuctionActivityOpen | AuctionActivityBid | AuctionActivityFinish | AuctionActivityCancel | AuctionActivityStart | AuctionActivityEnd; | ||
export declare type AuctionActivityOpen = { | ||
@@ -137,10 +138,3 @@ "@type": "auction_open"; | ||
source: AuctionActivitySource; | ||
seller: Address; | ||
sell: Asset; | ||
buy: AssetType; | ||
startTime?: string; | ||
endTime?: string; | ||
duration?: BigNumber; | ||
minimalStep: BigNumber; | ||
minimalPrice: BigNumber; | ||
auction: Auction; | ||
transactionHash: Word; | ||
@@ -150,3 +144,2 @@ blockHash: Word; | ||
logIndex: number; | ||
hash: Word; | ||
}; | ||
@@ -158,3 +151,3 @@ export declare type AuctionActivityBid = { | ||
source: AuctionActivitySource; | ||
hash: Word; | ||
auction: Auction; | ||
bid: AuctionBid; | ||
@@ -171,3 +164,3 @@ transactionHash: Word; | ||
source: AuctionActivitySource; | ||
hash: Word; | ||
auction: Auction; | ||
transactionHash: Word; | ||
@@ -183,3 +176,3 @@ blockHash: Word; | ||
source: AuctionActivitySource; | ||
hash: Word; | ||
auction: Auction; | ||
transactionHash: Word; | ||
@@ -190,1 +183,15 @@ blockHash: Word; | ||
}; | ||
export declare type AuctionActivityStart = { | ||
"@type": "auction_start"; | ||
id: string; | ||
date: string; | ||
source: AuctionActivitySource; | ||
auction: Auction; | ||
}; | ||
export declare type AuctionActivityEnd = { | ||
"@type": "auction_end"; | ||
id: string; | ||
date: string; | ||
source: AuctionActivitySource; | ||
auction: Auction; | ||
}; |
@@ -13,2 +13,3 @@ import { Address } from "@rarible/types"; | ||
type: "RARIBLE_AUCTION_V1"; | ||
contract: Address; | ||
seller: Address; | ||
@@ -26,2 +27,3 @@ sell: Asset; | ||
status: AuctionStatus; | ||
ongoing: boolean; | ||
hash: Word; | ||
@@ -28,0 +30,0 @@ auctionId: BigNumber; |
@@ -9,3 +9,9 @@ import { Address } from "@rarible/types"; | ||
amount: BigNumber; | ||
date: string; | ||
status: AuctionBidStatus; | ||
data: RaribleAuctionV1BidDataV1; | ||
}; | ||
export declare enum AuctionBidStatus { | ||
ACTIVE = "ACTIVE", | ||
HISTORICAL = "HISTORICAL" | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AuctionBidStatus = void 0; | ||
var AuctionBidStatus; | ||
(function (AuctionBidStatus) { | ||
AuctionBidStatus["ACTIVE"] = "ACTIVE"; | ||
AuctionBidStatus["HISTORICAL"] = "HISTORICAL"; | ||
})(AuctionBidStatus = exports.AuctionBidStatus || (exports.AuctionBidStatus = {})); |
@@ -13,2 +13,3 @@ import { Auction } from "./Auction"; | ||
auctionId: string; | ||
auction: Auction; | ||
}; |
@@ -7,2 +7,4 @@ import { Address } from "@rarible/types"; | ||
balance: BigNumber; | ||
createdAt?: string; | ||
lastUpdatedAt?: string; | ||
}; |
@@ -7,3 +7,5 @@ import { Erc20Balance } from "./Erc20Balance"; | ||
balanceId: string; | ||
createdAt?: string; | ||
lastUpdatedAt?: string; | ||
balance: Erc20Balance; | ||
}; |
@@ -8,2 +8,4 @@ import { Address } from "@rarible/types"; | ||
decimalBalance: BigNumber; | ||
createdAt?: string; | ||
lastUpdatedAt?: string; | ||
}; |
@@ -5,3 +5,2 @@ export * from "./NftSignature"; | ||
export * from "./AuctionEvent"; | ||
export * from "./SignatureForm"; | ||
export * from "./LogEvent"; | ||
@@ -14,3 +13,2 @@ export * from "./BurnLazyNftForm"; | ||
export * from "./EthereumOrderDataApiError"; | ||
export * from "./NftItemFilter"; | ||
export * from "./NftOrderItem"; | ||
@@ -30,2 +28,3 @@ export * from "./OrderFormAsset"; | ||
export * from "./OrderExchangeHistory"; | ||
export * from "./EthBalance"; | ||
export * from "./OrderData"; | ||
@@ -41,3 +40,2 @@ export * from "./NftItemMeta"; | ||
export * from "./ObjectNode"; | ||
export * from "./Lock"; | ||
export * from "./OrderActivityMatchSide"; | ||
@@ -58,2 +56,3 @@ export * from "./NftDeletedItem"; | ||
export * from "./NftOrderDeletedItem"; | ||
export * from "./AuctionActivityFilter"; | ||
export * from "./NftOrderOwnershipsPage"; | ||
@@ -69,7 +68,5 @@ export * from "./NftMedia"; | ||
export * from "./Order"; | ||
export * from "./OrderFilter"; | ||
export * from "./CreateTransactionRequest"; | ||
export * from "./NftOwnershipEvent"; | ||
export * from "./AuctionBidsPagination"; | ||
export * from "./UnlockableApiError"; | ||
export * from "./NftCollectionEvent"; | ||
@@ -89,2 +86,3 @@ export * from "./PrepareOrderTxResponse"; | ||
export * from "./Erc20BalanceEvent"; | ||
export * from "./AuctionActivities"; | ||
export * from "./AssetType"; | ||
@@ -95,4 +93,2 @@ export * from "./NftOwnership"; | ||
export * from "./Erc20Balance"; | ||
export * from "./NftSort"; | ||
export * from "./LockForm"; | ||
export * from "./AuctionsPagination"; | ||
@@ -104,2 +100,3 @@ export * from "./ActivityFilterAllType"; | ||
export * from "./AuctionStatus"; | ||
export * from "./NftItemIds"; | ||
export * from "./PrepareOrderTxForm"; | ||
@@ -111,7 +108,5 @@ export * from "./Erc20IndexerApiError"; | ||
export * from "./NftItemRoyaltyList"; | ||
export * from "./NftOwnershipFilter"; | ||
export * from "./NftMediaMeta"; | ||
export * from "./NftOrderApiError"; | ||
export * from "./OrderBidStatus"; | ||
export * from "./UnlockableEvent"; | ||
export * from "./ActivityFilterByUserType"; | ||
@@ -121,2 +116,3 @@ export * from "./GatewayApiError"; | ||
export * from "./NftCollection"; | ||
export * from "./NftCollectionMeta"; | ||
export * from "./OrderBid"; | ||
@@ -123,0 +119,0 @@ export { Word } from "@rarible/types"; |
@@ -17,3 +17,2 @@ "use strict"; | ||
__exportStar(require("./AuctionEvent"), exports); | ||
__exportStar(require("./SignatureForm"), exports); | ||
__exportStar(require("./LogEvent"), exports); | ||
@@ -26,3 +25,2 @@ __exportStar(require("./BurnLazyNftForm"), exports); | ||
__exportStar(require("./EthereumOrderDataApiError"), exports); | ||
__exportStar(require("./NftItemFilter"), exports); | ||
__exportStar(require("./NftOrderItem"), exports); | ||
@@ -42,2 +40,3 @@ __exportStar(require("./OrderFormAsset"), exports); | ||
__exportStar(require("./OrderExchangeHistory"), exports); | ||
__exportStar(require("./EthBalance"), exports); | ||
__exportStar(require("./OrderData"), exports); | ||
@@ -53,3 +52,2 @@ __exportStar(require("./NftItemMeta"), exports); | ||
__exportStar(require("./ObjectNode"), exports); | ||
__exportStar(require("./Lock"), exports); | ||
__exportStar(require("./OrderActivityMatchSide"), exports); | ||
@@ -70,2 +68,3 @@ __exportStar(require("./NftDeletedItem"), exports); | ||
__exportStar(require("./NftOrderDeletedItem"), exports); | ||
__exportStar(require("./AuctionActivityFilter"), exports); | ||
__exportStar(require("./NftOrderOwnershipsPage"), exports); | ||
@@ -81,7 +80,5 @@ __exportStar(require("./NftMedia"), exports); | ||
__exportStar(require("./Order"), exports); | ||
__exportStar(require("./OrderFilter"), exports); | ||
__exportStar(require("./CreateTransactionRequest"), exports); | ||
__exportStar(require("./NftOwnershipEvent"), exports); | ||
__exportStar(require("./AuctionBidsPagination"), exports); | ||
__exportStar(require("./UnlockableApiError"), exports); | ||
__exportStar(require("./NftCollectionEvent"), exports); | ||
@@ -101,2 +98,3 @@ __exportStar(require("./PrepareOrderTxResponse"), exports); | ||
__exportStar(require("./Erc20BalanceEvent"), exports); | ||
__exportStar(require("./AuctionActivities"), exports); | ||
__exportStar(require("./AssetType"), exports); | ||
@@ -107,4 +105,2 @@ __exportStar(require("./NftOwnership"), exports); | ||
__exportStar(require("./Erc20Balance"), exports); | ||
__exportStar(require("./NftSort"), exports); | ||
__exportStar(require("./LockForm"), exports); | ||
__exportStar(require("./AuctionsPagination"), exports); | ||
@@ -116,2 +112,3 @@ __exportStar(require("./ActivityFilterAllType"), exports); | ||
__exportStar(require("./AuctionStatus"), exports); | ||
__exportStar(require("./NftItemIds"), exports); | ||
__exportStar(require("./PrepareOrderTxForm"), exports); | ||
@@ -123,7 +120,5 @@ __exportStar(require("./Erc20IndexerApiError"), exports); | ||
__exportStar(require("./NftItemRoyaltyList"), exports); | ||
__exportStar(require("./NftOwnershipFilter"), exports); | ||
__exportStar(require("./NftMediaMeta"), exports); | ||
__exportStar(require("./NftOrderApiError"), exports); | ||
__exportStar(require("./OrderBidStatus"), exports); | ||
__exportStar(require("./UnlockableEvent"), exports); | ||
__exportStar(require("./ActivityFilterByUserType"), exports); | ||
@@ -133,2 +128,3 @@ __exportStar(require("./GatewayApiError"), exports); | ||
__exportStar(require("./NftCollection"), exports); | ||
__exportStar(require("./NftCollectionMeta"), exports); | ||
__exportStar(require("./OrderBid"), exports); |
import { Address } from "@rarible/types"; | ||
import { NftCollectionMeta } from "./NftCollectionMeta"; | ||
export declare type NftCollection = { | ||
@@ -11,2 +12,3 @@ id: Address; | ||
minters?: Array<Address>; | ||
meta?: NftCollectionMeta; | ||
}; | ||
@@ -13,0 +15,0 @@ export declare enum NftCollectionType { |
@@ -13,5 +13,6 @@ import { Address } from "@rarible/types"; | ||
lazySupply: BigNumber; | ||
owners: Array<Address>; | ||
owners?: Array<Address>; | ||
royalties: Array<Part>; | ||
date?: string; | ||
lastUpdatedAt?: string; | ||
mintedAt?: string; | ||
pending?: Array<ItemTransfer>; | ||
@@ -18,0 +19,0 @@ deleted?: boolean; |
@@ -15,3 +15,3 @@ import { Address } from "@rarible/types"; | ||
lazySupply: BigNumber; | ||
owners: Array<Address>; | ||
owners?: Array<Address>; | ||
royalties: Array<Part>; | ||
@@ -18,0 +18,0 @@ date: string; |
@@ -10,3 +10,3 @@ import { Address } from "@rarible/types"; | ||
owner: Address; | ||
creators: Array<Part>; | ||
creators?: Array<Part>; | ||
value: BigNumber; | ||
@@ -13,0 +13,0 @@ lazyValue: BigNumber; |
@@ -14,3 +14,4 @@ import { NftDeletedOwnership } from "./NftDeletedOwnership"; | ||
ownershipId: string; | ||
ownership: NftDeletedOwnership; | ||
ownership?: NftDeletedOwnership; | ||
deletedOwnership?: NftOwnership; | ||
}; |
export declare enum Platform { | ||
ALL = "ALL", | ||
RARIBLE = "RARIBLE", | ||
@@ -4,0 +3,0 @@ OPEN_SEA = "OPEN_SEA", |
@@ -6,3 +6,2 @@ "use strict"; | ||
(function (Platform) { | ||
Platform["ALL"] = "ALL"; | ||
Platform["RARIBLE"] = "RARIBLE"; | ||
@@ -9,0 +8,0 @@ Platform["OPEN_SEA"] = "OPEN_SEA"; |
{ | ||
"name": "@rarible/ethereum-api-client", | ||
"version": "0.1.18", | ||
"version": "0.1.19", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "axios", |
Sorry, the diff of this file is too big to display
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
664208
15060
0
272