@bosonprotocol/core-sdk 1.31.0-alpha.0 → 1.31.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 +62 -0
- package/dist/cjs/subgraph.d.ts.map +1 -1
- package/dist/cjs/subgraph.js +57 -1
- package/dist/cjs/subgraph.js.map +1 -1
- package/dist/cjs/utils/graphql.d.ts +13 -0
- package/dist/cjs/utils/graphql.d.ts.map +1 -1
- package/dist/esm/subgraph.d.ts +62 -0
- package/dist/esm/subgraph.d.ts.map +1 -1
- package/dist/esm/subgraph.js +56 -0
- package/dist/esm/subgraph.js.map +1 -1
- package/dist/esm/utils/graphql.d.ts +13 -0
- package/dist/esm/utils/graphql.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/offers/queries.graphql +52 -0
- package/src/subgraph.ts +133 -0
package/dist/cjs/subgraph.d.ts
CHANGED
|
@@ -33011,6 +33011,66 @@ export type GetOffersQueryQuery = {
|
|
|
33011
33011
|
} | null;
|
|
33012
33012
|
}>;
|
|
33013
33013
|
};
|
|
33014
|
+
export type GetOffersMediaQueryQueryVariables = Exact<{
|
|
33015
|
+
offersSkip?: InputMaybe<Scalars["Int"]>;
|
|
33016
|
+
offersFirst?: InputMaybe<Scalars["Int"]>;
|
|
33017
|
+
offersOrderBy?: InputMaybe<Offer_OrderBy>;
|
|
33018
|
+
offersOrderDirection?: InputMaybe<OrderDirection>;
|
|
33019
|
+
offersFilter?: InputMaybe<Offer_Filter>;
|
|
33020
|
+
exchangesSkip?: InputMaybe<Scalars["Int"]>;
|
|
33021
|
+
exchangesFirst?: InputMaybe<Scalars["Int"]>;
|
|
33022
|
+
exchangesOrderBy?: InputMaybe<Exchange_OrderBy>;
|
|
33023
|
+
exchangesOrderDirection?: InputMaybe<OrderDirection>;
|
|
33024
|
+
exchangesFilter?: InputMaybe<Exchange_Filter>;
|
|
33025
|
+
includeExchanges?: InputMaybe<Scalars["Boolean"]>;
|
|
33026
|
+
}>;
|
|
33027
|
+
export type GetOffersMediaQueryQuery = {
|
|
33028
|
+
__typename?: "Query";
|
|
33029
|
+
offers: Array<{
|
|
33030
|
+
__typename?: "Offer";
|
|
33031
|
+
id: string;
|
|
33032
|
+
metadata?: {
|
|
33033
|
+
__typename?: "BaseMetadataEntity";
|
|
33034
|
+
type: MetadataType;
|
|
33035
|
+
animationUrl?: string | null;
|
|
33036
|
+
image: string;
|
|
33037
|
+
} | {
|
|
33038
|
+
__typename?: "ProductV1MetadataEntity";
|
|
33039
|
+
type: MetadataType;
|
|
33040
|
+
animationUrl?: string | null;
|
|
33041
|
+
image: string;
|
|
33042
|
+
productOverrides?: {
|
|
33043
|
+
__typename?: "ProductV1ProductOverrides";
|
|
33044
|
+
visuals_images: Array<{
|
|
33045
|
+
__typename?: "ProductV1Media";
|
|
33046
|
+
url: string;
|
|
33047
|
+
}>;
|
|
33048
|
+
visuals_videos?: Array<{
|
|
33049
|
+
__typename?: "ProductV1Media";
|
|
33050
|
+
url: string;
|
|
33051
|
+
}> | null;
|
|
33052
|
+
} | null;
|
|
33053
|
+
product: {
|
|
33054
|
+
__typename?: "ProductV1Product";
|
|
33055
|
+
visuals_images: Array<{
|
|
33056
|
+
__typename?: "ProductV1Media";
|
|
33057
|
+
url: string;
|
|
33058
|
+
}>;
|
|
33059
|
+
visuals_videos?: Array<{
|
|
33060
|
+
__typename?: "ProductV1Media";
|
|
33061
|
+
url: string;
|
|
33062
|
+
}> | null;
|
|
33063
|
+
};
|
|
33064
|
+
productV1Seller: {
|
|
33065
|
+
__typename?: "ProductV1Seller";
|
|
33066
|
+
images?: Array<{
|
|
33067
|
+
__typename?: "ProductV1Media";
|
|
33068
|
+
url: string;
|
|
33069
|
+
}> | null;
|
|
33070
|
+
};
|
|
33071
|
+
} | null;
|
|
33072
|
+
}>;
|
|
33073
|
+
};
|
|
33014
33074
|
export type OfferFieldsFragment = {
|
|
33015
33075
|
__typename?: "Offer";
|
|
33016
33076
|
id: string;
|
|
@@ -34376,6 +34436,7 @@ export declare const GetProductV1MetadataEntityByIdQueryDocument: string;
|
|
|
34376
34436
|
export declare const GetProductV1MetadataEntitiesQueryDocument: string;
|
|
34377
34437
|
export declare const GetOfferByIdQueryDocument: string;
|
|
34378
34438
|
export declare const GetOffersQueryDocument: string;
|
|
34439
|
+
export declare const GetOffersMediaQueryDocument: string;
|
|
34379
34440
|
export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string) => Promise<T>;
|
|
34380
34441
|
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
|
|
34381
34442
|
getSellerByIdQuery(variables: GetSellerByIdQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetSellerByIdQueryQuery>;
|
|
@@ -34404,6 +34465,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
|
|
|
34404
34465
|
getProductV1MetadataEntitiesQuery(variables?: GetProductV1MetadataEntitiesQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetProductV1MetadataEntitiesQueryQuery>;
|
|
34405
34466
|
getOfferByIdQuery(variables: GetOfferByIdQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetOfferByIdQueryQuery>;
|
|
34406
34467
|
getOffersQuery(variables?: GetOffersQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetOffersQueryQuery>;
|
|
34468
|
+
getOffersMediaQuery(variables?: GetOffersMediaQueryQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<GetOffersMediaQueryQuery>;
|
|
34407
34469
|
};
|
|
34408
34470
|
export type Sdk = ReturnType<typeof getSdk>;
|
|
34409
34471
|
export {};
|