@bosonprotocol/core-sdk 1.32.0-alpha.2 → 1.33.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 +196 -0
- package/dist/cjs/subgraph.d.ts.map +1 -1
- package/dist/cjs/subgraph.js +18 -3
- package/dist/cjs/subgraph.js.map +1 -1
- package/dist/esm/subgraph.d.ts +196 -0
- package/dist/esm/subgraph.d.ts.map +1 -1
- package/dist/esm/subgraph.js +15 -0
- package/dist/esm/subgraph.js.map +1 -1
- package/package.json +3 -3
- package/src/subgraph.ts +203 -0
package/dist/cjs/subgraph.d.ts
CHANGED
|
@@ -780,6 +780,169 @@ export declare enum ConditionEntity_OrderBy {
|
|
|
780
780
|
TokenAddress = "tokenAddress",
|
|
781
781
|
TokenType = "tokenType"
|
|
782
782
|
}
|
|
783
|
+
export type ConditionalCommitAuthorizedEventLog = {
|
|
784
|
+
__typename?: "ConditionalCommitAuthorizedEventLog";
|
|
785
|
+
buyerAddress: Scalars["String"];
|
|
786
|
+
commitCount: Scalars["BigInt"];
|
|
787
|
+
gating: Scalars["Int"];
|
|
788
|
+
groupId: Scalars["String"];
|
|
789
|
+
hash: Scalars["String"];
|
|
790
|
+
id: Scalars["ID"];
|
|
791
|
+
maxCommits: Scalars["BigInt"];
|
|
792
|
+
offerId: Scalars["String"];
|
|
793
|
+
timestamp: Scalars["BigInt"];
|
|
794
|
+
tokenId: Scalars["BigInt"];
|
|
795
|
+
type: EventType;
|
|
796
|
+
};
|
|
797
|
+
export type ConditionalCommitAuthorizedEventLog_Filter = {
|
|
798
|
+
/** Filter for the block changed event. */
|
|
799
|
+
_change_block?: InputMaybe<BlockChangedFilter>;
|
|
800
|
+
buyerAddress?: InputMaybe<Scalars["String"]>;
|
|
801
|
+
buyerAddress_contains?: InputMaybe<Scalars["String"]>;
|
|
802
|
+
buyerAddress_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
803
|
+
buyerAddress_ends_with?: InputMaybe<Scalars["String"]>;
|
|
804
|
+
buyerAddress_ends_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
805
|
+
buyerAddress_gt?: InputMaybe<Scalars["String"]>;
|
|
806
|
+
buyerAddress_gte?: InputMaybe<Scalars["String"]>;
|
|
807
|
+
buyerAddress_in?: InputMaybe<Array<Scalars["String"]>>;
|
|
808
|
+
buyerAddress_lt?: InputMaybe<Scalars["String"]>;
|
|
809
|
+
buyerAddress_lte?: InputMaybe<Scalars["String"]>;
|
|
810
|
+
buyerAddress_not?: InputMaybe<Scalars["String"]>;
|
|
811
|
+
buyerAddress_not_contains?: InputMaybe<Scalars["String"]>;
|
|
812
|
+
buyerAddress_not_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
813
|
+
buyerAddress_not_ends_with?: InputMaybe<Scalars["String"]>;
|
|
814
|
+
buyerAddress_not_ends_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
815
|
+
buyerAddress_not_in?: InputMaybe<Array<Scalars["String"]>>;
|
|
816
|
+
buyerAddress_not_starts_with?: InputMaybe<Scalars["String"]>;
|
|
817
|
+
buyerAddress_not_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
818
|
+
buyerAddress_starts_with?: InputMaybe<Scalars["String"]>;
|
|
819
|
+
buyerAddress_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
820
|
+
commitCount?: InputMaybe<Scalars["BigInt"]>;
|
|
821
|
+
commitCount_gt?: InputMaybe<Scalars["BigInt"]>;
|
|
822
|
+
commitCount_gte?: InputMaybe<Scalars["BigInt"]>;
|
|
823
|
+
commitCount_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
824
|
+
commitCount_lt?: InputMaybe<Scalars["BigInt"]>;
|
|
825
|
+
commitCount_lte?: InputMaybe<Scalars["BigInt"]>;
|
|
826
|
+
commitCount_not?: InputMaybe<Scalars["BigInt"]>;
|
|
827
|
+
commitCount_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
828
|
+
gating?: InputMaybe<Scalars["Int"]>;
|
|
829
|
+
gating_gt?: InputMaybe<Scalars["Int"]>;
|
|
830
|
+
gating_gte?: InputMaybe<Scalars["Int"]>;
|
|
831
|
+
gating_in?: InputMaybe<Array<Scalars["Int"]>>;
|
|
832
|
+
gating_lt?: InputMaybe<Scalars["Int"]>;
|
|
833
|
+
gating_lte?: InputMaybe<Scalars["Int"]>;
|
|
834
|
+
gating_not?: InputMaybe<Scalars["Int"]>;
|
|
835
|
+
gating_not_in?: InputMaybe<Array<Scalars["Int"]>>;
|
|
836
|
+
groupId?: InputMaybe<Scalars["String"]>;
|
|
837
|
+
groupId_contains?: InputMaybe<Scalars["String"]>;
|
|
838
|
+
groupId_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
839
|
+
groupId_ends_with?: InputMaybe<Scalars["String"]>;
|
|
840
|
+
groupId_ends_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
841
|
+
groupId_gt?: InputMaybe<Scalars["String"]>;
|
|
842
|
+
groupId_gte?: InputMaybe<Scalars["String"]>;
|
|
843
|
+
groupId_in?: InputMaybe<Array<Scalars["String"]>>;
|
|
844
|
+
groupId_lt?: InputMaybe<Scalars["String"]>;
|
|
845
|
+
groupId_lte?: InputMaybe<Scalars["String"]>;
|
|
846
|
+
groupId_not?: InputMaybe<Scalars["String"]>;
|
|
847
|
+
groupId_not_contains?: InputMaybe<Scalars["String"]>;
|
|
848
|
+
groupId_not_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
849
|
+
groupId_not_ends_with?: InputMaybe<Scalars["String"]>;
|
|
850
|
+
groupId_not_ends_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
851
|
+
groupId_not_in?: InputMaybe<Array<Scalars["String"]>>;
|
|
852
|
+
groupId_not_starts_with?: InputMaybe<Scalars["String"]>;
|
|
853
|
+
groupId_not_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
854
|
+
groupId_starts_with?: InputMaybe<Scalars["String"]>;
|
|
855
|
+
groupId_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
856
|
+
hash?: InputMaybe<Scalars["String"]>;
|
|
857
|
+
hash_contains?: InputMaybe<Scalars["String"]>;
|
|
858
|
+
hash_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
859
|
+
hash_ends_with?: InputMaybe<Scalars["String"]>;
|
|
860
|
+
hash_ends_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
861
|
+
hash_gt?: InputMaybe<Scalars["String"]>;
|
|
862
|
+
hash_gte?: InputMaybe<Scalars["String"]>;
|
|
863
|
+
hash_in?: InputMaybe<Array<Scalars["String"]>>;
|
|
864
|
+
hash_lt?: InputMaybe<Scalars["String"]>;
|
|
865
|
+
hash_lte?: InputMaybe<Scalars["String"]>;
|
|
866
|
+
hash_not?: InputMaybe<Scalars["String"]>;
|
|
867
|
+
hash_not_contains?: InputMaybe<Scalars["String"]>;
|
|
868
|
+
hash_not_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
869
|
+
hash_not_ends_with?: InputMaybe<Scalars["String"]>;
|
|
870
|
+
hash_not_ends_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
871
|
+
hash_not_in?: InputMaybe<Array<Scalars["String"]>>;
|
|
872
|
+
hash_not_starts_with?: InputMaybe<Scalars["String"]>;
|
|
873
|
+
hash_not_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
874
|
+
hash_starts_with?: InputMaybe<Scalars["String"]>;
|
|
875
|
+
hash_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
876
|
+
id?: InputMaybe<Scalars["ID"]>;
|
|
877
|
+
id_gt?: InputMaybe<Scalars["ID"]>;
|
|
878
|
+
id_gte?: InputMaybe<Scalars["ID"]>;
|
|
879
|
+
id_in?: InputMaybe<Array<Scalars["ID"]>>;
|
|
880
|
+
id_lt?: InputMaybe<Scalars["ID"]>;
|
|
881
|
+
id_lte?: InputMaybe<Scalars["ID"]>;
|
|
882
|
+
id_not?: InputMaybe<Scalars["ID"]>;
|
|
883
|
+
id_not_in?: InputMaybe<Array<Scalars["ID"]>>;
|
|
884
|
+
maxCommits?: InputMaybe<Scalars["BigInt"]>;
|
|
885
|
+
maxCommits_gt?: InputMaybe<Scalars["BigInt"]>;
|
|
886
|
+
maxCommits_gte?: InputMaybe<Scalars["BigInt"]>;
|
|
887
|
+
maxCommits_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
888
|
+
maxCommits_lt?: InputMaybe<Scalars["BigInt"]>;
|
|
889
|
+
maxCommits_lte?: InputMaybe<Scalars["BigInt"]>;
|
|
890
|
+
maxCommits_not?: InputMaybe<Scalars["BigInt"]>;
|
|
891
|
+
maxCommits_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
892
|
+
offerId?: InputMaybe<Scalars["String"]>;
|
|
893
|
+
offerId_contains?: InputMaybe<Scalars["String"]>;
|
|
894
|
+
offerId_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
895
|
+
offerId_ends_with?: InputMaybe<Scalars["String"]>;
|
|
896
|
+
offerId_ends_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
897
|
+
offerId_gt?: InputMaybe<Scalars["String"]>;
|
|
898
|
+
offerId_gte?: InputMaybe<Scalars["String"]>;
|
|
899
|
+
offerId_in?: InputMaybe<Array<Scalars["String"]>>;
|
|
900
|
+
offerId_lt?: InputMaybe<Scalars["String"]>;
|
|
901
|
+
offerId_lte?: InputMaybe<Scalars["String"]>;
|
|
902
|
+
offerId_not?: InputMaybe<Scalars["String"]>;
|
|
903
|
+
offerId_not_contains?: InputMaybe<Scalars["String"]>;
|
|
904
|
+
offerId_not_contains_nocase?: InputMaybe<Scalars["String"]>;
|
|
905
|
+
offerId_not_ends_with?: InputMaybe<Scalars["String"]>;
|
|
906
|
+
offerId_not_ends_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
907
|
+
offerId_not_in?: InputMaybe<Array<Scalars["String"]>>;
|
|
908
|
+
offerId_not_starts_with?: InputMaybe<Scalars["String"]>;
|
|
909
|
+
offerId_not_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
910
|
+
offerId_starts_with?: InputMaybe<Scalars["String"]>;
|
|
911
|
+
offerId_starts_with_nocase?: InputMaybe<Scalars["String"]>;
|
|
912
|
+
timestamp?: InputMaybe<Scalars["BigInt"]>;
|
|
913
|
+
timestamp_gt?: InputMaybe<Scalars["BigInt"]>;
|
|
914
|
+
timestamp_gte?: InputMaybe<Scalars["BigInt"]>;
|
|
915
|
+
timestamp_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
916
|
+
timestamp_lt?: InputMaybe<Scalars["BigInt"]>;
|
|
917
|
+
timestamp_lte?: InputMaybe<Scalars["BigInt"]>;
|
|
918
|
+
timestamp_not?: InputMaybe<Scalars["BigInt"]>;
|
|
919
|
+
timestamp_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
920
|
+
tokenId?: InputMaybe<Scalars["BigInt"]>;
|
|
921
|
+
tokenId_gt?: InputMaybe<Scalars["BigInt"]>;
|
|
922
|
+
tokenId_gte?: InputMaybe<Scalars["BigInt"]>;
|
|
923
|
+
tokenId_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
924
|
+
tokenId_lt?: InputMaybe<Scalars["BigInt"]>;
|
|
925
|
+
tokenId_lte?: InputMaybe<Scalars["BigInt"]>;
|
|
926
|
+
tokenId_not?: InputMaybe<Scalars["BigInt"]>;
|
|
927
|
+
tokenId_not_in?: InputMaybe<Array<Scalars["BigInt"]>>;
|
|
928
|
+
type?: InputMaybe<EventType>;
|
|
929
|
+
type_in?: InputMaybe<Array<EventType>>;
|
|
930
|
+
type_not?: InputMaybe<EventType>;
|
|
931
|
+
type_not_in?: InputMaybe<Array<EventType>>;
|
|
932
|
+
};
|
|
933
|
+
export declare enum ConditionalCommitAuthorizedEventLog_OrderBy {
|
|
934
|
+
BuyerAddress = "buyerAddress",
|
|
935
|
+
CommitCount = "commitCount",
|
|
936
|
+
Gating = "gating",
|
|
937
|
+
GroupId = "groupId",
|
|
938
|
+
Hash = "hash",
|
|
939
|
+
Id = "id",
|
|
940
|
+
MaxCommits = "maxCommits",
|
|
941
|
+
OfferId = "offerId",
|
|
942
|
+
Timestamp = "timestamp",
|
|
943
|
+
TokenId = "tokenId",
|
|
944
|
+
Type = "type"
|
|
945
|
+
}
|
|
783
946
|
export type Dispute = {
|
|
784
947
|
__typename?: "Dispute";
|
|
785
948
|
buyer: Buyer;
|
|
@@ -1549,6 +1712,7 @@ export declare enum EventType {
|
|
|
1549
1712
|
/** ExchangeHandler events */
|
|
1550
1713
|
BuyerCommitted = "BUYER_COMMITTED",
|
|
1551
1714
|
BuyerCreated = "BUYER_CREATED",
|
|
1715
|
+
ConditionalCommit = "CONDITIONAL_COMMIT",
|
|
1552
1716
|
DisputeDecided = "DISPUTE_DECIDED",
|
|
1553
1717
|
DisputeEscalated = "DISPUTE_ESCALATED",
|
|
1554
1718
|
DisputeExpired = "DISPUTE_EXPIRED",
|
|
@@ -6413,6 +6577,8 @@ export type Query = {
|
|
|
6413
6577
|
buyers: Array<Buyer>;
|
|
6414
6578
|
conditionEntities: Array<ConditionEntity>;
|
|
6415
6579
|
conditionEntity?: Maybe<ConditionEntity>;
|
|
6580
|
+
conditionalCommitAuthorizedEventLog?: Maybe<ConditionalCommitAuthorizedEventLog>;
|
|
6581
|
+
conditionalCommitAuthorizedEventLogs: Array<ConditionalCommitAuthorizedEventLog>;
|
|
6416
6582
|
dispute?: Maybe<Dispute>;
|
|
6417
6583
|
disputeEventLog?: Maybe<DisputeEventLog>;
|
|
6418
6584
|
disputeEventLogs: Array<DisputeEventLog>;
|
|
@@ -6576,6 +6742,20 @@ export type QueryConditionEntityArgs = {
|
|
|
6576
6742
|
id: Scalars["ID"];
|
|
6577
6743
|
subgraphError?: _SubgraphErrorPolicy_;
|
|
6578
6744
|
};
|
|
6745
|
+
export type QueryConditionalCommitAuthorizedEventLogArgs = {
|
|
6746
|
+
block?: InputMaybe<Block_Height>;
|
|
6747
|
+
id: Scalars["ID"];
|
|
6748
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
6749
|
+
};
|
|
6750
|
+
export type QueryConditionalCommitAuthorizedEventLogsArgs = {
|
|
6751
|
+
block?: InputMaybe<Block_Height>;
|
|
6752
|
+
first?: InputMaybe<Scalars["Int"]>;
|
|
6753
|
+
orderBy?: InputMaybe<ConditionalCommitAuthorizedEventLog_OrderBy>;
|
|
6754
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
6755
|
+
skip?: InputMaybe<Scalars["Int"]>;
|
|
6756
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
6757
|
+
where?: InputMaybe<ConditionalCommitAuthorizedEventLog_Filter>;
|
|
6758
|
+
};
|
|
6579
6759
|
export type QueryDisputeArgs = {
|
|
6580
6760
|
block?: InputMaybe<Block_Height>;
|
|
6581
6761
|
id: Scalars["ID"];
|
|
@@ -8193,6 +8373,8 @@ export type Subscription = {
|
|
|
8193
8373
|
buyers: Array<Buyer>;
|
|
8194
8374
|
conditionEntities: Array<ConditionEntity>;
|
|
8195
8375
|
conditionEntity?: Maybe<ConditionEntity>;
|
|
8376
|
+
conditionalCommitAuthorizedEventLog?: Maybe<ConditionalCommitAuthorizedEventLog>;
|
|
8377
|
+
conditionalCommitAuthorizedEventLogs: Array<ConditionalCommitAuthorizedEventLog>;
|
|
8196
8378
|
dispute?: Maybe<Dispute>;
|
|
8197
8379
|
disputeEventLog?: Maybe<DisputeEventLog>;
|
|
8198
8380
|
disputeEventLogs: Array<DisputeEventLog>;
|
|
@@ -8356,6 +8538,20 @@ export type SubscriptionConditionEntityArgs = {
|
|
|
8356
8538
|
id: Scalars["ID"];
|
|
8357
8539
|
subgraphError?: _SubgraphErrorPolicy_;
|
|
8358
8540
|
};
|
|
8541
|
+
export type SubscriptionConditionalCommitAuthorizedEventLogArgs = {
|
|
8542
|
+
block?: InputMaybe<Block_Height>;
|
|
8543
|
+
id: Scalars["ID"];
|
|
8544
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
8545
|
+
};
|
|
8546
|
+
export type SubscriptionConditionalCommitAuthorizedEventLogsArgs = {
|
|
8547
|
+
block?: InputMaybe<Block_Height>;
|
|
8548
|
+
first?: InputMaybe<Scalars["Int"]>;
|
|
8549
|
+
orderBy?: InputMaybe<ConditionalCommitAuthorizedEventLog_OrderBy>;
|
|
8550
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
8551
|
+
skip?: InputMaybe<Scalars["Int"]>;
|
|
8552
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
8553
|
+
where?: InputMaybe<ConditionalCommitAuthorizedEventLog_Filter>;
|
|
8554
|
+
};
|
|
8359
8555
|
export type SubscriptionDisputeArgs = {
|
|
8360
8556
|
block?: InputMaybe<Block_Height>;
|
|
8361
8557
|
id: Scalars["ID"];
|