@bosonprotocol/core-sdk 1.46.1 → 1.47.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.
Files changed (52) hide show
  1. package/dist/cjs/core-sdk.d.ts +2 -1
  2. package/dist/cjs/core-sdk.d.ts.map +1 -1
  3. package/dist/cjs/core-sdk.js +3 -1
  4. package/dist/cjs/core-sdk.js.map +1 -1
  5. package/dist/cjs/search/index.d.ts +2 -0
  6. package/dist/cjs/search/index.d.ts.map +1 -0
  7. package/dist/cjs/search/index.js +38 -0
  8. package/dist/cjs/search/index.js.map +1 -0
  9. package/dist/cjs/search/mixin.d.ts +21 -0
  10. package/dist/cjs/search/mixin.d.ts.map +1 -0
  11. package/dist/cjs/search/mixin.js +68 -0
  12. package/dist/cjs/search/mixin.js.map +1 -0
  13. package/dist/cjs/search/subgraph.d.ts +3 -0
  14. package/dist/cjs/search/subgraph.d.ts.map +1 -0
  15. package/dist/cjs/search/subgraph.js +21 -0
  16. package/dist/cjs/search/subgraph.js.map +1 -0
  17. package/dist/cjs/subgraph.d.ts +145 -0
  18. package/dist/cjs/subgraph.d.ts.map +1 -1
  19. package/dist/cjs/subgraph.js +80 -2
  20. package/dist/cjs/subgraph.js.map +1 -1
  21. package/dist/cjs/utils/graphql.d.ts +1 -0
  22. package/dist/cjs/utils/graphql.d.ts.map +1 -1
  23. package/dist/esm/core-sdk.d.ts +2 -1
  24. package/dist/esm/core-sdk.d.ts.map +1 -1
  25. package/dist/esm/core-sdk.js +3 -1
  26. package/dist/esm/core-sdk.js.map +1 -1
  27. package/dist/esm/search/index.d.ts +2 -0
  28. package/dist/esm/search/index.d.ts.map +1 -0
  29. package/dist/esm/search/index.js +2 -0
  30. package/dist/esm/search/index.js.map +1 -0
  31. package/dist/esm/search/mixin.d.ts +21 -0
  32. package/dist/esm/search/mixin.d.ts.map +1 -0
  33. package/dist/esm/search/mixin.js +61 -0
  34. package/dist/esm/search/mixin.js.map +1 -0
  35. package/dist/esm/search/subgraph.d.ts +3 -0
  36. package/dist/esm/search/subgraph.d.ts.map +1 -0
  37. package/dist/esm/search/subgraph.js +9 -0
  38. package/dist/esm/search/subgraph.js.map +1 -0
  39. package/dist/esm/subgraph.d.ts +145 -0
  40. package/dist/esm/subgraph.d.ts.map +1 -1
  41. package/dist/esm/subgraph.js +78 -0
  42. package/dist/esm/subgraph.js.map +1 -1
  43. package/dist/esm/utils/graphql.d.ts +1 -0
  44. package/dist/esm/utils/graphql.d.ts.map +1 -1
  45. package/dist/tsconfig.cjs.tsbuildinfo +1 -1
  46. package/package.json +2 -2
  47. package/src/core-sdk.ts +5 -2
  48. package/src/search/index.ts +1 -0
  49. package/src/search/mixin.ts +69 -0
  50. package/src/search/queries.graphql +64 -0
  51. package/src/search/subgraph.ts +17 -0
  52. package/src/subgraph.ts +225 -0
@@ -74851,6 +74851,148 @@ export type BaseRangeFieldsFragment = {
74851
74851
  owner: string;
74852
74852
  minted: string;
74853
74853
  };
74854
+ export type ProductSearchResultFieldsFragment = {
74855
+ __typename?: "ProductV1Product";
74856
+ id: string;
74857
+ uuid: string;
74858
+ version: number;
74859
+ title: string;
74860
+ description: string;
74861
+ productionInformation_brandName: string;
74862
+ details_category?: string | null;
74863
+ details_subCategory?: string | null;
74864
+ details_subCategory2?: string | null;
74865
+ details_offerCategory: string;
74866
+ details_tags?: Array<string> | null;
74867
+ brand: {
74868
+ __typename?: "ProductV1Brand";
74869
+ id: string;
74870
+ name: string;
74871
+ };
74872
+ visuals_images: Array<{
74873
+ __typename?: "ProductV1Media";
74874
+ id: string;
74875
+ url: string;
74876
+ tag?: string | null;
74877
+ type: ProductV1MediaType;
74878
+ width?: number | null;
74879
+ height?: number | null;
74880
+ }>;
74881
+ visuals_videos?: Array<{
74882
+ __typename?: "ProductV1Media";
74883
+ id: string;
74884
+ url: string;
74885
+ tag?: string | null;
74886
+ type: ProductV1MediaType;
74887
+ width?: number | null;
74888
+ height?: number | null;
74889
+ }> | null;
74890
+ productV1Seller?: {
74891
+ __typename?: "ProductV1Seller";
74892
+ sellerId?: string | null;
74893
+ name?: string | null;
74894
+ description?: string | null;
74895
+ } | null;
74896
+ notVoidedVariants?: Array<{
74897
+ __typename?: "ProductV1Variant";
74898
+ offer: {
74899
+ __typename?: "Offer";
74900
+ id: string;
74901
+ price: string;
74902
+ priceType: number;
74903
+ quantityAvailable: string;
74904
+ validUntilDate: string;
74905
+ protocolFee: string;
74906
+ exchangeToken: {
74907
+ __typename?: "ExchangeToken";
74908
+ name: string;
74909
+ address: string;
74910
+ decimals: string;
74911
+ };
74912
+ };
74913
+ variations?: Array<{
74914
+ __typename?: "ProductV1Variation";
74915
+ type: string;
74916
+ option: string;
74917
+ }> | null;
74918
+ }> | null;
74919
+ };
74920
+ export type SearchProductsQueryQueryVariables = Exact<{
74921
+ productsSkip?: InputMaybe<Scalars["Int"]["input"]>;
74922
+ productsFirst?: InputMaybe<Scalars["Int"]["input"]>;
74923
+ productsOrderBy?: InputMaybe<ProductV1Product_OrderBy>;
74924
+ productsOrderDirection?: InputMaybe<OrderDirection>;
74925
+ productsFilter?: InputMaybe<ProductV1Product_Filter>;
74926
+ }>;
74927
+ export type SearchProductsQueryQuery = {
74928
+ __typename?: "Query";
74929
+ productV1Products: Array<{
74930
+ __typename?: "ProductV1Product";
74931
+ id: string;
74932
+ uuid: string;
74933
+ version: number;
74934
+ title: string;
74935
+ description: string;
74936
+ productionInformation_brandName: string;
74937
+ details_category?: string | null;
74938
+ details_subCategory?: string | null;
74939
+ details_subCategory2?: string | null;
74940
+ details_offerCategory: string;
74941
+ details_tags?: Array<string> | null;
74942
+ brand: {
74943
+ __typename?: "ProductV1Brand";
74944
+ id: string;
74945
+ name: string;
74946
+ };
74947
+ visuals_images: Array<{
74948
+ __typename?: "ProductV1Media";
74949
+ id: string;
74950
+ url: string;
74951
+ tag?: string | null;
74952
+ type: ProductV1MediaType;
74953
+ width?: number | null;
74954
+ height?: number | null;
74955
+ }>;
74956
+ visuals_videos?: Array<{
74957
+ __typename?: "ProductV1Media";
74958
+ id: string;
74959
+ url: string;
74960
+ tag?: string | null;
74961
+ type: ProductV1MediaType;
74962
+ width?: number | null;
74963
+ height?: number | null;
74964
+ }> | null;
74965
+ productV1Seller?: {
74966
+ __typename?: "ProductV1Seller";
74967
+ sellerId?: string | null;
74968
+ name?: string | null;
74969
+ description?: string | null;
74970
+ } | null;
74971
+ notVoidedVariants?: Array<{
74972
+ __typename?: "ProductV1Variant";
74973
+ offer: {
74974
+ __typename?: "Offer";
74975
+ id: string;
74976
+ price: string;
74977
+ priceType: number;
74978
+ quantityAvailable: string;
74979
+ validUntilDate: string;
74980
+ protocolFee: string;
74981
+ exchangeToken: {
74982
+ __typename?: "ExchangeToken";
74983
+ name: string;
74984
+ address: string;
74985
+ decimals: string;
74986
+ };
74987
+ };
74988
+ variations?: Array<{
74989
+ __typename?: "ProductV1Variation";
74990
+ type: string;
74991
+ option: string;
74992
+ }> | null;
74993
+ }> | null;
74994
+ }>;
74995
+ };
74854
74996
  export declare const BaseOfferCollectionFieldsFragmentDoc: string;
74855
74997
  export declare const SellerMetadataMediaFieldsFragmentDoc: string;
74856
74998
  export declare const SellerContactLinkFieldsFragmentDoc: string;
@@ -74906,6 +75048,7 @@ export declare const ProductV1MetadataEntityFieldsFragmentDoc: string;
74906
75048
  export declare const BaseProductV1ProductWithVariantsFieldsFragmentDoc: string;
74907
75049
  export declare const BaseProductV1ProductWithNotVoidedVariantsFieldsFragmentDoc: string;
74908
75050
  export declare const OfferFieldsFragmentDoc: string;
75051
+ export declare const ProductSearchResultFieldsFragmentDoc: string;
74909
75052
  export declare const GetSellerByIdQueryDocument: string;
74910
75053
  export declare const GetSellersQueryDocument: string;
74911
75054
  export declare const GetBuyerByIdQueryDocument: string;
@@ -74939,6 +75082,7 @@ export declare const GetProductV1MetadataEntitiesQueryDocument: string;
74939
75082
  export declare const GetOfferByIdQueryDocument: string;
74940
75083
  export declare const GetOffersQueryDocument: string;
74941
75084
  export declare const GetOffersMediaQueryDocument: string;
75085
+ export declare const SearchProductsQueryDocument: string;
74942
75086
  export type SdkFunctionWrapper = <T>(action: (requestHeaders?: Record<string, string>) => Promise<T>, operationName: string, operationType?: string, variables?: any) => Promise<T>;
74943
75087
  export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): {
74944
75088
  getSellerByIdQuery(variables: GetSellerByIdQueryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetSellerByIdQueryQuery>;
@@ -74974,6 +75118,7 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
74974
75118
  getOfferByIdQuery(variables: GetOfferByIdQueryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetOfferByIdQueryQuery>;
74975
75119
  getOffersQuery(variables?: GetOffersQueryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetOffersQueryQuery>;
74976
75120
  getOffersMediaQuery(variables?: GetOffersMediaQueryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetOffersMediaQueryQuery>;
75121
+ searchProductsQuery(variables?: SearchProductsQueryQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<SearchProductsQueryQuery>;
74977
75122
  };
74978
75123
  export type Sdk = ReturnType<typeof getSdk>;
74979
75124
  export {};