@bosonprotocol/core-sdk 1.9.1-alpha.4 → 1.10.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/subgraph.d.ts +188 -0
- package/dist/cjs/subgraph.d.ts.map +1 -1
- package/dist/cjs/subgraph.js +96 -1
- package/dist/cjs/subgraph.js.map +1 -1
- package/dist/cjs/utils/graphql.d.ts +40 -0
- package/dist/cjs/utils/graphql.d.ts.map +1 -1
- package/dist/esm/subgraph.d.ts +188 -0
- package/dist/esm/subgraph.d.ts.map +1 -1
- package/dist/esm/subgraph.js +95 -0
- package/dist/esm/subgraph.js.map +1 -1
- package/dist/esm/utils/graphql.d.ts +40 -0
- package/dist/esm/utils/graphql.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/accounts/queries.graphql +78 -0
- package/src/subgraph.ts +304 -0
package/dist/cjs/subgraph.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
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;
|
|
3
|
+
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;
|
|
4
4
|
const graphql_request_1 = require("graphql-request");
|
|
5
5
|
var Account_OrderBy;
|
|
6
6
|
(function (Account_OrderBy) {
|
|
@@ -16,6 +16,7 @@ var BaseMetadataEntity_OrderBy;
|
|
|
16
16
|
BaseMetadataEntity_OrderBy["Id"] = "id";
|
|
17
17
|
BaseMetadataEntity_OrderBy["Name"] = "name";
|
|
18
18
|
BaseMetadataEntity_OrderBy["Offer"] = "offer";
|
|
19
|
+
BaseMetadataEntity_OrderBy["QuantityAvailable"] = "quantityAvailable";
|
|
19
20
|
BaseMetadataEntity_OrderBy["SchemaUrl"] = "schemaUrl";
|
|
20
21
|
BaseMetadataEntity_OrderBy["Seller"] = "seller";
|
|
21
22
|
BaseMetadataEntity_OrderBy["Type"] = "type";
|
|
@@ -95,6 +96,7 @@ var MetadataInterface_OrderBy;
|
|
|
95
96
|
MetadataInterface_OrderBy["Id"] = "id";
|
|
96
97
|
MetadataInterface_OrderBy["Name"] = "name";
|
|
97
98
|
MetadataInterface_OrderBy["Offer"] = "offer";
|
|
99
|
+
MetadataInterface_OrderBy["QuantityAvailable"] = "quantityAvailable";
|
|
98
100
|
MetadataInterface_OrderBy["SchemaUrl"] = "schemaUrl";
|
|
99
101
|
MetadataInterface_OrderBy["Seller"] = "seller";
|
|
100
102
|
MetadataInterface_OrderBy["Type"] = "type";
|
|
@@ -160,6 +162,7 @@ var ProductV1MetadataEntity_OrderBy;
|
|
|
160
162
|
ProductV1MetadataEntity_OrderBy["Images"] = "images";
|
|
161
163
|
ProductV1MetadataEntity_OrderBy["Name"] = "name";
|
|
162
164
|
ProductV1MetadataEntity_OrderBy["Offer"] = "offer";
|
|
165
|
+
ProductV1MetadataEntity_OrderBy["QuantityAvailable"] = "quantityAvailable";
|
|
163
166
|
ProductV1MetadataEntity_OrderBy["SchemaUrl"] = "schemaUrl";
|
|
164
167
|
ProductV1MetadataEntity_OrderBy["Seller"] = "seller";
|
|
165
168
|
ProductV1MetadataEntity_OrderBy["Tags"] = "tags";
|
|
@@ -309,6 +312,32 @@ exports.BaseBuyerFieldsFragmentDoc = (0, graphql_request_1.gql) `
|
|
|
309
312
|
active
|
|
310
313
|
}
|
|
311
314
|
`;
|
|
315
|
+
exports.BuyerFieldsFragmentDoc = (0, graphql_request_1.gql) `
|
|
316
|
+
fragment BuyerFields on Buyer {
|
|
317
|
+
...BaseBuyerFields
|
|
318
|
+
funds(
|
|
319
|
+
skip: $fundsSkip
|
|
320
|
+
first: $fundsFirst
|
|
321
|
+
orderBy: $fundsOrderBy
|
|
322
|
+
orderDirection: $fundsOrderDirection
|
|
323
|
+
where: $fundsFilter
|
|
324
|
+
) @include(if: $includeFunds) {
|
|
325
|
+
...FundsEntityFields
|
|
326
|
+
}
|
|
327
|
+
exchanges(
|
|
328
|
+
skip: $exchangesSkip
|
|
329
|
+
first: $exchangesFirst
|
|
330
|
+
orderBy: $exchangesOrderBy
|
|
331
|
+
orderDirection: $exchangesOrderDirection
|
|
332
|
+
where: $exchangesFilter
|
|
333
|
+
) @include(if: $includeExchanges) {
|
|
334
|
+
...BaseExchangeFields
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
${exports.BaseBuyerFieldsFragmentDoc}
|
|
338
|
+
${exports.FundsEntityFieldsFragmentDoc}
|
|
339
|
+
${exports.BaseExchangeFieldsFragmentDoc}
|
|
340
|
+
`;
|
|
312
341
|
exports.ExchangeFieldsFragmentDoc = (0, graphql_request_1.gql) `
|
|
313
342
|
fragment ExchangeFields on Exchange {
|
|
314
343
|
...BaseExchangeFields
|
|
@@ -409,6 +438,66 @@ exports.GetSellersQueryDocument = (0, graphql_request_1.gql) `
|
|
|
409
438
|
}
|
|
410
439
|
${exports.SellerFieldsFragmentDoc}
|
|
411
440
|
`;
|
|
441
|
+
exports.GetBuyerByIdQueryDocument = (0, graphql_request_1.gql) `
|
|
442
|
+
query getBuyerByIdQuery(
|
|
443
|
+
$buyerId: ID!
|
|
444
|
+
$fundsSkip: Int
|
|
445
|
+
$fundsFirst: Int
|
|
446
|
+
$fundsOrderBy: FundsEntity_orderBy
|
|
447
|
+
$fundsOrderDirection: OrderDirection
|
|
448
|
+
$fundsFilter: FundsEntity_filter
|
|
449
|
+
$exchangesSkip: Int
|
|
450
|
+
$exchangesFirst: Int
|
|
451
|
+
$exchangesOrderBy: Exchange_orderBy
|
|
452
|
+
$exchangesOrderDirection: OrderDirection
|
|
453
|
+
$exchangesFilter: Exchange_filter
|
|
454
|
+
$includeExchanges: Boolean = false
|
|
455
|
+
$includeFunds: Boolean = false
|
|
456
|
+
) {
|
|
457
|
+
buyer(id: $buyerId) {
|
|
458
|
+
...BuyerFields
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
${exports.BuyerFieldsFragmentDoc}
|
|
462
|
+
`;
|
|
463
|
+
exports.GetBuyersQueryDocument = (0, graphql_request_1.gql) `
|
|
464
|
+
query getBuyersQuery(
|
|
465
|
+
$BuyersSkip: Int
|
|
466
|
+
$BuyersFirst: Int
|
|
467
|
+
$BuyersOrderBy: Buyer_orderBy
|
|
468
|
+
$BuyersOrderDirection: OrderDirection
|
|
469
|
+
$BuyersFilter: Buyer_filter
|
|
470
|
+
$fundsSkip: Int
|
|
471
|
+
$fundsFirst: Int
|
|
472
|
+
$fundsOrderBy: FundsEntity_orderBy
|
|
473
|
+
$fundsOrderDirection: OrderDirection
|
|
474
|
+
$fundsFilter: FundsEntity_filter
|
|
475
|
+
$offersSkip: Int
|
|
476
|
+
$offersFirst: Int
|
|
477
|
+
$offersOrderBy: Offer_orderBy
|
|
478
|
+
$offersOrderDirection: OrderDirection
|
|
479
|
+
$offersFilter: Offer_filter
|
|
480
|
+
$exchangesSkip: Int
|
|
481
|
+
$exchangesFirst: Int
|
|
482
|
+
$exchangesOrderBy: Exchange_orderBy
|
|
483
|
+
$exchangesOrderDirection: OrderDirection
|
|
484
|
+
$exchangesFilter: Exchange_filter
|
|
485
|
+
$includeExchanges: Boolean = false
|
|
486
|
+
$includeOffers: Boolean = false
|
|
487
|
+
$includeFunds: Boolean = false
|
|
488
|
+
) {
|
|
489
|
+
buyers(
|
|
490
|
+
skip: $BuyersSkip
|
|
491
|
+
first: $BuyersFirst
|
|
492
|
+
orderBy: $BuyersOrderBy
|
|
493
|
+
orderDirection: $BuyersOrderDirection
|
|
494
|
+
where: $BuyersFilter
|
|
495
|
+
) {
|
|
496
|
+
...BuyerFields
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
${exports.BuyerFieldsFragmentDoc}
|
|
500
|
+
`;
|
|
412
501
|
exports.GetExchangeByIdQueryDocument = (0, graphql_request_1.gql) `
|
|
413
502
|
query getExchangeByIdQuery($exchangeId: ID!) {
|
|
414
503
|
exchange(id: $exchangeId) {
|
|
@@ -516,6 +605,12 @@ function getSdk(client, withWrapper = defaultWrapper) {
|
|
|
516
605
|
getSellersQuery(variables, requestHeaders) {
|
|
517
606
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetSellersQueryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), "getSellersQuery", "query");
|
|
518
607
|
},
|
|
608
|
+
getBuyerByIdQuery(variables, requestHeaders) {
|
|
609
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetBuyerByIdQueryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), "getBuyerByIdQuery", "query");
|
|
610
|
+
},
|
|
611
|
+
getBuyersQuery(variables, requestHeaders) {
|
|
612
|
+
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetBuyersQueryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), "getBuyersQuery", "query");
|
|
613
|
+
},
|
|
519
614
|
getExchangeByIdQuery(variables, requestHeaders) {
|
|
520
615
|
return withWrapper((wrappedRequestHeaders) => client.request(exports.GetExchangeByIdQueryDocument, variables, Object.assign(Object.assign({}, requestHeaders), wrappedRequestHeaders)), "getExchangeByIdQuery", "query");
|
|
521
616
|
},
|
package/dist/cjs/subgraph.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subgraph.js","sourceRoot":"","sources":["../../src/subgraph.ts"],"names":[],"mappings":";;;AAEA,qDAAsC;AAwDtC,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,4BAAS,CAAA;AACX,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;
|
|
1
|
+
{"version":3,"file":"subgraph.js","sourceRoot":"","sources":["../../src/subgraph.ts"],"names":[],"mappings":";;;AAEA,qDAAsC;AAwDtC,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,kCAAe,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-45,6 +45,46 @@ export declare function getSubgraphSdk(subgraphUrl: string): {
|
|
|
45
45
|
includeOffers?: boolean;
|
|
46
46
|
includeFunds?: boolean;
|
|
47
47
|
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetSellersQueryQuery>;
|
|
48
|
+
getBuyerByIdQuery(variables: import("../subgraph").Exact<{
|
|
49
|
+
buyerId: string;
|
|
50
|
+
fundsSkip?: number;
|
|
51
|
+
fundsFirst?: number;
|
|
52
|
+
fundsOrderBy?: import("../subgraph").FundsEntity_OrderBy;
|
|
53
|
+
fundsOrderDirection?: import("../subgraph").OrderDirection;
|
|
54
|
+
fundsFilter?: import("../subgraph").FundsEntity_Filter;
|
|
55
|
+
exchangesSkip?: number;
|
|
56
|
+
exchangesFirst?: number;
|
|
57
|
+
exchangesOrderBy?: import("../subgraph").Exchange_OrderBy;
|
|
58
|
+
exchangesOrderDirection?: import("../subgraph").OrderDirection;
|
|
59
|
+
exchangesFilter?: import("../subgraph").Exchange_Filter;
|
|
60
|
+
includeExchanges?: boolean;
|
|
61
|
+
includeFunds?: boolean;
|
|
62
|
+
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetBuyerByIdQueryQuery>;
|
|
63
|
+
getBuyersQuery(variables?: import("../subgraph").Exact<{
|
|
64
|
+
BuyersSkip?: number;
|
|
65
|
+
BuyersFirst?: number;
|
|
66
|
+
BuyersOrderBy?: import("../subgraph").Buyer_OrderBy;
|
|
67
|
+
BuyersOrderDirection?: import("../subgraph").OrderDirection;
|
|
68
|
+
BuyersFilter?: import("../subgraph").Buyer_Filter;
|
|
69
|
+
fundsSkip?: number;
|
|
70
|
+
fundsFirst?: number;
|
|
71
|
+
fundsOrderBy?: import("../subgraph").FundsEntity_OrderBy;
|
|
72
|
+
fundsOrderDirection?: import("../subgraph").OrderDirection;
|
|
73
|
+
fundsFilter?: import("../subgraph").FundsEntity_Filter;
|
|
74
|
+
offersSkip?: number;
|
|
75
|
+
offersFirst?: number;
|
|
76
|
+
offersOrderBy?: import("../subgraph").Offer_OrderBy;
|
|
77
|
+
offersOrderDirection?: import("../subgraph").OrderDirection;
|
|
78
|
+
offersFilter?: import("../subgraph").Offer_Filter;
|
|
79
|
+
exchangesSkip?: number;
|
|
80
|
+
exchangesFirst?: number;
|
|
81
|
+
exchangesOrderBy?: import("../subgraph").Exchange_OrderBy;
|
|
82
|
+
exchangesOrderDirection?: import("../subgraph").OrderDirection;
|
|
83
|
+
exchangesFilter?: import("../subgraph").Exchange_Filter;
|
|
84
|
+
includeExchanges?: boolean;
|
|
85
|
+
includeOffers?: boolean;
|
|
86
|
+
includeFunds?: boolean;
|
|
87
|
+
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetBuyersQueryQuery>;
|
|
48
88
|
getExchangeByIdQuery(variables: import("../subgraph").Exact<{
|
|
49
89
|
exchangeId: string;
|
|
50
90
|
}>, requestHeaders?: Record<string, string> | import("graphql-request/dist/types.dom").Headers | string[][]): Promise<import("../subgraph").GetExchangeByIdQueryQuery>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/utils/graphql.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"graphql.d.ts","sourceRoot":"","sources":["../../../src/utils/graphql.ts"],"names":[],"mappings":"AAGA,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGjD"}
|
package/dist/esm/subgraph.d.ts
CHANGED
|
@@ -59,6 +59,10 @@ export declare enum Account_OrderBy {
|
|
|
59
59
|
}
|
|
60
60
|
export declare type BaseMetadataEntity = MetadataInterface & {
|
|
61
61
|
__typename?: "BaseMetadataEntity";
|
|
62
|
+
/**
|
|
63
|
+
* Enriched fields from offer entity to allow nested query workaround
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
62
66
|
createdAt: Scalars["BigInt"];
|
|
63
67
|
description?: Maybe<Scalars["String"]>;
|
|
64
68
|
exchangeToken: ExchangeToken;
|
|
@@ -66,6 +70,7 @@ export declare type BaseMetadataEntity = MetadataInterface & {
|
|
|
66
70
|
id: Scalars["ID"];
|
|
67
71
|
name?: Maybe<Scalars["String"]>;
|
|
68
72
|
offer: Offer;
|
|
73
|
+
quantityAvailable: Scalars["BigInt"];
|
|
69
74
|
schemaUrl?: Maybe<Scalars["String"]>;
|
|
70
75
|
seller: Seller;
|
|
71
76
|
type: MetadataType;
|
|
@@ -190,6 +195,14 @@ export declare type BaseMetadataEntity_Filter = {
|
|
|
190
195
|
offer_not_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
191
196
|
offer_starts_with?: InputMaybe<Scalars["String"]>;
|
|
192
197
|
offer_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
198
|
+
quantityAvailable?: InputMaybe<Scalars["BigInt"]>;
|
|
199
|
+
quantityAvailable_gt?: InputMaybe<Scalars["BigInt"]>;
|
|
200
|
+
quantityAvailable_gte?: InputMaybe<Scalars["BigInt"]>;
|
|
201
|
+
quantityAvailable_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
202
|
+
quantityAvailable_lt?: InputMaybe<Scalars["BigInt"]>;
|
|
203
|
+
quantityAvailable_lte?: InputMaybe<Scalars["BigInt"]>;
|
|
204
|
+
quantityAvailable_not?: InputMaybe<Scalars["BigInt"]>;
|
|
205
|
+
quantityAvailable_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
193
206
|
schemaUrl?: InputMaybe<Scalars["String"]>;
|
|
194
207
|
schemaUrl_contains?: InputMaybe<Scalars["String"]>;
|
|
195
208
|
schemaUrl_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
@@ -263,6 +276,7 @@ export declare enum BaseMetadataEntity_OrderBy {
|
|
|
263
276
|
Id = "id",
|
|
264
277
|
Name = "name",
|
|
265
278
|
Offer = "offer",
|
|
279
|
+
QuantityAvailable = "quantityAvailable",
|
|
266
280
|
SchemaUrl = "schemaUrl",
|
|
267
281
|
Seller = "seller",
|
|
268
282
|
Type = "type",
|
|
@@ -774,6 +788,7 @@ export declare type MetadataInterface = {
|
|
|
774
788
|
name?: Maybe<Scalars["String"]>;
|
|
775
789
|
/** Reference to related Offer entity */
|
|
776
790
|
offer: Offer;
|
|
791
|
+
quantityAvailable: Scalars["BigInt"];
|
|
777
792
|
/** JSON schema URL */
|
|
778
793
|
schemaUrl?: Maybe<Scalars["String"]>;
|
|
779
794
|
/** Reference to related Seller entity */
|
|
@@ -901,6 +916,14 @@ export declare type MetadataInterface_Filter = {
|
|
|
901
916
|
offer_not_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
902
917
|
offer_starts_with?: InputMaybe<Scalars["String"]>;
|
|
903
918
|
offer_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
919
|
+
quantityAvailable?: InputMaybe<Scalars["BigInt"]>;
|
|
920
|
+
quantityAvailable_gt?: InputMaybe<Scalars["BigInt"]>;
|
|
921
|
+
quantityAvailable_gte?: InputMaybe<Scalars["BigInt"]>;
|
|
922
|
+
quantityAvailable_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
923
|
+
quantityAvailable_lt?: InputMaybe<Scalars["BigInt"]>;
|
|
924
|
+
quantityAvailable_lte?: InputMaybe<Scalars["BigInt"]>;
|
|
925
|
+
quantityAvailable_not?: InputMaybe<Scalars["BigInt"]>;
|
|
926
|
+
quantityAvailable_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
904
927
|
schemaUrl?: InputMaybe<Scalars["String"]>;
|
|
905
928
|
schemaUrl_contains?: InputMaybe<Scalars["String"]>;
|
|
906
929
|
schemaUrl_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
@@ -974,6 +997,7 @@ export declare enum MetadataInterface_OrderBy {
|
|
|
974
997
|
Id = "id",
|
|
975
998
|
Name = "name",
|
|
976
999
|
Offer = "offer",
|
|
1000
|
+
QuantityAvailable = "quantityAvailable",
|
|
977
1001
|
SchemaUrl = "schemaUrl",
|
|
978
1002
|
Seller = "seller",
|
|
979
1003
|
Type = "type",
|
|
@@ -1386,6 +1410,10 @@ export declare type ProductV1MetadataEntity = MetadataInterface & {
|
|
|
1386
1410
|
__typename?: "ProductV1MetadataEntity";
|
|
1387
1411
|
brand: ProductV1Brand;
|
|
1388
1412
|
brandName?: Maybe<Scalars["String"]>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Enriched fields from offer entity to allow nested query workaround
|
|
1415
|
+
*
|
|
1416
|
+
*/
|
|
1389
1417
|
createdAt: Scalars["BigInt"];
|
|
1390
1418
|
description?: Maybe<Scalars["String"]>;
|
|
1391
1419
|
exchangeToken: ExchangeToken;
|
|
@@ -1398,6 +1426,7 @@ export declare type ProductV1MetadataEntity = MetadataInterface & {
|
|
|
1398
1426
|
images?: Maybe<Array<Scalars["String"]>>;
|
|
1399
1427
|
name?: Maybe<Scalars["String"]>;
|
|
1400
1428
|
offer: Offer;
|
|
1429
|
+
quantityAvailable: Scalars["BigInt"];
|
|
1401
1430
|
schemaUrl?: Maybe<Scalars["String"]>;
|
|
1402
1431
|
seller: Seller;
|
|
1403
1432
|
tags?: Maybe<Array<Scalars["String"]>>;
|
|
@@ -1569,6 +1598,14 @@ export declare type ProductV1MetadataEntity_Filter = {
|
|
|
1569
1598
|
offer_not_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
1570
1599
|
offer_starts_with?: InputMaybe<Scalars["String"]>;
|
|
1571
1600
|
offer_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
1601
|
+
quantityAvailable?: InputMaybe<Scalars["BigInt"]>;
|
|
1602
|
+
quantityAvailable_gt?: InputMaybe<Scalars["BigInt"]>;
|
|
1603
|
+
quantityAvailable_gte?: InputMaybe<Scalars["BigInt"]>;
|
|
1604
|
+
quantityAvailable_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
1605
|
+
quantityAvailable_lt?: InputMaybe<Scalars["BigInt"]>;
|
|
1606
|
+
quantityAvailable_lte?: InputMaybe<Scalars["BigInt"]>;
|
|
1607
|
+
quantityAvailable_not?: InputMaybe<Scalars["BigInt"]>;
|
|
1608
|
+
quantityAvailable_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
1572
1609
|
schemaUrl?: InputMaybe<Scalars["String"]>;
|
|
1573
1610
|
schemaUrl_contains?: InputMaybe<Scalars["String"]>;
|
|
1574
1611
|
schemaUrl_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
@@ -1651,6 +1688,7 @@ export declare enum ProductV1MetadataEntity_OrderBy {
|
|
|
1651
1688
|
Images = "images",
|
|
1652
1689
|
Name = "name",
|
|
1653
1690
|
Offer = "offer",
|
|
1691
|
+
QuantityAvailable = "quantityAvailable",
|
|
1654
1692
|
SchemaUrl = "schemaUrl",
|
|
1655
1693
|
Seller = "seller",
|
|
1656
1694
|
Tags = "tags",
|
|
@@ -2410,6 +2448,118 @@ export declare type GetSellersQueryQuery = {
|
|
|
2410
2448
|
}>;
|
|
2411
2449
|
}>;
|
|
2412
2450
|
};
|
|
2451
|
+
export declare type GetBuyerByIdQueryQueryVariables = Exact<{
|
|
2452
|
+
buyerId: Scalars["ID"];
|
|
2453
|
+
fundsSkip?: InputMaybe<Scalars["Int"]>;
|
|
2454
|
+
fundsFirst?: InputMaybe<Scalars["Int"]>;
|
|
2455
|
+
fundsOrderBy?: InputMaybe<FundsEntity_OrderBy>;
|
|
2456
|
+
fundsOrderDirection?: InputMaybe<OrderDirection>;
|
|
2457
|
+
fundsFilter?: InputMaybe<FundsEntity_Filter>;
|
|
2458
|
+
exchangesSkip?: InputMaybe<Scalars["Int"]>;
|
|
2459
|
+
exchangesFirst?: InputMaybe<Scalars["Int"]>;
|
|
2460
|
+
exchangesOrderBy?: InputMaybe<Exchange_OrderBy>;
|
|
2461
|
+
exchangesOrderDirection?: InputMaybe<OrderDirection>;
|
|
2462
|
+
exchangesFilter?: InputMaybe<Exchange_Filter>;
|
|
2463
|
+
includeExchanges?: InputMaybe<Scalars["Boolean"]>;
|
|
2464
|
+
includeFunds?: InputMaybe<Scalars["Boolean"]>;
|
|
2465
|
+
}>;
|
|
2466
|
+
export declare type GetBuyerByIdQueryQuery = {
|
|
2467
|
+
__typename?: "Query";
|
|
2468
|
+
buyer?: {
|
|
2469
|
+
__typename?: "Buyer";
|
|
2470
|
+
id: string;
|
|
2471
|
+
wallet: string;
|
|
2472
|
+
active: boolean;
|
|
2473
|
+
funds?: Array<{
|
|
2474
|
+
__typename?: "FundsEntity";
|
|
2475
|
+
id: string;
|
|
2476
|
+
availableAmount: string;
|
|
2477
|
+
accountId: string;
|
|
2478
|
+
token: {
|
|
2479
|
+
__typename?: "ExchangeToken";
|
|
2480
|
+
address: string;
|
|
2481
|
+
name: string;
|
|
2482
|
+
symbol: string;
|
|
2483
|
+
decimals: string;
|
|
2484
|
+
};
|
|
2485
|
+
}>;
|
|
2486
|
+
exchanges?: Array<{
|
|
2487
|
+
__typename?: "Exchange";
|
|
2488
|
+
id: string;
|
|
2489
|
+
disputed: boolean;
|
|
2490
|
+
state: ExchangeState;
|
|
2491
|
+
committedDate: string;
|
|
2492
|
+
finalizedDate?: string | null;
|
|
2493
|
+
validUntilDate: string;
|
|
2494
|
+
redeemedDate?: string | null;
|
|
2495
|
+
revokedDate?: string | null;
|
|
2496
|
+
cancelledDate?: string | null;
|
|
2497
|
+
completedDate?: string | null;
|
|
2498
|
+
expired: boolean;
|
|
2499
|
+
}>;
|
|
2500
|
+
} | null;
|
|
2501
|
+
};
|
|
2502
|
+
export declare type GetBuyersQueryQueryVariables = Exact<{
|
|
2503
|
+
BuyersSkip?: InputMaybe<Scalars["Int"]>;
|
|
2504
|
+
BuyersFirst?: InputMaybe<Scalars["Int"]>;
|
|
2505
|
+
BuyersOrderBy?: InputMaybe<Buyer_OrderBy>;
|
|
2506
|
+
BuyersOrderDirection?: InputMaybe<OrderDirection>;
|
|
2507
|
+
BuyersFilter?: InputMaybe<Buyer_Filter>;
|
|
2508
|
+
fundsSkip?: InputMaybe<Scalars["Int"]>;
|
|
2509
|
+
fundsFirst?: InputMaybe<Scalars["Int"]>;
|
|
2510
|
+
fundsOrderBy?: InputMaybe<FundsEntity_OrderBy>;
|
|
2511
|
+
fundsOrderDirection?: InputMaybe<OrderDirection>;
|
|
2512
|
+
fundsFilter?: InputMaybe<FundsEntity_Filter>;
|
|
2513
|
+
offersSkip?: InputMaybe<Scalars["Int"]>;
|
|
2514
|
+
offersFirst?: InputMaybe<Scalars["Int"]>;
|
|
2515
|
+
offersOrderBy?: InputMaybe<Offer_OrderBy>;
|
|
2516
|
+
offersOrderDirection?: InputMaybe<OrderDirection>;
|
|
2517
|
+
offersFilter?: InputMaybe<Offer_Filter>;
|
|
2518
|
+
exchangesSkip?: InputMaybe<Scalars["Int"]>;
|
|
2519
|
+
exchangesFirst?: InputMaybe<Scalars["Int"]>;
|
|
2520
|
+
exchangesOrderBy?: InputMaybe<Exchange_OrderBy>;
|
|
2521
|
+
exchangesOrderDirection?: InputMaybe<OrderDirection>;
|
|
2522
|
+
exchangesFilter?: InputMaybe<Exchange_Filter>;
|
|
2523
|
+
includeExchanges?: InputMaybe<Scalars["Boolean"]>;
|
|
2524
|
+
includeOffers?: InputMaybe<Scalars["Boolean"]>;
|
|
2525
|
+
includeFunds?: InputMaybe<Scalars["Boolean"]>;
|
|
2526
|
+
}>;
|
|
2527
|
+
export declare type GetBuyersQueryQuery = {
|
|
2528
|
+
__typename?: "Query";
|
|
2529
|
+
buyers: Array<{
|
|
2530
|
+
__typename?: "Buyer";
|
|
2531
|
+
id: string;
|
|
2532
|
+
wallet: string;
|
|
2533
|
+
active: boolean;
|
|
2534
|
+
funds?: Array<{
|
|
2535
|
+
__typename?: "FundsEntity";
|
|
2536
|
+
id: string;
|
|
2537
|
+
availableAmount: string;
|
|
2538
|
+
accountId: string;
|
|
2539
|
+
token: {
|
|
2540
|
+
__typename?: "ExchangeToken";
|
|
2541
|
+
address: string;
|
|
2542
|
+
name: string;
|
|
2543
|
+
symbol: string;
|
|
2544
|
+
decimals: string;
|
|
2545
|
+
};
|
|
2546
|
+
}>;
|
|
2547
|
+
exchanges?: Array<{
|
|
2548
|
+
__typename?: "Exchange";
|
|
2549
|
+
id: string;
|
|
2550
|
+
disputed: boolean;
|
|
2551
|
+
state: ExchangeState;
|
|
2552
|
+
committedDate: string;
|
|
2553
|
+
finalizedDate?: string | null;
|
|
2554
|
+
validUntilDate: string;
|
|
2555
|
+
redeemedDate?: string | null;
|
|
2556
|
+
revokedDate?: string | null;
|
|
2557
|
+
cancelledDate?: string | null;
|
|
2558
|
+
completedDate?: string | null;
|
|
2559
|
+
expired: boolean;
|
|
2560
|
+
}>;
|
|
2561
|
+
}>;
|
|
2562
|
+
};
|
|
2413
2563
|
export declare type SellerFieldsFragment = {
|
|
2414
2564
|
__typename?: "Seller";
|
|
2415
2565
|
id: string;
|
|
@@ -2508,6 +2658,39 @@ export declare type BaseSellerFieldsFragment = {
|
|
|
2508
2658
|
treasury: string;
|
|
2509
2659
|
active: boolean;
|
|
2510
2660
|
};
|
|
2661
|
+
export declare type BuyerFieldsFragment = {
|
|
2662
|
+
__typename?: "Buyer";
|
|
2663
|
+
id: string;
|
|
2664
|
+
wallet: string;
|
|
2665
|
+
active: boolean;
|
|
2666
|
+
funds?: Array<{
|
|
2667
|
+
__typename?: "FundsEntity";
|
|
2668
|
+
id: string;
|
|
2669
|
+
availableAmount: string;
|
|
2670
|
+
accountId: string;
|
|
2671
|
+
token: {
|
|
2672
|
+
__typename?: "ExchangeToken";
|
|
2673
|
+
address: string;
|
|
2674
|
+
name: string;
|
|
2675
|
+
symbol: string;
|
|
2676
|
+
decimals: string;
|
|
2677
|
+
};
|
|
2678
|
+
}>;
|
|
2679
|
+
exchanges?: Array<{
|
|
2680
|
+
__typename?: "Exchange";
|
|
2681
|
+
id: string;
|
|
2682
|
+
disputed: boolean;
|
|
2683
|
+
state: ExchangeState;
|
|
2684
|
+
committedDate: string;
|
|
2685
|
+
finalizedDate?: string | null;
|
|
2686
|
+
validUntilDate: string;
|
|
2687
|
+
redeemedDate?: string | null;
|
|
2688
|
+
revokedDate?: string | null;
|
|
2689
|
+
cancelledDate?: string | null;
|
|
2690
|
+
completedDate?: string | null;
|
|
2691
|
+
expired: boolean;
|
|
2692
|
+
}>;
|
|
2693
|
+
};
|
|
2511
2694
|
export declare type BaseBuyerFieldsFragment = {
|
|
2512
2695
|
__typename?: "Buyer";
|
|
2513
2696
|
id: string;
|
|
@@ -3133,10 +3316,13 @@ export declare const BaseOfferFieldsFragmentDoc: string;
|
|
|
3133
3316
|
export declare const BaseExchangeFieldsFragmentDoc: string;
|
|
3134
3317
|
export declare const SellerFieldsFragmentDoc: string;
|
|
3135
3318
|
export declare const BaseBuyerFieldsFragmentDoc: string;
|
|
3319
|
+
export declare const BuyerFieldsFragmentDoc: string;
|
|
3136
3320
|
export declare const ExchangeFieldsFragmentDoc: string;
|
|
3137
3321
|
export declare const OfferFieldsFragmentDoc: string;
|
|
3138
3322
|
export declare const GetSellerByIdQueryDocument: string;
|
|
3139
3323
|
export declare const GetSellersQueryDocument: string;
|
|
3324
|
+
export declare const GetBuyerByIdQueryDocument: string;
|
|
3325
|
+
export declare const GetBuyersQueryDocument: string;
|
|
3140
3326
|
export declare const GetExchangeByIdQueryDocument: string;
|
|
3141
3327
|
export declare const GetExchangesQueryDocument: string;
|
|
3142
3328
|
export declare const GetFundsByIdDocument: string;
|
|
@@ -3147,6 +3333,8 @@ export declare type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<st
|
|
|
3147
3333
|
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
3148
3334
|
getSellerByIdQuery(variables: GetSellerByIdQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetSellerByIdQueryQuery>;
|
|
3149
3335
|
getSellersQuery(variables?: GetSellersQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetSellersQueryQuery>;
|
|
3336
|
+
getBuyerByIdQuery(variables: GetBuyerByIdQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetBuyerByIdQueryQuery>;
|
|
3337
|
+
getBuyersQuery(variables?: GetBuyersQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetBuyersQueryQuery>;
|
|
3150
3338
|
getExchangeByIdQuery(variables: GetExchangeByIdQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetExchangeByIdQueryQuery>;
|
|
3151
3339
|
getExchangesQuery(variables?: GetExchangesQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetExchangesQueryQuery>;
|
|
3152
3340
|
getFundsById(variables: GetFundsByIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetFundsByIdQuery>;
|