@bosonprotocol/core-sdk
Advanced tools
Comparing version 1.9.1-alpha.4 to 1.10.0-alpha.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getSdk = exports.GetOffersQueryDocument = exports.GetOfferByIdQueryDocument = exports.GetFundsDocument = exports.GetFundsByIdDocument = exports.GetExchangesQueryDocument = exports.GetExchangeByIdQueryDocument = exports.GetSellersQueryDocument = exports.GetSellerByIdQueryDocument = exports.OfferFieldsFragmentDoc = exports.ExchangeFieldsFragmentDoc = exports.BaseBuyerFieldsFragmentDoc = exports.SellerFieldsFragmentDoc = exports.BaseExchangeFieldsFragmentDoc = exports.BaseOfferFieldsFragmentDoc = exports.FundsEntityFieldsFragmentDoc = exports.BaseSellerFieldsFragmentDoc = exports._SubgraphErrorPolicy_ = exports.Seller_OrderBy = exports.ProductV1MetadataEntity_OrderBy = exports.ProductV1Brand_OrderBy = exports.OrderDirection = exports.Offer_OrderBy = exports.MetadataType = exports.MetadataInterface_OrderBy = exports.FundsEntity_OrderBy = exports.Exchange_OrderBy = exports.ExchangeToken_OrderBy = exports.ExchangeState = exports.DisputeResolver_OrderBy = exports.Buyer_OrderBy = exports.BaseMetadataEntity_OrderBy = exports.Account_OrderBy = void 0; | ||
exports.getSdk = exports.GetOffersQueryDocument = exports.GetOfferByIdQueryDocument = exports.GetFundsDocument = exports.GetFundsByIdDocument = exports.GetExchangesQueryDocument = exports.GetExchangeByIdQueryDocument = exports.GetBuyersQueryDocument = exports.GetBuyerByIdQueryDocument = exports.GetSellersQueryDocument = exports.GetSellerByIdQueryDocument = exports.OfferFieldsFragmentDoc = exports.ExchangeFieldsFragmentDoc = exports.BuyerFieldsFragmentDoc = exports.BaseBuyerFieldsFragmentDoc = exports.SellerFieldsFragmentDoc = exports.BaseExchangeFieldsFragmentDoc = exports.BaseOfferFieldsFragmentDoc = exports.FundsEntityFieldsFragmentDoc = exports.BaseSellerFieldsFragmentDoc = exports._SubgraphErrorPolicy_ = exports.Seller_OrderBy = exports.ProductV1MetadataEntity_OrderBy = exports.ProductV1Brand_OrderBy = exports.OrderDirection = exports.Offer_OrderBy = exports.MetadataType = exports.MetadataInterface_OrderBy = exports.FundsEntity_OrderBy = exports.Exchange_OrderBy = exports.ExchangeToken_OrderBy = exports.ExchangeState = exports.DisputeResolver_OrderBy = exports.Buyer_OrderBy = exports.BaseMetadataEntity_OrderBy = exports.Account_OrderBy = void 0; | ||
const graphql_request_1 = require("graphql-request"); | ||
@@ -19,2 +19,3 @@ var Account_OrderBy; | ||
BaseMetadataEntity_OrderBy["Offer"] = "offer"; | ||
BaseMetadataEntity_OrderBy["QuantityAvailable"] = "quantityAvailable"; | ||
BaseMetadataEntity_OrderBy["SchemaUrl"] = "schemaUrl"; | ||
@@ -99,2 +100,3 @@ BaseMetadataEntity_OrderBy["Seller"] = "seller"; | ||
MetadataInterface_OrderBy["Offer"] = "offer"; | ||
MetadataInterface_OrderBy["QuantityAvailable"] = "quantityAvailable"; | ||
MetadataInterface_OrderBy["SchemaUrl"] = "schemaUrl"; | ||
@@ -165,2 +167,3 @@ MetadataInterface_OrderBy["Seller"] = "seller"; | ||
ProductV1MetadataEntity_OrderBy["Offer"] = "offer"; | ||
ProductV1MetadataEntity_OrderBy["QuantityAvailable"] = "quantityAvailable"; | ||
ProductV1MetadataEntity_OrderBy["SchemaUrl"] = "schemaUrl"; | ||
@@ -315,2 +318,28 @@ ProductV1MetadataEntity_OrderBy["Seller"] = "seller"; | ||
`; | ||
exports.BuyerFieldsFragmentDoc = (0, graphql_request_1.gql) ` | ||
fragment BuyerFields on Buyer { | ||
...BaseBuyerFields | ||
funds( | ||
skip: $fundsSkip | ||
first: $fundsFirst | ||
orderBy: $fundsOrderBy | ||
orderDirection: $fundsOrderDirection | ||
where: $fundsFilter | ||
) @include(if: $includeFunds) { | ||
...FundsEntityFields | ||
} | ||
exchanges( | ||
skip: $exchangesSkip | ||
first: $exchangesFirst | ||
orderBy: $exchangesOrderBy | ||
orderDirection: $exchangesOrderDirection | ||
where: $exchangesFilter | ||
) @include(if: $includeExchanges) { | ||
...BaseExchangeFields | ||
} | ||
} | ||
${exports.BaseBuyerFieldsFragmentDoc} | ||
${exports.FundsEntityFieldsFragmentDoc} | ||
${exports.BaseExchangeFieldsFragmentDoc} | ||
`; | ||
exports.ExchangeFieldsFragmentDoc = (0, graphql_request_1.gql) ` | ||
@@ -416,2 +445,62 @@ fragment ExchangeFields on Exchange { | ||
`; | ||
exports.GetBuyerByIdQueryDocument = (0, graphql_request_1.gql) ` | ||
query getBuyerByIdQuery( | ||
$buyerId: ID! | ||
$fundsSkip: Int | ||
$fundsFirst: Int | ||
$fundsOrderBy: FundsEntity_orderBy | ||
$fundsOrderDirection: OrderDirection | ||
$fundsFilter: FundsEntity_filter | ||
$exchangesSkip: Int | ||
$exchangesFirst: Int | ||
$exchangesOrderBy: Exchange_orderBy | ||
$exchangesOrderDirection: OrderDirection | ||
$exchangesFilter: Exchange_filter | ||
$includeExchanges: Boolean = false | ||
$includeFunds: Boolean = false | ||
) { | ||
buyer(id: $buyerId) { | ||
...BuyerFields | ||
} | ||
} | ||
${exports.BuyerFieldsFragmentDoc} | ||
`; | ||
exports.GetBuyersQueryDocument = (0, graphql_request_1.gql) ` | ||
query getBuyersQuery( | ||
$BuyersSkip: Int | ||
$BuyersFirst: Int | ||
$BuyersOrderBy: Buyer_orderBy | ||
$BuyersOrderDirection: OrderDirection | ||
$BuyersFilter: Buyer_filter | ||
$fundsSkip: Int | ||
$fundsFirst: Int | ||
$fundsOrderBy: FundsEntity_orderBy | ||
$fundsOrderDirection: OrderDirection | ||
$fundsFilter: FundsEntity_filter | ||
$offersSkip: Int | ||
$offersFirst: Int | ||
$offersOrderBy: Offer_orderBy | ||
$offersOrderDirection: OrderDirection | ||
$offersFilter: Offer_filter | ||
$exchangesSkip: Int | ||
$exchangesFirst: Int | ||
$exchangesOrderBy: Exchange_orderBy | ||
$exchangesOrderDirection: OrderDirection | ||
$exchangesFilter: Exchange_filter | ||
$includeExchanges: Boolean = false | ||
$includeOffers: Boolean = false | ||
$includeFunds: Boolean = false | ||
) { | ||
buyers( | ||
skip: $BuyersSkip | ||
first: $BuyersFirst | ||
orderBy: $BuyersOrderBy | ||
orderDirection: $BuyersOrderDirection | ||
where: $BuyersFilter | ||
) { | ||
...BuyerFields | ||
} | ||
} | ||
${exports.BuyerFieldsFragmentDoc} | ||
`; | ||
exports.GetExchangeByIdQueryDocument = (0, graphql_request_1.gql) ` | ||
@@ -524,2 +613,8 @@ query getExchangeByIdQuery($exchangeId: ID!) { | ||
}, | ||
getBuyerByIdQuery(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetBuyerByIdQueryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), "getBuyerByIdQuery", "query"); | ||
}, | ||
getBuyersQuery(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetBuyersQueryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), "getBuyersQuery", "query"); | ||
}, | ||
getExchangeByIdQuery(variables, requestHeaders) { | ||
@@ -526,0 +621,0 @@ return withWrapper((wrappedRequestHeaders) => client.request(exports.GetExchangeByIdQueryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), "getExchangeByIdQuery", "query"); |
@@ -48,2 +48,42 @@ export declare function getSubgraphSdk(subgraphUrl: string): { | ||
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetSellersQueryQuery>; | ||
getBuyerByIdQuery(variables: import("../subgraph").Exact<{ | ||
buyerId: string; | ||
fundsSkip?: number; | ||
fundsFirst?: number; | ||
fundsOrderBy?: import("../subgraph").FundsEntity_OrderBy; | ||
fundsOrderDirection?: import("../subgraph").OrderDirection; | ||
fundsFilter?: import("../subgraph").FundsEntity_Filter; | ||
exchangesSkip?: number; | ||
exchangesFirst?: number; | ||
exchangesOrderBy?: import("../subgraph").Exchange_OrderBy; | ||
exchangesOrderDirection?: import("../subgraph").OrderDirection; | ||
exchangesFilter?: import("../subgraph").Exchange_Filter; | ||
includeExchanges?: boolean; | ||
includeFunds?: boolean; | ||
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetBuyerByIdQueryQuery>; | ||
getBuyersQuery(variables?: import("../subgraph").Exact<{ | ||
BuyersSkip?: number; | ||
BuyersFirst?: number; | ||
BuyersOrderBy?: import("../subgraph").Buyer_OrderBy; | ||
BuyersOrderDirection?: import("../subgraph").OrderDirection; | ||
BuyersFilter?: import("../subgraph").Buyer_Filter; | ||
fundsSkip?: number; | ||
fundsFirst?: number; | ||
fundsOrderBy?: import("../subgraph").FundsEntity_OrderBy; | ||
fundsOrderDirection?: import("../subgraph").OrderDirection; | ||
fundsFilter?: import("../subgraph").FundsEntity_Filter; | ||
offersSkip?: number; | ||
offersFirst?: number; | ||
offersOrderBy?: import("../subgraph").Offer_OrderBy; | ||
offersOrderDirection?: import("../subgraph").OrderDirection; | ||
offersFilter?: import("../subgraph").Offer_Filter; | ||
exchangesSkip?: number; | ||
exchangesFirst?: number; | ||
exchangesOrderBy?: import("../subgraph").Exchange_OrderBy; | ||
exchangesOrderDirection?: import("../subgraph").OrderDirection; | ||
exchangesFilter?: import("../subgraph").Exchange_Filter; | ||
includeExchanges?: boolean; | ||
includeOffers?: boolean; | ||
includeFunds?: boolean; | ||
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetBuyersQueryQuery>; | ||
getExchangeByIdQuery(variables: import("../subgraph").Exact<{ | ||
@@ -50,0 +90,0 @@ exchangeId: string; |
@@ -16,2 +16,3 @@ import { gql } from "graphql-request"; | ||
BaseMetadataEntity_OrderBy["Offer"] = "offer"; | ||
BaseMetadataEntity_OrderBy["QuantityAvailable"] = "quantityAvailable"; | ||
BaseMetadataEntity_OrderBy["SchemaUrl"] = "schemaUrl"; | ||
@@ -96,2 +97,3 @@ BaseMetadataEntity_OrderBy["Seller"] = "seller"; | ||
MetadataInterface_OrderBy["Offer"] = "offer"; | ||
MetadataInterface_OrderBy["QuantityAvailable"] = "quantityAvailable"; | ||
MetadataInterface_OrderBy["SchemaUrl"] = "schemaUrl"; | ||
@@ -162,2 +164,3 @@ MetadataInterface_OrderBy["Seller"] = "seller"; | ||
ProductV1MetadataEntity_OrderBy["Offer"] = "offer"; | ||
ProductV1MetadataEntity_OrderBy["QuantityAvailable"] = "quantityAvailable"; | ||
ProductV1MetadataEntity_OrderBy["SchemaUrl"] = "schemaUrl"; | ||
@@ -312,2 +315,28 @@ ProductV1MetadataEntity_OrderBy["Seller"] = "seller"; | ||
`; | ||
export const BuyerFieldsFragmentDoc = gql ` | ||
fragment BuyerFields on Buyer { | ||
...BaseBuyerFields | ||
funds( | ||
skip: $fundsSkip | ||
first: $fundsFirst | ||
orderBy: $fundsOrderBy | ||
orderDirection: $fundsOrderDirection | ||
where: $fundsFilter | ||
) @include(if: $includeFunds) { | ||
...FundsEntityFields | ||
} | ||
exchanges( | ||
skip: $exchangesSkip | ||
first: $exchangesFirst | ||
orderBy: $exchangesOrderBy | ||
orderDirection: $exchangesOrderDirection | ||
where: $exchangesFilter | ||
) @include(if: $includeExchanges) { | ||
...BaseExchangeFields | ||
} | ||
} | ||
${BaseBuyerFieldsFragmentDoc} | ||
${FundsEntityFieldsFragmentDoc} | ||
${BaseExchangeFieldsFragmentDoc} | ||
`; | ||
export const ExchangeFieldsFragmentDoc = gql ` | ||
@@ -413,2 +442,62 @@ fragment ExchangeFields on Exchange { | ||
`; | ||
export const GetBuyerByIdQueryDocument = gql ` | ||
query getBuyerByIdQuery( | ||
$buyerId: ID! | ||
$fundsSkip: Int | ||
$fundsFirst: Int | ||
$fundsOrderBy: FundsEntity_orderBy | ||
$fundsOrderDirection: OrderDirection | ||
$fundsFilter: FundsEntity_filter | ||
$exchangesSkip: Int | ||
$exchangesFirst: Int | ||
$exchangesOrderBy: Exchange_orderBy | ||
$exchangesOrderDirection: OrderDirection | ||
$exchangesFilter: Exchange_filter | ||
$includeExchanges: Boolean = false | ||
$includeFunds: Boolean = false | ||
) { | ||
buyer(id: $buyerId) { | ||
...BuyerFields | ||
} | ||
} | ||
${BuyerFieldsFragmentDoc} | ||
`; | ||
export const GetBuyersQueryDocument = gql ` | ||
query getBuyersQuery( | ||
$BuyersSkip: Int | ||
$BuyersFirst: Int | ||
$BuyersOrderBy: Buyer_orderBy | ||
$BuyersOrderDirection: OrderDirection | ||
$BuyersFilter: Buyer_filter | ||
$fundsSkip: Int | ||
$fundsFirst: Int | ||
$fundsOrderBy: FundsEntity_orderBy | ||
$fundsOrderDirection: OrderDirection | ||
$fundsFilter: FundsEntity_filter | ||
$offersSkip: Int | ||
$offersFirst: Int | ||
$offersOrderBy: Offer_orderBy | ||
$offersOrderDirection: OrderDirection | ||
$offersFilter: Offer_filter | ||
$exchangesSkip: Int | ||
$exchangesFirst: Int | ||
$exchangesOrderBy: Exchange_orderBy | ||
$exchangesOrderDirection: OrderDirection | ||
$exchangesFilter: Exchange_filter | ||
$includeExchanges: Boolean = false | ||
$includeOffers: Boolean = false | ||
$includeFunds: Boolean = false | ||
) { | ||
buyers( | ||
skip: $BuyersSkip | ||
first: $BuyersFirst | ||
orderBy: $BuyersOrderBy | ||
orderDirection: $BuyersOrderDirection | ||
where: $BuyersFilter | ||
) { | ||
...BuyerFields | ||
} | ||
} | ||
${BuyerFieldsFragmentDoc} | ||
`; | ||
export const GetExchangeByIdQueryDocument = gql ` | ||
@@ -521,2 +610,8 @@ query getExchangeByIdQuery($exchangeId: ID!) { | ||
}, | ||
getBuyerByIdQuery(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetBuyerByIdQueryDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "getBuyerByIdQuery", "query"); | ||
}, | ||
getBuyersQuery(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetBuyersQueryDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "getBuyersQuery", "query"); | ||
}, | ||
getExchangeByIdQuery(variables, requestHeaders) { | ||
@@ -523,0 +618,0 @@ return withWrapper((wrappedRequestHeaders) => client.request(GetExchangeByIdQueryDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "getExchangeByIdQuery", "query"); |
@@ -48,2 +48,42 @@ export declare function getSubgraphSdk(subgraphUrl: string): { | ||
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetSellersQueryQuery>; | ||
getBuyerByIdQuery(variables: import("../subgraph").Exact<{ | ||
buyerId: string; | ||
fundsSkip?: number; | ||
fundsFirst?: number; | ||
fundsOrderBy?: import("../subgraph").FundsEntity_OrderBy; | ||
fundsOrderDirection?: import("../subgraph").OrderDirection; | ||
fundsFilter?: import("../subgraph").FundsEntity_Filter; | ||
exchangesSkip?: number; | ||
exchangesFirst?: number; | ||
exchangesOrderBy?: import("../subgraph").Exchange_OrderBy; | ||
exchangesOrderDirection?: import("../subgraph").OrderDirection; | ||
exchangesFilter?: import("../subgraph").Exchange_Filter; | ||
includeExchanges?: boolean; | ||
includeFunds?: boolean; | ||
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetBuyerByIdQueryQuery>; | ||
getBuyersQuery(variables?: import("../subgraph").Exact<{ | ||
BuyersSkip?: number; | ||
BuyersFirst?: number; | ||
BuyersOrderBy?: import("../subgraph").Buyer_OrderBy; | ||
BuyersOrderDirection?: import("../subgraph").OrderDirection; | ||
BuyersFilter?: import("../subgraph").Buyer_Filter; | ||
fundsSkip?: number; | ||
fundsFirst?: number; | ||
fundsOrderBy?: import("../subgraph").FundsEntity_OrderBy; | ||
fundsOrderDirection?: import("../subgraph").OrderDirection; | ||
fundsFilter?: import("../subgraph").FundsEntity_Filter; | ||
offersSkip?: number; | ||
offersFirst?: number; | ||
offersOrderBy?: import("../subgraph").Offer_OrderBy; | ||
offersOrderDirection?: import("../subgraph").OrderDirection; | ||
offersFilter?: import("../subgraph").Offer_Filter; | ||
exchangesSkip?: number; | ||
exchangesFirst?: number; | ||
exchangesOrderBy?: import("../subgraph").Exchange_OrderBy; | ||
exchangesOrderDirection?: import("../subgraph").OrderDirection; | ||
exchangesFilter?: import("../subgraph").Exchange_Filter; | ||
includeExchanges?: boolean; | ||
includeOffers?: boolean; | ||
includeFunds?: boolean; | ||
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetBuyersQueryQuery>; | ||
getExchangeByIdQuery(variables: import("../subgraph").Exact<{ | ||
@@ -50,0 +90,0 @@ exchangeId: string; |
{ | ||
"name": "@bosonprotocol/core-sdk", | ||
"version": "1.9.1-alpha.4", | ||
"version": "1.10.0-alpha.0", | ||
"description": "> TODO: description", | ||
@@ -35,3 +35,3 @@ "main": "./dist/cjs/index.js", | ||
"dependencies": { | ||
"@bosonprotocol/common": "^1.8.1-alpha.1", | ||
"@bosonprotocol/common": "^1.8.1-alpha.2", | ||
"@ethersproject/abi": "^5.5.0", | ||
@@ -54,3 +54,3 @@ "@ethersproject/address": "^5.5.0", | ||
}, | ||
"gitHead": "7345ba1028a1cae43ee96dc3126b49e8e49a715e" | ||
"gitHead": "0ce8a85f5a391ff4de2173d3e7c151ead66d6606" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
1167619
17697
+ Added@bosonprotocol/common@1.30.3(transitive)
- Removed@bosonprotocol/common@1.30.2(transitive)