@zoralabs/zdk-alpha
Advanced tools
Comparing version 0.0.37 to 0.0.38
@@ -1,2 +0,2 @@ | ||
import { getSdk, Chain, Network, NetworkInput, TokenInput, TokensQueryInput, TokensQueryFilter, CollectionsQueryInput, CollectionSortKeySortInput, TokenSortInput, AggregateAttributesQueryVariables, OwnersByCountQueryVariables, SalesVolumeQueryVariables, EventsQueryInput, EventsQueryFilter, EventSortKeySortInput, MarketSortKeySortInput, MarketsQueryFilter, MarketsQueryInput, MintsQueryFilter, MintsQueryInput, MintSortKeySortInput, FloorPriceQueryVariables, NftCountQueryVariables, FullTextSearchQueryVariables, TokenQueryVariables, SalesQueryInput, SaleSortKeySortInput, SalesQueryFilter, OwnerCountQueryVariables } from './queries/queries-sdk'; | ||
import { getSdk, Chain, Network, NetworkInput, TokenInput, TokensQueryInput, TokensQueryFilter, CollectionsQueryInput, CollectionSortKeySortInput, TokenSortInput, AggregateAttributesQueryVariables, OwnersByCountQueryVariables, SalesVolumeQueryVariables, EventsQueryInput, EventsQueryFilter, EventSortKeySortInput, MarketSortKeySortInput, MarketsQueryFilter, MarketsQueryInput, MintsQueryFilter, MintsQueryInput, MintSortKeySortInput, FloorPriceQueryVariables, NftCountQueryVariables, FullTextSearchQueryVariables, SalesQueryInput, SaleSortKeySortInput, SalesQueryFilter, OwnerCountQueryVariables } from './queries/queries-sdk'; | ||
export { Chain as ZDKChain, Network as ZDKNetwork }; | ||
@@ -12,3 +12,3 @@ export declare type OverrideNetworksOption = NetworkInput[]; | ||
}; | ||
declare type CollectionsQueryArgs = { | ||
export declare type CollectionsQueryArgs = { | ||
where: CollectionsQueryInput; | ||
@@ -18,3 +18,3 @@ includeFullDetails?: boolean; | ||
} & SharedQueryParams; | ||
declare type TokensQueryArgs = { | ||
export declare type TokensQueryArgs = { | ||
where: TokensQueryInput; | ||
@@ -26,3 +26,3 @@ filter?: TokensQueryFilter; | ||
} & SharedQueryParams; | ||
declare type EventsQueryArgs = { | ||
export declare type EventsQueryArgs = { | ||
where: EventsQueryInput; | ||
@@ -32,3 +32,3 @@ sort?: EventSortKeySortInput; | ||
} & SharedQueryParams; | ||
declare type MarketQueryArgs = { | ||
export declare type MarketQueryArgs = { | ||
where: MarketsQueryInput; | ||
@@ -39,9 +39,10 @@ sort: MarketSortKeySortInput; | ||
} & SharedQueryParams; | ||
declare type MintsQueryArgs = { | ||
export declare type MintsQueryArgs = { | ||
where: MintsQueryInput; | ||
sort: MintSortKeySortInput; | ||
filter: MintsQueryFilter; | ||
includeFullDetails: boolean; | ||
sort?: MintSortKeySortInput; | ||
filter?: MintsQueryFilter; | ||
includeFullDetails?: boolean; | ||
includeMarkets?: boolean; | ||
} & SharedQueryParams; | ||
declare type SalesQueryArgs = { | ||
export declare type SalesQueryArgs = { | ||
where: SalesQueryInput; | ||
@@ -52,6 +53,11 @@ sort: SaleSortKeySortInput; | ||
} & SharedQueryParams; | ||
declare type CollectionStatsAggregateQuery = { | ||
export declare type CollectionStatsAggregateQuery = { | ||
collectionAddress: string; | ||
network: NetworkInput; | ||
}; | ||
export declare type TokenQueryArgs = { | ||
network?: NetworkInput; | ||
token: TokenInput; | ||
includeFullDetails?: boolean; | ||
}; | ||
export declare type CollectionQueryArgs = { | ||
@@ -84,6 +90,6 @@ address: string; | ||
tokens: ({ where, filter, pagination, networks, sort, includeFullDetails, includeSalesHistory, }: TokensQueryArgs) => Promise<import("./queries/queries-sdk").TokensQuery>; | ||
token: ({ token, network, includeFullDetails, }: OptionalNetwork<TokenQueryVariables>) => Promise<import("./queries/queries-sdk").TokenQuery>; | ||
token: ({ token, network, includeFullDetails, }: OptionalNetwork<TokenQueryArgs>) => Promise<import("./queries/queries-sdk").TokenQuery>; | ||
events: ({ networks, filter, pagination, sort, where, }: EventsQueryArgs) => Promise<import("./queries/queries-sdk").EventsQuery>; | ||
markets: ({ networks, filter, pagination, sort, where, includeFullDetails, }: MarketQueryArgs) => Promise<import("./queries/queries-sdk").MarketsQuery>; | ||
mints: ({ networks, filter, pagination, sort, where, includeFullDetails, }: MintsQueryArgs) => Promise<import("./queries/queries-sdk").MintsQuery>; | ||
mints: ({ networks, filter, pagination, sort, where, includeFullDetails, includeMarkets, }: MintsQueryArgs) => Promise<import("./queries/queries-sdk").MintsQuery>; | ||
sales: ({ where, pagination, networks, sort, filter, includeFullDetails, }: SalesQueryArgs) => Promise<import("./queries/queries-sdk").SalesQuery>; | ||
@@ -90,0 +96,0 @@ collections: ({ where, pagination, networks, sort, includeFullDetails, }: CollectionsQueryArgs) => Promise<import("./queries/queries-sdk").CollectionsQuery>; |
@@ -40,3 +40,3 @@ "use strict"; | ||
}); | ||
this.token = async ({ token, network = this.defaultNetworks[0], includeFullDetails, }) => await this.sdk.token({ | ||
this.token = async ({ token, network = this.defaultNetworks[0], includeFullDetails = false, }) => await this.sdk.token({ | ||
token, | ||
@@ -67,3 +67,3 @@ network, | ||
}); | ||
this.mints = async ({ networks, filter, pagination, sort, where, includeFullDetails = false, }) => this.sdk.mints({ | ||
this.mints = async ({ networks, filter, pagination, sort, where, includeFullDetails = false, includeMarkets = false, }) => this.sdk.mints({ | ||
filter, | ||
@@ -78,2 +78,3 @@ where, | ||
includeFullDetails, | ||
includeMarkets, | ||
}); | ||
@@ -80,0 +81,0 @@ this.sales = async ({ where, pagination, networks, sort, filter, includeFullDetails = false, }) => this.sdk.sales({ |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TokenFullDetailsFragmentDoc = exports.TokensEventsInfoFragmentDoc = exports.EventInfoFragmentDoc = exports.V3AskEventPropertiesInfoFragmentDoc = exports.V2AuctionEventPropertiesInfoFragmentDoc = exports.V1MarketEventPropertiesInfoFragmentDoc = exports.TokensSalesInfoFragmentDoc = exports.SaleInfoFragmentDoc = exports.OwnerCountInfoFragmentDoc = exports.PageInfoDefaultFragmentDoc = exports.CollectionDetailsFragmentDoc = exports.CollectionInfoSearchResultFragmentDoc = exports.CollectionInfoFragmentDoc = exports.TokenDetailsFragmentDoc = exports.TokenInfoFragmentDoc = exports.FullMediaFragmentDoc = exports.MintDetailsFragmentDoc = exports.TokenContractInfoFragmentDoc = exports.MarketDetailsFragmentDoc = exports.MarketPropertiesFullFragmentDoc = exports.V1AskPropertiesFragmentDoc = exports.V1OfferPropertiesFragmentDoc = exports.V3AskPropertiesFragmentDoc = exports.V2AuctionMarketPropertiesFragmentDoc = exports.MarketInfoFragmentDoc = exports.NetworkInfoDetailsFragmentDoc = exports.PriceSummaryFragmentDoc = exports.TransactionDetailsFragmentDoc = exports.V3AskStatus = exports.V3AskEventType = exports.V2AuctionStatus = exports.V2AuctionEventType = exports.V1MarketEventType = exports.V1MarketEntityStatus = exports.TokenSortKey = exports.SortDirection = exports.SearchableEntity = exports.SaleType = exports.SaleSortKey = exports.Network = exports.MintSortKey = exports.MediaType = exports.MarketType = exports.MarketStatus = exports.MarketSortKey = exports.MarketCategory = exports.EventType = exports.EventSortKey = exports.CollectionSortKey = exports.Chain = void 0; | ||
exports.getSdk = exports.FullTextSearchDocument = exports.CollectionStatsAggregateDocument = exports.FloorPriceDocument = exports.NftCountDocument = exports.OwnerCountDocument = exports.SalesVolumeDocument = exports.OwnersByCountDocument = exports.AggregateAttributesDocument = exports.TokenDocument = exports.TokensDocument = exports.SalesDocument = exports.CollectionsDocument = exports.MintsDocument = exports.MarketsDocument = exports.EventsDocument = void 0; | ||
exports.TokensEventsInfoFragmentDoc = exports.EventInfoFragmentDoc = exports.V3AskEventPropertiesInfoFragmentDoc = exports.V2AuctionEventPropertiesInfoFragmentDoc = exports.V1MarketEventPropertiesInfoFragmentDoc = exports.TokensSalesInfoFragmentDoc = exports.SaleInfoFragmentDoc = exports.MarketsOnMintInfoFragmentDoc = exports.MarketDetailsFragmentDoc = exports.MarketPropertiesFullFragmentDoc = exports.V1AskPropertiesFragmentDoc = exports.V1OfferPropertiesFragmentDoc = exports.V3AskPropertiesFragmentDoc = exports.V2AuctionMarketPropertiesFragmentDoc = exports.MarketInfoFragmentDoc = exports.OwnerCountInfoFragmentDoc = exports.PageInfoDefaultFragmentDoc = exports.CollectionDetailsFragmentDoc = exports.CollectionInfoSearchResultFragmentDoc = exports.CollectionInfoFragmentDoc = exports.NetworkInfoDetailsFragmentDoc = exports.TokenDetailsFragmentDoc = exports.TokenInfoFragmentDoc = exports.FullMediaFragmentDoc = exports.MintDetailsFragmentDoc = exports.TransactionDetailsFragmentDoc = exports.PriceSummaryFragmentDoc = exports.TokenContractInfoFragmentDoc = exports.V3AskStatus = exports.V3AskEventType = exports.V2AuctionStatus = exports.V2AuctionEventType = exports.V1MarketEventType = exports.V1MarketEntityStatus = exports.TokenSortKey = exports.SortDirection = exports.SearchableEntity = exports.SaleType = exports.SaleSortKey = exports.Network = exports.MintSortKey = exports.MediaType = exports.MarketType = exports.MarketStatus = exports.MarketSortKey = exports.MarketCategory = exports.EventType = exports.EventSortKey = exports.CollectionSortKey = exports.Chain = void 0; | ||
exports.getSdk = exports.FullTextSearchDocument = exports.CollectionStatsAggregateDocument = exports.FloorPriceDocument = exports.NftCountDocument = exports.OwnerCountDocument = exports.SalesVolumeDocument = exports.OwnersByCountDocument = exports.AggregateAttributesDocument = exports.TokenDocument = exports.TokensDocument = exports.SalesDocument = exports.CollectionsDocument = exports.MintsDocument = exports.MarketsDocument = exports.EventsDocument = exports.TokenFullDetailsFragmentDoc = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -161,8 +161,10 @@ const graphql_tag_1 = (0, tslib_1.__importDefault)(require("graphql-tag")); | ||
})(V3AskStatus = exports.V3AskStatus || (exports.V3AskStatus = {})); | ||
exports.TransactionDetailsFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment TransactionDetails on TransactionInfo { | ||
blockNumber | ||
blockTimestamp | ||
transactionHash | ||
logIndex | ||
exports.TokenContractInfoFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment TokenContractInfo on TokenContract { | ||
name | ||
network | ||
description | ||
collectionAddress | ||
symbol | ||
chain | ||
} | ||
@@ -192,118 +194,10 @@ `; | ||
`; | ||
exports.NetworkInfoDetailsFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment NetworkInfoDetails on NetworkInfo { | ||
chain | ||
network | ||
exports.TransactionDetailsFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment TransactionDetails on TransactionInfo { | ||
blockNumber | ||
blockTimestamp | ||
transactionHash | ||
logIndex | ||
} | ||
`; | ||
exports.MarketInfoFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment MarketInfo on Market { | ||
collectionAddress | ||
marketAddress | ||
marketType | ||
transactionInfo { | ||
...TransactionDetails | ||
} | ||
price { | ||
...PriceSummary | ||
} | ||
status | ||
networkInfo { | ||
...NetworkInfoDetails | ||
} | ||
} | ||
${exports.TransactionDetailsFragmentDoc} | ||
${exports.PriceSummaryFragmentDoc} | ||
${exports.NetworkInfoDetailsFragmentDoc}`; | ||
exports.V2AuctionMarketPropertiesFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment V2AuctionMarketProperties on V2Auction { | ||
__typename | ||
firstBidTime | ||
highestBidder | ||
curator | ||
collectionAddress | ||
curatorFeePercentage | ||
tokenId | ||
auctionCurrency | ||
duration | ||
estimatedExpirationTime | ||
auctionStatus: status | ||
tokenOwner | ||
address | ||
auctionId | ||
approved | ||
reservePrice { | ||
...PriceSummary | ||
} | ||
highestBidPrice { | ||
...PriceSummary | ||
} | ||
} | ||
${exports.PriceSummaryFragmentDoc}`; | ||
exports.V3AskPropertiesFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment V3AskProperties on V3Ask { | ||
__typename | ||
buyer | ||
finder | ||
findersFeeBps | ||
sellerFundsRecipient | ||
askStatus: status | ||
seller | ||
address | ||
askCurrency | ||
collectionAddress | ||
askPrice { | ||
...PriceSummary | ||
} | ||
} | ||
${exports.PriceSummaryFragmentDoc}`; | ||
exports.V1OfferPropertiesFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment V1OfferProperties on V1Offer { | ||
offerStatus: status | ||
sellOnShare | ||
bidder | ||
currency | ||
amount { | ||
...PriceSummary | ||
} | ||
} | ||
${exports.PriceSummaryFragmentDoc}`; | ||
exports.V1AskPropertiesFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment V1AskProperties on V1Ask { | ||
offerStatus: status | ||
currency | ||
amount { | ||
...PriceSummary | ||
} | ||
} | ||
${exports.PriceSummaryFragmentDoc}`; | ||
exports.MarketPropertiesFullFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment MarketPropertiesFull on MarketProperties { | ||
__typename | ||
...V2AuctionMarketProperties | ||
...V3AskProperties | ||
...V1OfferProperties | ||
...V1AskProperties | ||
} | ||
${exports.V2AuctionMarketPropertiesFragmentDoc} | ||
${exports.V3AskPropertiesFragmentDoc} | ||
${exports.V1OfferPropertiesFragmentDoc} | ||
${exports.V1AskPropertiesFragmentDoc}`; | ||
exports.MarketDetailsFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment MarketDetails on Market { | ||
properties { | ||
...MarketPropertiesFull | ||
} | ||
} | ||
${exports.MarketPropertiesFullFragmentDoc}`; | ||
exports.TokenContractInfoFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment TokenContractInfo on TokenContract { | ||
name | ||
network | ||
description | ||
collectionAddress | ||
symbol | ||
chain | ||
} | ||
`; | ||
exports.MintDetailsFragmentDoc = (0, graphql_tag_1.default) ` | ||
@@ -391,2 +285,8 @@ fragment MintDetails on MintInfo { | ||
`; | ||
exports.NetworkInfoDetailsFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment NetworkInfoDetails on NetworkInfo { | ||
chain | ||
network | ||
} | ||
`; | ||
exports.CollectionInfoFragmentDoc = (0, graphql_tag_1.default) ` | ||
@@ -440,2 +340,114 @@ fragment CollectionInfo on Collection { | ||
`; | ||
exports.MarketInfoFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment MarketInfo on Market { | ||
collectionAddress | ||
marketAddress | ||
marketType | ||
transactionInfo { | ||
...TransactionDetails | ||
} | ||
price { | ||
...PriceSummary | ||
} | ||
status | ||
networkInfo { | ||
...NetworkInfoDetails | ||
} | ||
} | ||
${exports.TransactionDetailsFragmentDoc} | ||
${exports.PriceSummaryFragmentDoc} | ||
${exports.NetworkInfoDetailsFragmentDoc}`; | ||
exports.V2AuctionMarketPropertiesFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment V2AuctionMarketProperties on V2Auction { | ||
__typename | ||
firstBidTime | ||
highestBidder | ||
curator | ||
collectionAddress | ||
curatorFeePercentage | ||
tokenId | ||
auctionCurrency | ||
duration | ||
estimatedExpirationTime | ||
auctionStatus: status | ||
tokenOwner | ||
address | ||
auctionId | ||
approved | ||
reservePrice { | ||
...PriceSummary | ||
} | ||
highestBidPrice { | ||
...PriceSummary | ||
} | ||
} | ||
${exports.PriceSummaryFragmentDoc}`; | ||
exports.V3AskPropertiesFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment V3AskProperties on V3Ask { | ||
__typename | ||
buyer | ||
finder | ||
findersFeeBps | ||
sellerFundsRecipient | ||
askStatus: status | ||
seller | ||
address | ||
askCurrency | ||
collectionAddress | ||
askPrice { | ||
...PriceSummary | ||
} | ||
} | ||
${exports.PriceSummaryFragmentDoc}`; | ||
exports.V1OfferPropertiesFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment V1OfferProperties on V1Offer { | ||
offerStatus: status | ||
sellOnShare | ||
bidder | ||
currency | ||
amount { | ||
...PriceSummary | ||
} | ||
} | ||
${exports.PriceSummaryFragmentDoc}`; | ||
exports.V1AskPropertiesFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment V1AskProperties on V1Ask { | ||
offerStatus: status | ||
currency | ||
amount { | ||
...PriceSummary | ||
} | ||
} | ||
${exports.PriceSummaryFragmentDoc}`; | ||
exports.MarketPropertiesFullFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment MarketPropertiesFull on MarketProperties { | ||
__typename | ||
...V2AuctionMarketProperties | ||
...V3AskProperties | ||
...V1OfferProperties | ||
...V1AskProperties | ||
} | ||
${exports.V2AuctionMarketPropertiesFragmentDoc} | ||
${exports.V3AskPropertiesFragmentDoc} | ||
${exports.V1OfferPropertiesFragmentDoc} | ||
${exports.V1AskPropertiesFragmentDoc}`; | ||
exports.MarketDetailsFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment MarketDetails on Market { | ||
properties { | ||
...MarketPropertiesFull | ||
} | ||
} | ||
${exports.MarketPropertiesFullFragmentDoc}`; | ||
exports.MarketsOnMintInfoFragmentDoc = (0, graphql_tag_1.default) ` | ||
fragment MarketsOnMintInfo on MintWithTokenAndMarkets { | ||
markets( | ||
pagination: {limit: 10, offset: 0} | ||
sort: {sortKey: NONE, sortDirection: DESC} | ||
) { | ||
...MarketInfo | ||
...MarketDetails | ||
} | ||
} | ||
${exports.MarketInfoFragmentDoc} | ||
${exports.MarketDetailsFragmentDoc}`; | ||
exports.SaleInfoFragmentDoc = (0, graphql_tag_1.default) ` | ||
@@ -762,3 +774,3 @@ fragment SaleInfo on Sale { | ||
exports.MintsDocument = (0, graphql_tag_1.default) ` | ||
query mints($networks: [NetworkInput!]!, $filter: MintsQueryFilter, $pagination: PaginationInput!, $sort: MintSortKeySortInput!, $where: MintsQueryInput, $includeFullDetails: Boolean!) { | ||
query mints($networks: [NetworkInput!]!, $filter: MintsQueryFilter, $pagination: PaginationInput!, $sort: MintSortKeySortInput!, $where: MintsQueryInput, $includeFullDetails: Boolean!, $includeMarkets: Boolean!) { | ||
mints( | ||
@@ -787,6 +799,7 @@ where: $where | ||
} | ||
markets(pagination: $pagination, sort: {sortKey: NONE, sortDirection: DESC}) { | ||
...MarketInfo | ||
...MarketDetails @include(if: $includeFullDetails) | ||
token { | ||
...TokenInfo | ||
...TokenDetails @include(if: $includeFullDetails) | ||
} | ||
...MarketsOnMintInfo @include(if: $includeFullDetails) | ||
} | ||
@@ -796,4 +809,5 @@ } | ||
${exports.TransactionDetailsFragmentDoc} | ||
${exports.MarketInfoFragmentDoc} | ||
${exports.MarketDetailsFragmentDoc}`; | ||
${exports.TokenInfoFragmentDoc} | ||
${exports.TokenDetailsFragmentDoc} | ||
${exports.MarketsOnMintInfoFragmentDoc}`; | ||
exports.CollectionsDocument = (0, graphql_tag_1.default) ` | ||
@@ -800,0 +814,0 @@ query collections($networks: [NetworkInput!]!, $where: CollectionsQueryInput!, $pagination: PaginationInput!, $sort: CollectionSortKeySortInput!, $includeFullDetails: Boolean!) { |
{ | ||
"name": "@zoralabs/zdk-alpha", | ||
"version": "0.0.37", | ||
"version": "0.0.38", | ||
"description": "ZDK alpha for fetching data from graphql api", | ||
@@ -31,2 +31,3 @@ "repository": "https://github.com/ourzora/zdk-alpha", | ||
"dotenv": "^16.0.0", | ||
"graphql": "^16.5.0", | ||
"graphql-tools": "^7.0.4", | ||
@@ -64,3 +65,2 @@ "husky": "^6.0.0", | ||
"big.js": "^6.1.0", | ||
"graphql": "^16.4.0", | ||
"graphql-request": "^4.2.0", | ||
@@ -74,2 +74,2 @@ "graphql-tag": "^2.12.6", | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
323493
4
8744
23
- Removedgraphql@^16.4.0