@bosonprotocol/core-sdk 1.9.1-alpha.4 → 1.10.0-alpha.1
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.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>;
|